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

OnDataBound no longer fires after a row is updated or inserted.

6 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ben
Top achievements
Rank 1
ben asked on 21 Dec 2010, 12:21 PM
Hi there,

I have some javascript in the grid's OnSave to display some animated gif to indicate the grid is busy.  And I have another javascript in the OnDataBound to hide the image.  This setup was working fine until I upgraded to Q3.  After the upgrade I noticed that after a row is updated or inserted, the OnDataBound no longer fires.  Is this behavior by design?  And is there any other event I can use to hide the busy indicator?

Thanks a lot,
Ben

6 Answers, 1 is accepted

Sort by
0
Niels
Top achievements
Rank 1
answered on 20 Jan 2011, 01:49 PM
Hi Ben,

I have the same problem. Do you already have a solution.

@Telerik: Is there a way to work around this?

Kind regards,

Niels
0
Brian Roth
Top achievements
Rank 1
answered on 20 Jan 2011, 09:27 PM
Hi Neils,

Ben and I figured out that the OnRowDataBound event is fired and were able to tie into that.  Hope that helps!

Regards,
Brian
0
Erik
Top achievements
Rank 1
answered on 02 May 2011, 03:21 PM
Hi,

I am experiencing the same problem. OnDataBound is called just fine when I first load the Grid and when I delete a row, but not when I insert a row (my edit mode is Form). I cannot use the OnRowDataBound event because it seems I cannot access my grid then ($("#myGrid") returns null).

I need to know when a row has been added. I am using Ajax binding.

Anyone?

Best regards,

Erik
0
Atanas Korchev
Telerik team
answered on 02 May 2011, 04:03 PM
Hi Erik,

 I cannot reproduce this behavior in our online demo. The events are fires as expected there.

Greetings,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Erik
Top achievements
Rank 1
answered on 02 May 2011, 04:09 PM
Hi Atanas,

Thank you for your prompt reply, as always. 

I am terribly sorry. I actually use PopUp as my editing mode (the fact that it pops up a form got me confused :s)  The demo you refer to does not use this. Can that be the cause?

Sorry again and thanks in advance for your help.

Erik
0
Atanas Korchev
Telerik team
answered on 03 May 2011, 07:30 AM
Hi Erik,

 I checked with popup edit mode and the ondatabound was fired properly. Could it be that there are model state errors which prevent the grid from updating properly? You can check that by debugging your Update/Insert action methods.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
ben
Top achievements
Rank 1
Answers by
Niels
Top achievements
Rank 1
Brian Roth
Top achievements
Rank 1
Erik
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or