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

[Solved] Ajax binding not refreshing data after update error

5 Answers 107 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.
Zarko Petrovic
Top achievements
Rank 1
Zarko Petrovic asked on 14 Apr 2011, 04:51 PM
Hello,

I am using Grid with Ajax binding with inline editing option. When there are validation errors on the row that I am trying to update, the field with an invalid value is marked red and that is OK.

But after that, when I click Cancel to quit row editing mode - the invalid value stays in the row until manual refresh of the grid. I think that grid should refresh after Cancel action so the value from database is shown in cells that were modified, but not saved.

Thank you,
Zarko

5 Answers, 1 is accepted

Sort by
0
Zoli
Top achievements
Rank 1
answered on 21 Apr 2011, 12:32 PM
Hello,

I have the same problem, but I think it would be better if the grid shows original values, and after that I will manually refresh the grid.

Is there a solution to get back the original values?

Thanks
Zoli
0
Atanas Korchev
Telerik team
answered on 21 Apr 2011, 12:48 PM
Hi Zoltán,

 You can refresh the grid by calling its ajaxRequest JavaScript method or rebind.

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
0
Zoli
Top achievements
Rank 1
answered on 21 Apr 2011, 01:56 PM
Hello Atanas,

It would be a great solution for me, but how can I catch Cancel button's clientevent?

Thanks
Zoli
0
Zoli
Top achievements
Rank 1
answered on 21 Apr 2011, 02:10 PM
I found your answer in another forum thread :)
addcancelevent

You are great :)
Thanks again!
Zoli
0
Zarko Petrovic
Top achievements
Rank 1
answered on 29 Apr 2011, 09:23 AM
It works great!

Thanks Zoltan!
Tags
Grid
Asked by
Zarko Petrovic
Top achievements
Rank 1
Answers by
Zoli
Top achievements
Rank 1
Atanas Korchev
Telerik team
Zarko Petrovic
Top achievements
Rank 1
Share this question
or