| <script type="text/javascript"> |
| function docFileGridOnRowCreated(sender, eventArgs) { } |
| function docFileGridOnRowCreating(sender, eventArgs) { } |
| function docFileGridOnRowDblClick(sender, eventArgs) |
| { |
| alert(eventArgs.get_gridDataItem().get_dataItem()); |
| } |
| </script> |
| <style type="text/css"> |
| </style> |
| <asp:Button ID="btn" runat="server" Text="Save" /> |
| <cym:RadGrid ID="docFileGrid" runat="server" DataSourceID="docFileODS" |
| ClientSettings-ClientEvents-OnRowDblClick=""> |
| <ClientSettings> |
| <ClientEvents OnRowCreated="docFileGridOnRowCreated" |
| OnRowCreating="docFileGridOnRowCreating" OnRowDblClick="docFileGridOnRowDblClick" /> |
| </ClientSettings> |
| <MasterTableView DataKeyNames="AccountFileID, AccountID, FileID, GUID"> |
| <Columns> |
| <rad:GridBoundColumn DataField="FileName" HeaderText="Name" /> |
| </MasterTableView> |
| </cym:RadGrid> |
I've subscribed to the OnRowCreated/OnRowCreating event as per the documentation's instructions; however, get get_dataItem() and get_dataKeyValue() methods return null. What am I doing wrong?