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

change not sustained

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Zhuang
Top achievements
Rank 1
Zhuang asked on 25 Feb 2015, 10:53 PM
Hi, 

I am using grid in ajax mode, and I added an custom command, which calls javascript function on click.

The javascript function calls server side via ajax and update the data.
I have also change the front end value by using set.

Problem is, once I click the edit button(along side the custom command), the front end value changes back.

Also, any cancel change call revert the front end to old value, even that is triggered by different row.

How to commit changes so front end change sustain?

There must be a way, since all those build in command, like edit, delete, once server side returns json successfully, the change sustains.

Thanks

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 01 Mar 2015, 09:36 AM
Hi Zhuang,

Can you please provide some additional information on your exact scenario? Furthermore, in order for us to be able to examine your current implementation, you could provide the markup and the code-behind of your RadGrid.

On a side note, if your RadGrid is using server-side binding, but you are updating the data outside the grid, you need to rebind the grid, so it could retrieve the new data and recreate its structure.

I am looking forward to your reply with the additional information.


Regards,
Konstantin Dikov
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
Zhuang
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or