I have configured my RadGrid to call a client side function and call an AJAX script to insert records into my dB.
I am successful at calling my Client Side JS function by utilizing the <clientevents onrowclick=RowClick> event.
<ClientEvents OnRowClick="RowClick" /> *** This works but it is not my ideal solution
I would like to call this function by the execution of the onblur event from a textbox control.
I have tried the code below but I am not having any luck:
<telerik:GridTemplateColumn HeaderText="Qty" AllowFiltering="false" UniqueName="Column2">
<ItemTemplate>
<telerik:RadTextBox ID="qty" runat="server" AutoPostBack="True">
<ClientEvents OnBlur="function(sender,args){RowClick(sender,args)}" />
</telerik:RadTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
However, when I execute the Onblur event I get this error:
JavaScript runtime error: Object doesn't support property or method 'get_id'
I assume that this is due to the fact that it doesn't know the ROW id when inside of the textbox?
Any help is appreciated!
I am successful at calling my Client Side JS function by utilizing the <clientevents onrowclick=RowClick> event.
<ClientEvents OnRowClick="RowClick" /> *** This works but it is not my ideal solution
I would like to call this function by the execution of the onblur event from a textbox control.
I have tried the code below but I am not having any luck:
<telerik:GridTemplateColumn HeaderText="Qty" AllowFiltering="false" UniqueName="Column2">
<ItemTemplate>
<telerik:RadTextBox ID="qty" runat="server" AutoPostBack="True">
<ClientEvents OnBlur="function(sender,args){RowClick(sender,args)}" />
</telerik:RadTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
However, when I execute the Onblur event I get this error:
JavaScript runtime error: Object doesn't support property or method 'get_id'
I assume that this is due to the fact that it doesn't know the ROW id when inside of the textbox?
Any help is appreciated!