Telerik RadWindow JavaScript Return Values?

Jan 10, 2010

I have a parent page that launches a telerik radwindow and passes it an argument.

Once the radwindow is done processeing the value, I need it to return it to the parent page, and I would like the parent page to have access to this value in my code behind page.

I have tried to pass the value to a hidden field on my page and then trigger a page refresh and my code behind watches to see if the value is working.

I can't seem to get this to work. I get the return value in the parent javascript, but i can't get it from my hidden field from the code behind.

[code]....

View 1 Replies


Similar Messages:

C# - Telerik RadMenu Shows Through To A RadWindow?

Jul 4, 2010

I have a radMenu on the main site.master form which shows on a page. The page has a radGrid with a button to open a radWindows that shows a report. When the radWindow opens everything works great but the radMenu shows through onto the Window. How do I prevent the menu from showing through on the window.

View 2 Replies

JavaScript - RadWindow Not Opening On Client

Feb 22, 2011

I have a simple button on my form (A UserControl Form). What I would like to do is pop open a RadWindow when the button is clicked . What currently happens is a window opens and then closes, almost immediately.

I have the code below in my code behind

Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
BtnGenerateReport.Attributes("onclick") = " return GenerateSelectedReport('" & intPrimaryKey & "');"
End Sub

And on the client side, I have

function GenerateSelectedReport(reportid) {
var wlink = "Popuppage.aspx?intRptKey=" + reportid
window.radopen(wlink, "REPORT GENERATOR");
oWnd.center();
return true;
}

View 2 Replies

Return Values From Exe In Javascript?

Jan 28, 2011

i have to call an executable in the client machine in asp.net and get the return parameters, i been looking for an example but i couldn't find it.

it this possible to recover the output parameters from one exe in JavaScript?

i know that can i write:

var WshShell = new ActiveXObject("WScript.Shell");
var oExec = WshShell.Exec("My.exe");

but the clients executable returns 0 or 1 that values are the ones i need to collect

View 1 Replies

Finding Values In A Telerik Radgrid?

Nov 26, 2010

I've tried to find the answer, but am not having any luck and am wasting to much time trying to figure it out. Using RadGrid from Telerik, latest version of their Ajax Controls, I've added a Select to each row, and can't figure out how to get the value of the selected row. Prefer to get the value of the ID column (from ID field in my database) or other specific columns. C# or VB example will work, VB preferred.

View 2 Replies

C# - Call Javascript From Telerik RAD Controls?

Jul 12, 2010

So I want to call a javascript function when I click on a telerik control.

<telerik:RadDatePicker Width="110" ID="rdpFromDate" runat="server" AutoPostBack="false" OnSelectedDateChanged="JSFunction();">

View 3 Replies

Javascript - Auto Tab When Using Telerik Rad Controls?

Dec 27, 2010

I am looking to auto tab from one RadNumericTextBox to the next once the MaxLength has been reached.I can do this in classic ASP, but cannot figure it out in .Net. Below is an example of my RadNumericTextBox.

<telerik:RadNumericTextBox ID="RadNumericTextBox_ExpLocation" runat="server" Width="20px"
MaxLength="3" NumberFormat-AllowRounding="False" Type="Number" NumberFormat-KeepTrailingZerosOnFocus="True"
IncrementSettings-InterceptMouseWheel="false" >
<NumberFormat DecimalDigits="0" GroupSeparator="" AllowRounding="false" KeepNotRoundedValue="false" />

View 1 Replies

How To Refresh Telerik:radgrid Contorl Using Javascript

Oct 5, 2010

How to refresh Telerik:radgrid contorl using Javascript ?

View 2 Replies

Web Forms :: Telerik Date Picker Disable Using JavaScript?

Apr 2, 2010

I have a telerik Rad Date Picker; i want to Disable it using JavaScript

if have Following Code

fucntion Dis()
{
var v = document.getElementByID('dpNow').Disabled = true;
}
<telerik:RadDatePicker id="dpNow" runat="server' />

If i use Simple asp Text Box Control it's hide with the same code ; but if i use Telerik Rad Date Picker it can't hide

View 2 Replies

Web Forms :: Disable Telerik Date Picker Using JavaScript?

Oct 27, 2010

I have a telerik Rad Date Picker; i want to Disable it using JavaScript

if have Following Code

[code]....

If i use Simple asp Text Box Control it's hide with the same code ; but if i use Telerik Rad Date Picker it can't hide

View 2 Replies

C# - Telerik Grid With A JavaScript Confirm Box To Update A Column?

Mar 8, 2011

I have a Telerik grid. For each row there is a details table. The row is of type NominationTypeClass and the rows in the details table is of type Nomination. So what this means for each nomination type there is a list of nominations. The grid's code:

