Rank: Newbie Groups: Member
Joined: 6/26/2010 Posts: 1
|
Please help me use AJAX with EO-SlideMenu! Can I use Ajax with EO-SlideMenu?. For example when I click any Item with hyperlink, I can update only one area of my current page, where I use my UserControl. I try do that with Update Panel=>Trigger as bellow:
<form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManagerSlideMenu" runat="server"> </asp:ScriptManager> <div> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="SlideMenuLeft" EventName="ItemClick"/> </Triggers> <ContentTemplate> <asp:Label ID="labelShowCurrentTimeInsideUpdatePanel" runat="server" /><br /> .... code of embeded User Control.... </ContentTemplate> </asp:UpdatePanel> <asp:Label ID="labelShowTimeOutsideUpdatePanel" runat="server" /><br /> </div> <eo:SlideMenu ID="SlideMenuLeft" runat="server" ControlSkinID="None"
and in event itemclick of one menu item I use code to show current time. But effect of AJAX I can not get. The indicator of times inside and outside of Update Panel are same. And all page is Post Back . Thank You very much!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You need to set the slide menu's RaisesServerEvent to true. Also keep in mind that clicking the first level slide menu item will NEVER raises a server event (thus it won't trigger postback or AJAX callback). The first level items are used to expand/collapse child panels only.
Thanks!
|