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

How to "extend" dataBound event

4 Answers 135 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 24 Feb 2014, 09:16 PM
Throughout he application, we have several Kendo Grids.  Some have functionality attached to the dataBound event, some do not.  How can I extend the dataBound event to always call some functionality without discarding the functionality added to specific grids.

Let's say I have two grids, 'grid-a' and 'grid-b'.  'grid-a' has functionality associated with its dataBound event (call it gridASpecialFunction).  I also want to globally always call a function on dataBound of all grids (call it updateGridLookAndFeel).  How can I make sure I always call updateGridLookAndFeel for all grids without having to add it to each grid's dataBound event individually.  Also I don't want to discard any existing dataBound event functionality (gridASpecialFunction).

Note, updateGridLookAndFeel should be called after any local functionality.

Thanks,
--Ed

4 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 25 Feb 2014, 11:05 AM
Hello,

Please post your question in below forum.
Kendo UI Grid Forum

Thanks,
Jayesh Goyani
0
Ed
Top achievements
Rank 1
answered on 25 Feb 2014, 04:53 PM
This is the grid forum.  The breadcrumbs at the top of this page are: 
  Telerik Forums / Kendo UI Web Forum / Grid /
... and when I follow the link you posted, I can see this question in the list of recent questions.

So, what is the problem with the post?

--Ed
0
Jayesh Goyani
Top achievements
Rank 2
answered on 25 Feb 2014, 05:12 PM
Sorry by mistake i post reply.
0
Accepted
Alexander Valchev
Telerik team
answered on 26 Feb 2014, 01:21 PM
Hello Ed,

I suggest you to use the bind method which allows events binding after widget initialization (the approach will work well with remote data).
Please check the following example:

I hope this will help.

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Ed
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Ed
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or