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

Grid inside pageview

2 Answers 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 21 Jul 2010, 01:38 AM
Hi. I have a several radgrid's inside a several radmultipage's which are accessed via a radtabstrip. Inside the grids, in certain cells appears keywords like "open" and "closed". I also have a literal control at the bottom of the page that I want to populate when the grid's contain these keywords. However, I only want the literal text filled when the user clicks on a particular tab and the keyword exists otherwise the literal is empty. I tried several server side approaches but they are very slow to postback. Can this be done on the client-side? Thanks.

Daniel

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 26 Jul 2010, 07:44 AM
Hello Daniel,

One possible way to extract values from RadGrid Item on client side is to use ClientDataKeyNames. To achieve this you need to:
 1. Define data keys in ClientDataKeyNames(the same as DataKeyNames) on GridTableView
 2. When current tab change on client iterate through current RadGrid client items/$find('Grid ClientId').get_masterTableView().get_dataItems()/
 3. Extract the values for data keys with getDataKeyValue

See the article bellow explaining about getDataKeyValue:
http://www.telerik.com/help/aspnet-ajax/grid_getdatakeyvalue%28%29.html
 
Regards,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Daniel
Top achievements
Rank 1
answered on 02 Aug 2010, 03:37 AM
Thanks for the direction. With the examples I got it to work.

Daniel
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or