This is a migrated thread and some comments may be shown as answers.

RadGid Client Side API key columns

1 Answer 25 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ramesh kumar Kuppusamy
Top achievements
Rank 1
Ramesh kumar Kuppusamy asked on 17 Oct 2010, 11:51 AM

 
In the following code i have specified DataKeyNames as "id , abbrev" but while binding to the grid I dont need to show the "id" column.
In this case, how can I fetch the "id" key column using client side API.

<MasterTableView  DataKeyNames="id,abbrev" ClientDataKeyNames="id,abbrev">
<Columns>
    <telerik:GridBoundColumn DataField="Abbrev" HeaderText="Abbreviation" />
    <telerik:GridBoundColumn DataField="MyName" HeaderText="My Name"/>
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Oct 2010, 07:46 AM
Hi Ramesh,


Use the getDataKeyValue() method to extract the dataKeyValue, associated with the dataItem.
Extracting key values client-side



-Shinu.
Tags
General Discussions
Asked by
Ramesh kumar Kuppusamy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or