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

RadGrid, Custom Paging and Ajax -- Oh My!

8 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tracy
Top achievements
Rank 1
Tracy asked on 26 Sep 2008, 03:44 PM
I have a RadGrid that is populated from an object DataSource (bound in code-behind). I have the sutom pagin all working except it is posting back instead of making the paging call through Ajax. I have a RadAjaxManager on the page that sets the AjaxUpdatedControl to the RadGrid and I even have a RadAjaxLoadingPanel set up and have tol the AjaxManager to use that as it's Default Loading Panel. What am I missing. I've read all the examples (most of which are old enough that they don't use the RadAjaxManager or the RadAjaxLoadingPanel.

Any help will be appreciated.

~Lee

8 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 29 Sep 2008, 05:59 AM
Hello Tracy,

Can you post the manager declaration?

Greetings,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tracy
Top achievements
Rank 1
answered on 29 Sep 2008, 02:01 PM
I have tried several different incarnations of the Ajax Manager code, this is how it currently looks.

<telerik:RadAjaxManager ID="AjaxManager" runat="server" DefaultLoadingPanelID="LoadingPanel" EnableAJAX="true">  
  <AjaxSettings> 
    <telerik:AjaxSetting AjaxControlID="AjaxManager">  
        <UpdatedControls> 
            <telerik:AjaxUpdatedControl ControlID="UserRadGrid" /> 
        </UpdatedControls> 
    </telerik:AjaxSetting> 
  </AjaxSettings> 
</telerik:RadAjaxManager> 

Thanks for the help.

~Lee
0
Vlad
Telerik team
answered on 29 Sep 2008, 02:10 PM
Hi Lee,

You need to select the grid to update itself:

<telerik:RadAjaxManager ID="AjaxManager" runat="server" DefaultLoadingPanelID="LoadingPanel" EnableAJAX="true"> 
  <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="UserRadGrid"> 
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="UserRadGrid" />
        </UpdatedControls>
    </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tracy
Top achievements
Rank 1
answered on 29 Sep 2008, 02:17 PM
That is how I had it set up originally based on the live demos. That still does a post back. Any other ideas?

~Lee
0
Vlad
Telerik team
answered on 29 Sep 2008, 02:30 PM
Hello Lee,

Please open a support ticket and send us an example where we can reproduce this. I will gladly help you to resolve this problem.

Kind regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tracy
Top achievements
Rank 1
answered on 29 Sep 2008, 05:33 PM
It seems the problem stems from the fact that I am loading the RadScriptManager progrmatically. I have tried it OnPageLoad and OnInit. I need to load it in the master page (Because I have a PanelBar menu there that needs it.) but I don't want it on the login page, because it throws 'Sys is undefined' errors when I do. So in my Page_Load (or OnInit) I was loading like so:
if(Page.User.Identity.IsAuthenticated)  
  Page.Form.Controls.Add(new RadScriptManager()); 

Loading the RadScriptManager from the code-behind doesn't seem to work.

Is there a more efficient way to set up the RadScriptManager?

~Lee
0
Tracy
Top achievements
Rank 1
answered on 30 Sep 2008, 01:54 PM
I have fixed the problem. I switched the RadScriptManager out for an asp ScriptManager and all is well. I can put it in the .aspx page and it does not interfere with my login page or my panelbar and is available for all pages using that master page.

Thanks for all your help.

~Lee
0
Erjan Gavalji
Telerik team
answered on 01 Oct 2008, 07:53 AM
Hi Tracy,

It is very important for us to find the exact reason for the problem you got. Can you please, send the application to us via a support ticket for examination?

Thank you in advance for the help.

Best regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Tracy
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Tracy
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Share this question
or