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

Displaying update/insert status on user control edit form

1 Answer 35 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
David Borneman
Top achievements
Rank 1
David Borneman asked on 18 Sep 2013, 10:47 PM
Hiya,

We have a strange situation here with RadGrid. We are working under very specific instructions on how to display data with this grid that we have to conform to. One of those requirements is that all rows be in edit mode all the time - the user control edit form never closes for any row. (There are only about 2 dozen rows at any given time).

So.. currently when the update/insert button is pressed either:

A. Nothing appears to happen if there is no loading panel associated with the RadAjaxManager.
B. The whole grid (all rows) become locked and the loading panel graphic shows while the update/insert is taking place. 

What I would like to do is 2 fold:

A. As soon as any data on the user control is changed, a "Changes Pending..." label is visible. Thats easy.

B. When the update/insert button is clicked, a "Saving..." label is visible, and when the save is done, that goes away. 

The problem I am finding is that even tho the codebehind on the main ASPX form (in the grid itemcommand method) is able to change the user control's objects, it only does so after the save and not during/before - making it not very dynamic. 

My first thought then is the move the update/insert code out of the radgrid's itemcommand method and in to the user control's codebehind instead, and control a label with a nested ajaxmanager from there. 

I have a feeling I am missing something... so I thought I would post here just to make sure :)

If anyone has any ideas, please share! 

Thanks much!


Dave

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 23 Sep 2013, 11:07 AM
Hello Dave,

A possible solution is to hook OnRequestStart and OnRequestEnd client events and accordingly display the "Saving..." label or "Changes Pending..." one. Additional information could be found at the aforementioned help articles.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Ajax
Asked by
David Borneman
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or