I'm trying to emulate the "Client-side" data binding demo page, but when i try to get the mastertableview in javascript, i get an error about it being null. After some searching here in the forums, i saw that i couldn't get the mastertableview until after the gridCreated client event had fired. I tried moving my code here, but the function isn't being called. The code for the grid is attached below.
Thanks,
Matt
| <tel:RadGrid ID="kgSearch" runat="server" Skin="Vista"> |
| <MasterTableView TableLayout="Fixed"> |
| <Columns> |
| <tel:GridBoundColumn DataField="USER_ID" HeaderText="User ID"></tel:GridBoundColumn> |
| <tel:GridBoundColumn DataField="LAST_NAME" HeaderText="Last Name"></tel:GridBoundColumn> |
| <tel:GridBoundColumn DataField="FIRST_NAME" HeaderText="First Name"></tel:GridBoundColumn> |
| <tel:GridBoundColumn DataField="USERNAME" HeaderText="Username"></tel:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings> |
| <ClientEvents OnGridCreated="gridCreated" /> |
| </ClientSettings> |
| </tel:RadGrid> |