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

Format grid cells after page index changed

2 Answers 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Arunkumar
Top achievements
Rank 1
Arunkumar asked on 03 Jul 2015, 08:13 PM

I have a grid with formatted cells(by calling user_defined function) based on various criterias on page_load.

But while I tried to view the next page, the formatting disappears on new pages as well as the initial page.

Please advise on what event should have the user_defined function to format the grid cells during next/previous page change.

2 Answers, 1 is accepted

Sort by
0
Arunkumar
Top achievements
Rank 1
answered on 07 Jul 2015, 02:40 PM

If my question is not very clear, I want to format the grid when page index is changed.

Which event can I use to perform this task?

0
Accepted
Eyup
Telerik team
answered on 08 Jul 2015, 11:16 AM
Hello Arunkumar,

You can achieve this requirement using the ItemDataBound event handler:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/control-lifecycle/differences-between-itemcreated-and-itemdatabound-

You can modify the color of the entire row or of individual cells:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows

Hope this helps.

Regards,
Eyup
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Arunkumar
Top achievements
Rank 1
Answers by
Arunkumar
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or