+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Getting radio button checked row from kendo grid

Getting radio button checked row from kendo grid

2 posts, 0 answered
  1. sho
    sho avatar
    1 posts
    Registered:
    23 Mar 2007
    10 Apr 2015
    Link to this post

    Hi,

       I have a kendo grid which populates data as more than one pages. The grid has a radio button. I checked the radio button in one of the page (say page 2) and then navigated to page 8.o

     

    How can I do this?

     

    Thanks in advance,

    Pavan

  2. Dimo
    Dimo avatar
    4 posts
    Registered:
    02 Dec 2016
    15 Apr 2015
    Link to this post
    Hello Pavan,

    If the Grid is using server-side paging, you need to ensure that all modified radio button states are saved before the user navigates, otherwise the changes will be lost. The easiest way to achieve this is to set autoSync property of the Grid dataSource to true.

    autoSync dataSource property
    http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-autoSync

    Alternatively, you can prevent paging if there are unsaved changes and alert the user to save them or discard them.

    Grid dataSource instance
    http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#fields-dataSource

    Grid dataSource hasChanges() method
    http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods-hasChanges

    example - use in-cell editors in Grid column templates
    http://docs.telerik.com/kendo-ui/web/grid/how-to/Editing/grid-editors-in-column-templates

    Paging prevention is implemented in the requestStart event of the Grid dataSource

    example
    http://docs.telerik.com/kendo-ui/web/grid/how-to/Editing/grid-prevent-navigation-when-in-editing-mode

    requestStart event of the Kendo UI DataSource
    http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#events-requestStart

    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
2 posts, 0 answered