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

RadAjaxManager & Usercontrols

5 Answers 76 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Mattias Jöraas
Top achievements
Rank 1
Mattias Jöraas asked on 30 Sep 2011, 03:19 PM
We ar building a new system for a customer. We use EpiServer as our base system.
Mostly we have pages and usercontrols to display and get data from the user.

My senario is as follows:

#Masterpage
   #Page
       #Panel (used as a wrapper for updated controls, eg all controls inside can be updated)
           #Cusom usercontrol A (Contains a button with a click evenhandler defined)
           #Custom usercontrol B (Basicly only a specialised RadGrid inside and properties to feed the grid datasource)

I want to bind the button on usercontrol A to update the panel on the page.
I tried the following:
RadAjaxManager1.AjaxSettings.AddAjaxSetting((Button)SearchMember.FindControl("Button1"), PanelWrapper, RadAjaxLoadingPanel1);
The event fires but no loading panel is shown and the wrapper panel is not updated (the grid does not popout as it should.
However the following does make the grid popout but it stil does not display any loading panel.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="UserControl_A">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelWrapper" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
        Width="75px" BackgroundPosition="Center" Skin="Windows7">
    </telerik:RadAjaxLoadingPanel>

Any ideeas about what im doing wrong here ?

5 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 03 Oct 2011, 04:46 AM
Hello Mattias,

Are the user controls loaded dynamically, or they are declaratively added on the page? And on which server-side event do you add the ajax settings? Can you confirm that the ScriptManager declaration is before any other RadControl declaration on the page? Also, is the PanelWrapper visible by default and does its visibility change?

Greetings,
Iana Tsolova
the Telerik team
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 their blog feed now
0
Mattias Jöraas
Top achievements
Rank 1
answered on 03 Oct 2011, 02:25 PM
All controls added declaratively.

Script manager is declaratively added on masterpage. Rad ajax is declaratively added at top of my page's content.
I tried to do it programaticly on page load. the wrapper is always visible but the usercontrol wrapping the grid is initialy hidden and gets visible later on (this is a search page and the grid usercontrol toggles visibility after a first search).
0
Iana Tsolova
Telerik team
answered on 03 Oct 2011, 03:05 PM
Hi Mattias,

So you confirm that the ScriptManager is declared on the MasterPage and before the ContentPlaceHolder control holding the content page main content, right? I suggest that you put it just after the <form> opening tag.
Also does it make any difference if you change the loading paneld declaration as below:
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" IsSticky="true"
    style="position:absolute; top:0; left:0; width:100%; height: 100%;" Skin="Windows7">
</telerik:RadAjaxLoadingPanel>


Regards,
Iana Tsolova
the Telerik team
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 their blog feed now
0
Mattias Jöraas
Top achievements
Rank 1
answered on 04 Oct 2011, 08:03 AM
Yes i can confrim that the script manager is already the first element after the form tag.
And the change to the loading panel did no change.

When ajax setting is declaratively set in page it pops out but still no loading indication, and when ajax setting is set by code in page_load it don't pop out.
0
Iana Tsolova
Telerik team
answered on 05 Oct 2011, 11:04 AM
Hello Mattias,

Can you share the full code or better a striped version of the master page and the content page (markup and code behind) so I try to replicate the issue on my side and thus try finding what went wrong?

Regards,
Iana Tsolova
the Telerik team
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 their blog feed now
Tags
Ajax
Asked by
Mattias Jöraas
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Mattias Jöraas
Top achievements
Rank 1
Share this question
or