Display the loadingPanel on a User Control

2 posts, 0 answers
  1. Mak
    Mak avatar
    39 posts
    Member since:
    Oct 2008

    Posted 16 May 2013 Link to this post

    Hi there,

    we are updating one of our legacy features which involves 2 user controls and one 'client page' as follows:

    User control 1 is a RadGrid containing items that are uploaded into the application and stored within the database.
    User control 2 is a RadAsyncUpload control which is used to upload files into the database
    The 'client page' holds both of these controls (along with all the navigation, bells and whistles, etc)

    Currently, when an end-user uploads a file, a postback occurs and the new row appears on the grid. 

    We then added a RadAjaxManager to the client page and then referenced the user control's through the code-behind (AddAjaxSettings) so that the upload to grid update process takes place on-the-fly without any disruption.

    The technique used to do this is below:

    Private attachmentsGrid as AttachmentsGrid = Me.Attachments1
    Private uploadControl as UploadControl = Me.Upload1
    RadAjaxManager1.AjaxSettings.AddAjaxSetting(attachmentsGrid, attachmentsGrid, LoadingPanel)
    , uploadControl, LoadingPanel)
    RadAjaxManager1.AjaxSettings.AddAjaxSetting(uploadControl.FindControl("uploadButton"), attachmentsGrid, LoadingPanel)

    The above technique worked great, but we noticed that the LoadPanel was not appearing on any of the controls.

    We then attempted to place a loading panel in each of the user controls and then referenced those controls (as our designated LoadingPanels) in the above AddAjaxSetting function but this also did not work.

    Hope someone can assist!


  2. Mak
    Mak avatar
    39 posts
    Member since:
    Oct 2008

    Posted 17 May 2013 Link to this post

    Just in case anyone else becomes stuck with this, the problem can be resolved by wrapping an ASP:Panel around the user controls and altering your AddAjaxSetting parameters to target the panel as opposed to the actual user controls.




  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top