Format grid cells after page index changed

3 posts, 1 answers
  1. Arunkumar
    Arunkumar avatar
    2 posts
    Member since:
    Nov 2014

    Posted 03 Jul 2015 Link to this post

    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. Arunkumar
    Arunkumar avatar
    2 posts
    Member since:
    Nov 2014

    Posted 07 Jul 2015 Link to this post

    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?

  3. Answer
    Eyup
    Admin
    Eyup avatar
    3796 posts

    Posted 08 Jul 2015 Link to this post

    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
Back to Top