I have a radgrid.
The dataitem row has several controls but two in particular have values I need for a javascript ajax call I need to make.
The user story is this...
A user sees a series of rows with a CampusID - a simple label and a copiesNeeded - a radnumerictextbox.
The ROW is NOT in edit mode, nor will it be...
The user clicks in the radtextbox and enters a value.
When they leave the textbox an onBlur event is fired.
Now in a client side javascript function I want to get the value they have entered in the radnumerictextbox and determine the value of the CampusID from the CampusNameLabel-- unless of course there is an easier means to do this clientside...
For example:
The dataitem row has several controls but two in particular have values I need for a javascript ajax call I need to make.
The user story is this...
A user sees a series of rows with a CampusID - a simple label and a copiesNeeded - a radnumerictextbox.
The ROW is NOT in edit mode, nor will it be...
The user clicks in the radtextbox and enters a value.
When they leave the textbox an onBlur event is fired.
Now in a client side javascript function I want to get the value they have entered in the radnumerictextbox and determine the value of the CampusID from the CampusNameLabel-- unless of course there is an easier means to do this clientside...
For example:
//================================================//=== Save the value entered in the grid for copies needed.//================================================function saveCopiesNeeded(src, args) {// Get the row the user had made changes in so I can get the campusID// Get the radNumericTextbox so I can get the value the user typed }<telerik:GridTemplateColumn FilterControlAltText="Filter column" UniqueName="CampusID" HeaderText="Campus ID" SortExpression="CampusID"> <ItemTemplate> <asp:Label ID="CampusIDLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CampusID") %>'></asp:Label> </ItemTemplate> <HeaderStyle HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Center" Wrap="False" VerticalAlign="Middle" /> </telerik:GridTemplateColumn>
<telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" UniqueName="TemplateColumn"> <ItemTemplate> <telerik:RadNumericTextBox ID="CopiesToOrderRadNumericTextbox" runat="server" Culture="en-US" DbValueFactor="1" LabelWidth="64px" MinValue="0" Width="70px"> <NumberFormat DecimalDigits="0" ZeroPattern="n" /> <ClientEvents OnBlur="saveCopiesNeeded"></ClientEvents> </telerik:RadNumericTextBox> </ItemTemplate> </telerik:GridTemplateColumn>