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

Problem when using radAjaxmanager in Umbraco..

4 Answers 96 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 30 Jul 2010, 12:31 PM
I have problems using the RadAjaxManager in a CMS called "Umbraco".

when I want to add ajaxsetting in umbraco page dynamically, I got some error .
 
[ArgumentNullException: Value cannot be null. Parameter name: page] Telerik.Web.UI.RadAjaxManager.GetCurrent(Page page) +170 Telerik.Web.UI.AjaxSettingsCollection.AddAjaxSetting(Control ajaxifiedControl, Control updatedControl, RadAjaxLoadingPanel loadingPanel) +294 

here is my simple code

public partial class ProductListSetting :   UmbracoEnsuredPage
    {
    protected void Page_Load(object sender, EventArgs e)
        {
             
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(save, rgProductList,null);
        }
}


Thanks.


4 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 30 Jul 2010, 02:09 PM
Hello Kevin,

Change your AddAjaxSetting line to this:

RadAjaxManager1.AjaxSettings.AddAjaxSetting(save, rgProductList);

I removed the "null" value that was passed to the LoadinPanel parameter.

I hope that helps.
0
Kevin
Top achievements
Rank 1
answered on 30 Jul 2010, 02:59 PM
Hi Cori,

I have tried this before I post this problem....

I still got this error.

any suggestion?
0
Maria Ilieva
Telerik team
answered on 03 Aug 2010, 11:58 AM
Hi Kevin,

Please elaborate a bit more on your application. Are you using MasterPages or UserControls in it? If yes, in which page the RadAjaxManager is placed and how you get reference to it? More information on your scenario and the RadAjax settings you have added will help us further research on the issue.


Regards,
Maria Ilieva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
James
Top achievements
Rank 1
answered on 19 Aug 2013, 12:56 PM
For our situation, the fix was to put the RadAjaxManager.AjaxSettings.AddAjaxSetting after adding the panel to the Controls (Controls.Add(panel)).
Tags
Ajax
Asked by
Kevin
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Kevin
Top achievements
Rank 1
Maria Ilieva
Telerik team
James
Top achievements
Rank 1
Share this question
or