<telerik:RadGrid
AllowPaging="true"
AllowSorting="true"
AutoGenerateColumns="false"
GridLines="None"
ID="rgMyNominations".......

I have an action column that has a link that says Withdrawn. When clicked I have a JavaScript confirm box with a Yes or No option. If yes, then the nomination status is updated to withdrawn. Then I want the grid to be refreshed to show the updated status. I used the grid's update command to to show the show the JavaScript's command box. It updates, but is it the correct way to do it?

protected void rgMyNominations_UpdateCommand(object source, GridCommandEventArgs e)
{
try
{
StatusManager.InsertStatus( /* required parameters */ );
// Refresh grid
rgMyNominations.DataSource = GetNominationTypes();
rgMyNominations.DataBind();.....

...it says that NominationDate is not a property of NominationTypeClass. This is wrong, I don't know why it is taking the type for the row to be the type of the details table? NominationDate is a property of Nomination. It seems like it is overriding the datasources.

View 1 Replies

Javascript - $(document).ready(function() Does Not Work Perfectly In Content Pages / Telerik Controls

Jul 22, 2010

The pages on my project are base on master and content pages...

I want to do something with javascript(rather than jquery) in one of content pages after ALL OF MASTER AND CONTENT ELEMENTS ARE LOADED COMPLETELY.(for example set focus on a RadComboBox Control)

For doing that I used the below code :

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../JQuery/jquery-1.4.1.js" language="javascript" type="text/javascript"></script>
<script type="text/javascript"> [code]...

But alert(combo); always returns null.(the $find code is for telerik controls and the upper codes about telerik controls are completely true)To solve this null problem I test the ways shown below:

1-I Removed all of controls from master and content page except RadComboBox Control and null problem disappeared , so i derived the null peoblem is about all of elements of master and content page have not been loaded when

$find("<%= RadcbPersonelCompleteNameInvwNoskhehEdit.ClientID %>"); is fired.

2-so i used $(document).ready(function() { my codes }); instead of onload = onloadOfDocument;

3-at last i test the below code and it works perfectly :
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../JQuery/jquery-1.4.1.js" language="javascript" type="text/javascript"></script> [code]...

What function of document should i use for doing some javascript codes after all Of MASTER AND CONTENT ELEMENTS are loaded completely?

View 1 Replies

C# - Stretch A PageView To Fit The Height Of A RadWindow?

Feb 21, 2011

I have a RadPageView which I use with a RadMultiPage and RadTabStrip inside of a RadWindow. The problem is that my RadPageView does not stretch to fill the RadWindow. I set the Height and Width to 100%, and for the Width it works fine... (when I resize the window, the PageView is also resized). However, the height of the PageView only stretches down to the height of the controls that it contains. I spent a lot of time playing with the properties trying to get this to work... Is there an easy way to achieve this? Or do I have to handle client side OnResize events... It works for the width though.. shouldn't it be easy to also work for the height?

View 1 Replies

Web Forms :: Button Causing Validation Inside A RadWindow?

Jan 8, 2011

I have a form that when you click a button, an ajax RadWindow opens with a text box and a button so it can scrape information from another web page. I have set the button that causes the postback to CausesValidation="False", but after it does the postback after loading the scraped information into other controls, it still causes validation to fire.

how to make it not fire the validation?

View 4 Replies

Web Forms :: Postback With RadWindow / On Clicking SAVE Or CLOSE It Throws A Dialog Box In IE And Firefox

Nov 18, 2010

OK, here's my scenario. I inherited a website and I'm dealing with a quirk. I have a page that has a repeater with auto postback controls in it. And also a hyperlink or a button to open a RadWindow to add a new item or edit an existing one, the repeater probably could have been a Gridview, but forget that for now.

If you use the button to add a new entry or the hyperlink to edit, it works fine and closes and refreshs the page. BUT, after you click ANY of the auto postback check boxes and THEN try and use the new button or edit hyperlinks the RadWindow works, but on clicking SAVE or CLOSE it throws a dialog box in IE and Firefox letting the user know that:

"To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier."

IE's message is similar. Clicking RESEND works fine and everything is ok, but its a bit distracting to the user. The RadWindow open a page that has THIS javascript in it:

function RefreshParentPage() {

View 2 Replies

ADO.NET :: How To Return DISTINCT Values Of Person.ID

Oct 31, 2010

This is my query

Dim s_Person = From Person In db.People Join ProspectStatus In db.ProspectStatus On Person.Id Equals ProspectStatus.Prospect_ID Where (Person.Organization_ID = s_Organization_ID)Select Person.

I only want to return DISTINCT values of Person.ID. Right now, it returns the same person multiple times because there are several entries in the status table.

Dim s_Person = From Person In db.People Join ProspectStatus In db.ProspectStatus

View 1 Replies

Web Forms :: Want To Return Unique Values

Mar 18, 2010

I have a text box that has values separated by a comma. I am trying to remove the duplicate values for, example this text box will have values like:

John, Adam, Mike, John, Mike

I want it to return unique values like:

John, Adam, Mike

I found a VB function and converted it to C# but it's giving me errors like newArray is a variable but used as a method. Thanks

public string RemoveDuplicates(string items)
{
StringBuilder Result = new StringBuilder();[code]....

View 9 Replies

Web Forms :: Return Values On VB.NET Functions?

Oct 19, 2010

I have been reading that a value needs to be returned by a function, otherwise the following error will occur:

"Function <function name> doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used."

The cure, I have found, is to return something (i.e. "Return 0") before exiting the function. Can I pass this return value back to the routine that called the function? If so, how do I code this?

Most of the time, however, I find I'm not needing to return a value anyway, and just end up adding "0" to the ends of all my Return statements. Does anyone have any comments on this?

Links referred to:

[URL]

View 10 Replies

WebMethod Return Values In JSON Format?

Jan 24, 2010

How to return values from Webmethod to the client in JSON format? There are two static int values that i want to return.Do I need to create new object with those 2 properties and return it?The GetStatus() method is called frequently and i don't like the idea of creating a special object each time just for json formatting...

[WebMethod]
public static int GetStatus()
{
int statusProcess,statusProcessTotal;
Status.Lock.EnterReadLock();
statusProcess=Status.Process; //Static field
statusProcessTotal=Status.ProcessTotal; //Static field
Status.Lock.ExitReadLock();
return ...
}
On client side I catch the return value in :
function OnSucceeded(result, userContext, methodName)
(PageMethods.GetStatus(OnSucceeded, OnFailed);)

View 1 Replies

SQL Stored Procedures Failing To Return Values?

Sep 7, 2010

I am working on a Tag system for a news page designed in ASP.NET. For the system I require a TagExists method to check for tags within the database. The stored procedure I have written is below.

[Code]....

I have tried switching the procedure to return 0 if the tag exists and 1 if it does not and it still returns 0 despite the exact same testing conditions. I have also returned the actual select query and it has complained of the Tag "news" (my test item) not being an int on execution showing the select itself is definitely properly formed.

View 3 Replies

SQL Server :: How To Return Values From Stored Procedures

Aug 13, 2010

how to return list of values(single column values) from stored procedures in sqlserver 2005?

View 4 Replies

ADO.NET :: Stored Procedures Only Return Integer Values?

Nov 3, 2010

I have the following stored procedure

[Code]....

MOVE_MOD is defined as a float.

Yet within Dataclasses.designer.cs the function gets added as:

[Code]....

Naturally this is causing some issues as my C# code needs to handle decimal values. If I try to manually change the designer code to use floats, I get the following error

'System.Single' is not a valid return type for a mapped stored procedure method.

View 1 Replies

Web Forms :: ArrayList Does Return Values When Used In With Clause

Apr 8, 2014

openDB() Dim inList As String Dim getCourses
For k As Integer = 0 To arLcID.Count - 1
If k > 0 Then inList &= ","
End If inList = arLcID(k).ToString
getCourses = "select cID,cCode,cUnit from [university].[Courses_1] where cID ='" & inList & "'"
insertCMD = New Data.SqlClient.SqlCommand

[Code] ....

This code is not returning any value, when the arraylist is removed it returns value.

View 1 Replies

How To Get A Custom Made Set Of Checkboxes Return Values In The Postback

Apr 2, 2010

I have the following in an aspx page:

<td colspan="2">
<% DisplayParties(); %>
</td>

In the code behind for the aspx page, i have this (e.g. I build HTML for the checkboxes):

[code]....

Not my proudest moment, but whatever. The problem is that when this page posts back via some event on the page, I never get these tags in the Request.Form collection.

Is this simply how ASP.NET works (e.g. only server-side control post back) or am I missing something simple.

View 3 Replies

DataSource Controls :: Return Values From Select Statement?

Feb 8, 2011

I have a select statement in a stored procedure and want to be able to retrieve the key column value (PRODUCTID)and return it as Output when Select statement is executed on input Parameter (NAME).

addition, return two further output values (COST,TOTAL).

note the grid control expects to receive all values at once! so i need to get out these values at the same instance of execution.

Select productID,COST,QUANTITY,NAME,TOTAL,DATE
FROM PRODUCTS
WHERE NAME=@NAME

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved