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

How to subscribe to selection change event for all grids on site/page

1 Answer 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Oleksandr
Top achievements
Rank 1
Oleksandr asked on 26 Dec 2014, 01:53 PM
I'm trying to extend telerik kendo grid with some custom functionality (buttons). It relies on row selection. Is it possible to subscribe to selection change event for all grids on page, including those which are not rendered yet? It should work in analogy to the on() jquery method.

What I want to achieve is basically enabling/disabling some grid buttons in toolbar based on whether a row is selected or not. So maybe I'm going into wrong direction from the start and it can be done easier?

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 05 Jan 2015, 08:01 AM
Hello Oleksandr,

In general, you cannot wire the change event of non-existing widget. It needs to be initialized in order to wire its events. Once they are rendered, you can use jQuery to wire the change event manually. Check this Dojo demo for more details.

If you want to modify widget on row selection, then wiring the change event is the correct approach.

Regards,
Georgi Krustev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Oleksandr
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or