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

[Solved] Problem with MasterPage ID and AddAjaxSetting

1 Answer 137 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Kevin O'Brien
Top achievements
Rank 1
Kevin O'Brien asked on 09 May 2008, 01:50 PM
I have followed the example provided for in kb (ID#743) "Ajaxifying particular controls in RadGrid template column with ajax manager" and have it working successfully.

I then added a master page to this example and it still worked correctly.

Here's the output of the AjaxManager at this point:
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadAjaxManager, {"_updatePanels":"","ajaxSettings":[{InitControlID : "ctl00_cp1_RadGrid1_ctl00_ctl04_ImageButton1",UpdatedControls : [{ControlID:"ctl00_cp1_TextBox1",PanelID:""}]},{InitControlID : "ctl00_cp1_RadGrid1_ctl00_ctl06_ImageButton1",UpdatedControls : [{ControlID:"ctl00_cp1_TextBox1",PanelID:""}]},{InitControlID : "ctl00_cp1_RadGrid1_ctl00_ctl08_ImageButton1",UpdatedControls : [{ControlID:"ctl00_cp1_TextBox1",PanelID:""}]},{InitControlID : "ctl00_cp1_RadGrid1_ctl00_ctl10_ImageButton1",UpdatedControls : [{ControlID:"ctl00_cp1_TextBox1",PanelID:""}]},{InitControlID : "ctl00_cp1_RadGrid1_ctl00_ctl12_ImageButton1",UpdatedControls : [{ControlID:"ctl00_cp1_TextBox1",PanelID:""}]},{InitControlID : "ctl00_cp1_RadGrid1_ctl00_ctl14_ImageButton1",UpdatedControls : [{ControlID:"ctl00_cp1_TextBox1",PanelID:""}]},{InitControlID : "ctl00_cp1_RadGrid1_ctl00_ctl16_ImageButton1",UpdatedControls : [{ControlID:"ctl00_cp1_TextBox1",PanelID:""}]},{InitControlID : "ctl00_cp1_RadGrid1_ctl00_ctl18_ImageButton1",UpdatedControls : [{ControlID:"ctl00_cp1_TextBox1",PanelID:""}]},{InitControlID : "ctl00_cp1_RadGrid1_ctl00_ctl20_ImageButton1",UpdatedControls : [{ControlID:"ctl00_cp1_TextBox1",PanelID:""}]},{InitControlID : "ctl00_cp1_RadGrid1_ctl00_ctl22_ImageButton1",UpdatedControls : [{ControlID:"ctl00_cp1_TextBox1",PanelID:""}]}],"clientEvents":{OnRequestStart:"",OnResponseEnd:""},"defaultLoadingPanelID":"","enableAJAX":true,"enableHistory":false,"links":[],"styles":[],"uniqueID":"ctl00$RadAjaxManager1","updatePanelsRenderMode":0}, null, null, $get("ctl00_RadAjaxManager1"));
});

However, if I assign an ID to the master page, the example will no longer work.  I typically assign an ID to the master page during Page_Init:

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

Me.ID = "M"

End Sub


Here's the output of the AjaxManager after I've assigned the ID to the master page:

Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadAjaxManager, {"_updatePanels":"","ajaxSettings":[{InitControlID : "",UpdatedControls : [{ControlID:"",PanelID:""}]},{InitControlID : "",UpdatedControls : [{ControlID:"",PanelID:""}]},{InitControlID : "",UpdatedControls : [{ControlID:"",PanelID:""}]},{InitControlID : "",UpdatedControls : [{ControlID:"",PanelID:""}]},{InitControlID : "",UpdatedControls : [{ControlID:"",PanelID:""}]},{InitControlID : "",UpdatedControls : [{ControlID:"",PanelID:""}]},{InitControlID : "",UpdatedControls : [{ControlID:"",PanelID:""}]},{InitControlID : "",UpdatedControls : [{ControlID:"",PanelID:""}]},{InitControlID : "",UpdatedControls : [{ControlID:"",PanelID:""}]},{InitControlID : "",UpdatedControls : [{ControlID:"",PanelID:""}]}],"clientEvents":{OnRequestStart:"",OnResponseEnd:""},"defaultLoadingPanelID":"","enableAJAX":true,"enableHistory":false,"links":[],"styles":[],"uniqueID":"M$RadAjaxManager1","updatePanelsRenderMode":0}, null, null, $get("M_RadAjaxManager1"));
});

Please let me know if this is a bug or if you can find a workaround.

Thanks, STEVE

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 09 May 2008, 02:18 PM
Hello Steven,

Thank you very much for your report - we fixed this immediately and the fix will be available next with with the upcoming service pack. I have updated your Telerik points.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Kevin O'Brien
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or