Hi,
I'm very new to Ajax and am trying to update a RadPanelBar on the Master page from a User Control to display or hide certain options.
The example reads like this:
1. Project page loads Control1, hide RadPanelBarItems (1 thru X) on the Master page
2. Project page loads Control 2, show RadPanelBarItems (1 thru X) on the Master page
The first page to load is Control 1, and I have been able to get #1 above to work, but then if I load Control 2 I don't get #2 above to work.
I am guessing I need to update this panelbar on the Master Page dynamically from the Project Page, but I have tried all of the examples for doing this without any luck.
RadAjaxManagerProxy's Name on the master page: "ram"
RadPanelbar's Name on the master page: "rpbMain"
Project's Page Load:
Dim AjaxManagerProxy As RadAjaxManagerProxy = CType(Me.Master.FindControl("ram"), RadAjaxManagerProxy)
Dim PanelBar As RadPanelBar = CType(Me.Master.FindControl("rpbMain"), RadPanelBar)
AjaxManagerProxy.AjaxSettings.AddAjaxSetting(rsProjects, PanelBar)
Both Dim'd objects always return as nothing and I get an object ref not set error.
Thanks,
Jason
I'm very new to Ajax and am trying to update a RadPanelBar on the Master page from a User Control to display or hide certain options.
The example reads like this:
1. Project page loads Control1, hide RadPanelBarItems (1 thru X) on the Master page
2. Project page loads Control 2, show RadPanelBarItems (1 thru X) on the Master page
The first page to load is Control 1, and I have been able to get #1 above to work, but then if I load Control 2 I don't get #2 above to work.
I am guessing I need to update this panelbar on the Master Page dynamically from the Project Page, but I have tried all of the examples for doing this without any luck.
RadAjaxManagerProxy's Name on the master page: "ram"
RadPanelbar's Name on the master page: "rpbMain"
Project's Page Load:
Dim AjaxManagerProxy As RadAjaxManagerProxy = CType(Me.Master.FindControl("ram"), RadAjaxManagerProxy)
Dim PanelBar As RadPanelBar = CType(Me.Master.FindControl("rpbMain"), RadPanelBar)
AjaxManagerProxy.AjaxSettings.AddAjaxSetting(rsProjects, PanelBar)
Both Dim'd objects always return as nothing and I get an object ref not set error.
Thanks,
Jason