Displaying update/insert status on user control edit form

2 posts, 0 answers
  1. David Borneman
    David Borneman avatar
    9 posts
    Member since:
    Sep 2005

    Posted 18 Sep 2013 Link to this post

    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
  2. Kostadin
    Admin
    Kostadin avatar
    1709 posts

    Posted 23 Sep 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top