Getting radio button checked row from kendo grid

Posted by Community Admin on 04-Aug-2018 11:25

Getting radio button checked row from kendo grid

All Replies

Posted by Community Admin on 10-Apr-2015 00:00

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

Posted by Community Admin on 15-Apr-2015 00:00

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!

This thread is closed