I have a RadMenu in Mega Drop Down mode.
A childitem is added, and a UserControl is added to the child.
Code for adding the UserControl dynamically:
In the userControl there is a Repeater which must be Ajaxified so that it can be updated while the menu item is expanded.
I try it like so:
And in the CodeBehind:
When I click in the Repeater a full Postback is occuring instead of an Ajax update.
Any suggestions?
Thanks,
Marc
A childitem is added, and a UserControl is added to the child.
Code for adding the UserControl dynamically:
e.Item.GroupSettings.ExpandDirection = ExpandDirection.Downe.Item.GroupSettings.OffsetX = "-476"childItem = New RadMenuItem()childItem.CssClass="MenuSlide"e.item.Items.Add(childItem)Dim uc_Products As products = DirectCast(LoadControl("~/includes/products/products.ascx"), products)childItem.Controls.Add(uc_Products)I try it like so:
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" /><telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="600px" EnableAJAX="true"LoadingPanelID="RadAjaxLoadingPanel1" EnablePageHeadUpdate="True"HorizontalAlign="NotSet"><asp:Button Text="productlines" id="btn_productlines" runat=server /><asp:Repeater id="rpt_Footer" runat="server" OnItemCommand="UpdateProductGroups"> <HeaderTemplate><ul class="ProductFooter"></HeaderTemplate><ItemTemplate><li style="float:left;"><asp:Literal runat=server id="ltl_rewrite" Text='<%# Container.DataItem("rewrite") %>' /><asp:ImageButtonImageUrl='<%#FormatThumbnail(Container.DataItem("foto"))%>' Tooltip='<%#Container.DataItem("description")%>' id="btn_Type" runat="server" /></li></ItemTemplate><FooterTemplate></ul></FooterTemplate></asp:Repeater><asp:Label runat=server id="aa" Text="aaa" /></telerik:RadAjaxPanel>Sub UpdateProductGroups(ByVal Sender As Object, ByVal e As RepeaterCommandEventArgs)aa.Text = "bbb"End SubAny suggestions?
Thanks,
Marc