I have a grid populated by setting the DataSource to a list of objects in NeedDataSource. I have two invisible colums that point to public fields in my object, and I have set both the DataKeyNames and ClientDataKeyNames to those fields. When I call getDataKeyValue on one of those fields, it works perfectly. However, on the other field it only works in the code-behind, but on the client side it returns null. As far as I can tell, I'm treating both of the fields, columns, and DataKeyNames exactly the same. What could I be missing?
I probably haven't been very clear, but thanks in advance for any help.
I probably haven't been very clear, but thanks in advance for any help.
| <MasterTableView RetrieveAllDataFields="False" GroupLoadMode="Client" TableLayout="Fixed" |
| DataKeyNames="GUID,URL" ClientDataKeyNames="GUID,URL"> |
| <GroupByExpressions> |
| <telerik:GridGroupByExpression> |
| <SelectFields> |
| <telerik:GridGroupByField FieldName="WebPageInfo.Title" HeaderText="Title" FieldAlias="Title" /> |
| </SelectFields> |
| <GroupByFields> |
| <telerik:GridGroupByField FieldName="WebPageInfo.Title" SortOrder="Descending" FieldAlias="WebPageInfo.Title" FormatString="" HeaderText="" /> |
| </GroupByFields> |
| </telerik:GridGroupByExpression> |
| </GroupByExpressions> |
| <Columns> |
| <telerik:GridBoundColumn DataField="Type" FilterImageUrl="~\Explorer\Skins\NoteViewSkin\Grid\Filter.gif" |
| SortAscImageUrl="~\Explorer\Skins\NoteViewSkin\Grid\SortAsc.gif" SortDescImageUrl="~\Explorer\Skins\NoteViewSkin\Grid\SortDesc.gif" |
| UniqueName="Type" Visible="False"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="GUID" FilterImageUrl="~\Explorer\Skins\NoteViewSkin\Grid\Filter.gif" |
| SortAscImageUrl="~\Explorer\Skins\NoteViewSkin\Grid\SortAsc.gif" SortDescImageUrl="~\Explorer\Skins\NoteViewSkin\Grid\SortDesc.gif" |
| UniqueName="GUID" Visible="False"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="WebPageInfo.Title" HeaderText="Title" UniqueName="Title" |
| Visible="False" FilterImageUrl="Filter.gif" SortAscImageUrl="SortAsc.gif" SortDescImageUrl="SortDesc.gif"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="WebPageInfo.URL" FilterImageUrl="~\Explorer\Skins\NoteViewSkin\Grid\Filter.gif" |
| SortAscImageUrl="~\Explorer\Skins\NoteViewSkin\Grid\SortAsc.gif" SortDescImageUrl="~\Explorer\Skins\NoteViewSkin\Grid\SortDesc.gif" |
| UniqueName="URL" Visible="False"> |
| </telerik:GridBoundColumn> |