Ajaxified Refresh into user control that updates RichDataControl outside it

4 posts, 0 answers
  1. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 17 Nov 2010 Link to this post

    I should create a button into a user control that performs a refresh a RadGrid and a FormView .

    this is the structure of website:

    Structure.png

    how can I set the best AjaxSettings to set the button imbRefresh to update objects outside the user control?
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 19 Nov 2010 Link to this post

    Hello,

    I would suggest you to review the following help topic which elaborates on this matter:
    http://www.telerik.com/help/aspnet-ajax/ajxloadcontrolfromanotherwebusercontrolindifferentmasterpagecontentplaceholder.html

    Sincerely yours,
    Maria Ilieva
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 29 Nov 2010 Link to this post

    I managed to run the refresh button into user control by giving the pageload the event associated with the button and ajaxsettings based on current RadPageView.

    The refresh is successful but the animation with RadAjaxLoadingPanel displays only the second click of the refresh button.

    You tell me why?

    protected void Page_Load(object sender, EventArgs e)
    {
        cmdbar.RefreshClick += new System.EventHandler(this.cmdbarRefresh_Click);
        SetAjaxSettingsBySection();
    }
        protected void cmdbarRefresh_Click(object sender, EventArgs e)
        {
            Refresh();
        }
    private void SetAjaxSettingsBySection()
    {
        switch (rtsPagina.SelectedIndex)
        {
            case 0:
                {
                    rmpManager.AjaxSettings.AddAjaxSetting(cmdbar.ImbRefresh, rpnTabella, rlp);
                } break;
            case 1:              
                {
                    rmpManager.AjaxSettings.AddAjaxSetting(cmdbar.ImbRefresh, rpnScheda, rlp);                   
                } break;          
        }
    }
    private void Refresh()
    {
        switch (rtsPagina.SelectedIndex)
        {
            case 0:
                {
                    rdgArticoli.Rebind();
                } break;
            case 1:                
                {
                    frvScheda.DataBind();
                    rdgEquivalenzaCodici.Rebind();
                    lblTest.Text = DateTime.Now.ToString();
                } break;          
        }
    }
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 30 Nov 2010 Link to this post

    Hi,

    Could you please try showing and hiding the LoadingPanel explicitly on the Ajax requests. Please refer to the following help topic for more information on this matter.
    Let me know if this helps.


    Greetings,
    Maria Ilieva
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top