Hello,
I have the following structure:
Master Page
Master Menu
Contentplaceholder (side bar)
Contentplaceholder (main content)
The master menu loads content pages that have content specific navigation in the side bar.
The problem I'm having is with a content page that has a dropdown and a RadMenu in the "side bar" placeholder that are used to change selectparameters for a grid in the "main content" placeholder.
I can get a label in the "main content" to update, but the grid won't rebind. SQL server profiler shows no activity, so the rebind isn't firing for some reason.
Thx in advance for help and/or pointers !!
Mater Page
<
telerik:RadScriptManager
runat
=
"server"
></
telerik:RadScriptManager
>
<
telerik:RadAjaxManager
ID
=
"AjaxMgr1"
runat
=
"server"
/>
< ... some RadPageLayout directives ... >
<%--Main Nav--%>
<
telerik:RadMenu
ID
=
"RadMenu1"
runat
=
"server"
RenderMode
=
"Auto"
>
<
Items
>
<
telerik:RadMenuItem
Text
=
"Home"
NavigateUrl
=
"Default.aspx"
/>
< .. more stuff .. >
</
Items
>
</
telerik:RadMenu
>
<%--Main--%>
<
telerik:LayoutRow
>
<
Columns
>
<%--Sidebar--%>
<
telerik:LayoutColumn
Span
=
"2"
HiddenMd
=
"true"
HiddenSm
=
"true"
HiddenXs
=
"true"
>
<
asp:ContentPlaceHolder
ID
=
"SidebarPlaceHolder"
runat
=
"server"
>
</
asp:ContentPlaceHolder
>
</
telerik:LayoutColumn
>
<%--Content--%>
<
telerik:CompositeLayoutColumn
Span
=
"10"
SpanMd
=
"12"
SpanSm
=
"12"
SpanXs
=
"12"
>
<
Content
>
<
asp:panel
runat
=
"server"
ID
=
"GridPanel"
>
<
asp:ContentPlaceHolder
ID
=
"MainPlaceHolder"
runat
=
"server"
>
</
asp:ContentPlaceHolder
>
</
asp:panel
>
</
Content
>
</
telerik:CompositeLayoutColumn
>
</
Columns
>
</
telerik:LayoutRow
>
Content Page
<
asp:Content
ID
=
"SBContent"
ContentPlaceHolderID
=
"SidebarPlaceHolder"
Runat
=
"Server"
>
<
telerik:RadAjaxManagerProxy
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"usrDD"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"GridPanel"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadMenu2"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"GridPanel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
<
telerik:RadDropDownList
ID
=
"usrDD"
runat
=
"server"
Width
=
"205px"
ZIndex
=
"10000"
AutoPostBack
=
"true"
DataSourceID
=
"employeeDS"
DataValueField
=
"idx"
DataTextField
=
"FullName"
OnItemSelected
=
"usrDD_ItemSelected"
>
<
Items
><
telerik:DropDownListItem
Selected
=
"true"
Text
=
"Select Employee"
/></
Items
>
</
telerik:RadDropDownList
>
<
telerik:RadMenu
ID
=
"RadMenu2"
CssClass
=
"sidebar"
Flow
=
"Vertical"
runat
=
"server"
OnItemClick
=
"RadMenu2_ItemClick"
>
<
Items
>
<
telerik:RadMenuItem
Text
=
"Common Systems"
Value
=
"1"
Selected
=
"true"
/>
< .. more stuff .. >
</
Items
>
</
telerik:RadMenu
>
<
asp:SqlDataSource
ID
=
"employeeDS"
.......
</asp:Content>
<
asp:Content
ID
=
"MainContent"
ContentPlaceHolderID
=
"MainPlaceHolder"
runat
=
"server"
>
<
telerik:RadAjaxManagerProxy
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadGrid1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid1"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"SavedChangesList"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
<
telerik:RadAjaxLoadingPanel
runat
=
"server"
ID
=
"RadAjaxLoadingPanel1"
></
telerik:RadAjaxLoadingPanel
>
<
h3
><
asp:Label
runat
=
"server"
ID
=
"lblHeader"
Text
=
"some text"
/></
h3
>
<
telerik:RadGrid
RenderMode
=
"Lightweight"
ID
=
"RadGrid1"
GridLines
=
"None"
runat
=
"server"
AllowAutomaticDeletes
=
"True"
MasterTableView-CommandItemSettings-ShowAddNewRecordButton
=
"false"
AllowAutomaticInserts
=
"true"
PageSize
=
"10"
OnItemDeleted
=
"RadGrid1_ItemDeleted"
OnItemInserted
=
"RadGrid1_ItemInserted"
OnItemUpdated
=
"RadGrid1_ItemUpdated"
OnPreRender
=
"RadGrid1_PreRender"
AllowAutomaticUpdates
=
"True"
AllowPaging
=
"True"
AutoGenerateColumns
=
"False"
OnBatchEditCommand
=
"RadGrid1_BatchEditCommand"
DataSourceID
=
"SqlDataSource1"
>
<
MasterTableView
CommandItemDisplay
=
"TopAndBottom"
DataKeyNames
=
"idx"
DataSourceID
=
"SqlDataSource1"
HorizontalAlign
=
"NotSet"
EditMode
=
"Batch"
AutoGenerateColumns
=
"False"
>
< .. more grid stuff .. >
<
asp:SqlDataSource
ID
=
"SqlDataSource1"
......
</asp:Content>
Content page Code
protected
void
RadMenu2_ItemClick(
object
sender, RadMenuEventArgs e)
{
lblHeader.Text = e.Item.Text;
SqlDataSource1.SelectParameters.Add(
"parent"
, e.Item.Value);
SqlDataSource1.SelectParameters.Add(
"employee"
, usrDD.SelectedValue);
}
protected
void
usrDD_ItemSelected(
object
sender, DropDownListEventArgs e)
{
SqlDataSource1.SelectParameters.Add(
"employee"
, e.Value);
SqlDataSource1.SelectParameters.Add(
"parent"
, RadMenu2.SelectedValue);
RadGrid1.Rebind();
}