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

Refresh Grid not working, and kills .click events

1 Answer 264 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 11 Feb 2012, 12:36 AM

I am trying to open a window.  And when that window is closed, refresh the grid.  It seems that when I add the close/refresh event, not only does the refresh event not work, but the modals stop working.

I have jsFiddles! woot!

This is the broken one, that has the close: event defined.  Click the "Move" link two times and see that the refresh does not fire, and the modal will not open a second time.
http://jsfiddle.net/jumbalia/bXVM6/

Here I remove the close: event. I can open and reopen the modal many times now, (but I don't have the close event which I need)
http://jsfiddle.net/jumbalia/yKNmS/2/

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Feb 2012, 03:08 PM
Hello Jeremy,

When using the refresh method the data is reloaded and the Grid is repainted. Therefore the links are no longer bound to the click event. You should use the Grid's dataBound event to bind the events in order to avoid this.

All the best,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or