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

Ajaxified Refresh into user control that updates RichDataControl outside it

3 Answers 53 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
archimede
Top achievements
Rank 1
archimede asked on 17 Nov 2010, 03:42 PM
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?

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 19 Nov 2010, 04:11 PM
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.
0
archimede
Top achievements
Rank 1
answered on 29 Nov 2010, 12:13 PM
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;          
    }
}
0
Maria Ilieva
Telerik team
answered on 30 Nov 2010, 04:42 PM
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.
Tags
Ajax
Asked by
archimede
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
archimede
Top achievements
Rank 1
Share this question
or