Hi,
I have a combo and a menu on my masterpage. On combo selectedindexchanged I populate the menu.
Each menu open a content page.
When I click on a menu I lost the combo selection.
I tried to save the value on a session and force the selectedvalue on the MasterPage on Load event but it doesn't work
What do I miss?
I have a combo and a menu on my masterpage. On combo selectedindexchanged I populate the menu.
Each menu open a content page.
When I click on a menu I lost the combo selection.
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
></
telerik:RadScriptManager
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"ChooseProjectDdl"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"ChooseProjectDdl"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadMenu1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"BreadCrumbSiteMap"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadMenu1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadMenu1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"ChooseProjectDdl"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"BreadCrumbSiteMap"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"ContentPlaceHolder1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxMainLoadingPanel"
runat
=
"server"
Skin
=
"Default"
/>
<
div
>
<
header
>
<
div
class
=
"projectChooser"
>
<
telerik:RadComboBox
ID
=
"ChooseProjectDdl"
runat
=
"server"
Width
=
"250"
Height
=
"150"
on
EmptyMessage
=
"Select a Project"
EnableLoadOnDemand
=
"true"
OnSelectedIndexChanged
=
"ChooseProjectDdl_SelectedIndexChanged"
AutoPostBack
=
"true"
Label
=
"Project:"
>
<
WebServiceSettings
Method
=
"GetUserProjects"
Path
=
"ProjectsWebService.asmx"
/>
</
telerik:RadComboBox
>
</
div
>
</
header
>
<
div
class
=
"demo-container size-medium no-bg"
>
<
div
class
=
"demo-content"
>
<
telerik:RadMenu
ID
=
"RadMenu1"
runat
=
"server"
EnableRoundedCorners
=
"true"
EnableShadows
=
"true"
EnableTextHTMLEncoding
=
"true"
Skin
=
"Default"
>
</
telerik:RadMenu
>
<
br
/>
<
div
class
=
"breadcrumb"
>
<
telerik:RadSiteMap
ID
=
"BreadCrumbSiteMap"
runat
=
"server"
DataTextField
=
"Text"
DataNavigateUrlField
=
"NavigateUrl"
Skin
=
"Silk"
>
<
DefaultLevelSettings
ListLayout-RepeatDirection
=
"Horizontal"
SeparatorText
=
"/"
Layout
=
"Flow"
/>
</
telerik:RadSiteMap
>
<
h3
>
<
asp:Literal
runat
=
"server"
ID
=
"PageTitleLiteral"
/>
</
h3
>
</
div
>
</
div
>
</
div
>
<
asp:ContentPlaceHolder
ID
=
"ContentPlaceHolder1"
runat
=
"server"
>
</
asp:ContentPlaceHolder
>
</
div
>
I tried to save the value on a session and force the selectedvalue on the MasterPage on Load event but it doesn't work
if (!Page.IsPostBack)
{
if (Session["ActiveProject"] != null && GlobalClientInfo.LoggedUser != null)
{
ProjectEntity pjt = (ProjectEntity)Session["ActiveProject"];
m_ProjectId = pjt.Id;
ChooseProjectDdl.SelectedValue = m_ProjectId.ToString();
}
}
What do I miss?