Welcome Guest Search | Active Topics | Sign In | Register

Custon Item and Callback Options
Seltris
Posted: Friday, August 1, 2008 1:34:23 AM
Rank: Member
Groups: Member

Joined: 10/4/2007
Posts: 20
Hi guys,

i've a problem with Custom Item..
See follow code when i make a callback raise an exception



Code: HTML/ASPX
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="Administration_Test" %>

<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Pagina senza titolo</title>
</head>
<body>
    <form id="form1" runat="server">
        <eo:CallbackPanel ID="CBPHeaderMenu" runat="server" Triggers="{ControlID:Button1;Parameter:}">
            <eo:Menu ID="HeaderMenu" runat="server" CollapseDelay="0" ControlSkinID="None" ExpandOnClick="EnabledForTopLevelOnly"
                Width="200px">
                <LookItems>
                    <eo:MenuItem HoverStyle-CssText="color:#F7B00A;padding-left:5px;padding-right:5px;"
                        ItemID="_TopLevelItem" NormalStyle-CssText="padding-left:5px;padding-right:5px;">
                        <SubMenu ItemSpacing="5" OffsetX="-3" OffsetY="3" ShadowColor="Black" ShadowDepth="2"
                            Style-CssText="border-right: #e0e0e0 1px solid; padding-right: 3px; border-top: #e0e0e0 1px solid; padding-left: 3px; font-size: 12px; padding-bottom: 3px; border-left: #e0e0e0 1px solid; cursor: hand; color: #5f7786; padding-top: 3px; border-bottom: #e0e0e0 1px solid; font-family: arial; background-color: #f7f8f9">
                        </SubMenu>
                    </eo:MenuItem>
                    <eo:MenuItem IsSeparator="True" ItemID="_Separator" NormalStyle-CssText="width: 1px; height: 1px; background-color:#e0e0e0;">
                    </eo:MenuItem>
                    <eo:MenuItem HoverStyle-CssText="color:#F7B00A;padding-left:5px;padding-right:5px;"
                        ItemID="_Default" NormalStyle-CssText="padding-left:5px;padding-right:5px;">
                        <SubMenu ItemSpacing="5" OffsetX="3" OffsetY="-4" ShadowDepth="0" Style-CssText="border-right: #e0e0e0 1px solid; padding-right: 3px; border-top: #e0e0e0 1px solid; padding-left: 3px; font-size: 12px; padding-bottom: 3px; border-left: #e0e0e0 1px solid; cursor: hand; color: #5f7786; padding-top: 3px; border-bottom: #e0e0e0 1px solid; font-family: arial; background-color: #f7f8f9">
                        </SubMenu>
                    </eo:MenuItem>
                </LookItems>
                <TopGroup Style-CssText="BORDER-RIGHT: #e0e0e0 1px solid; BORDER-TOP: #cb3e00 2px solid; FONT-SIZE: 12px; BACKGROUND-IMAGE: url(00020005); PADDING-BOTTOM: 3px; BORDER-LEFT: #e0e0e0 1px solid; CURSOR: hand; COLOR: #5f7786; PADDING-TOP: 3px; FONT-FAMILY: arial">
                    <Items>
                        <eo:MenuItem Image-Url="" RightIcon-Url="" Text-Html="Item">
                            <SubMenu>
                                <Items>
                                    <eo:MenuItem CustomItemID="CIFilters" LookID="None" NormalStyle-CssText="background-color:#f7f8f9;border-bottom-color:#e0e0e0;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#e0e0e0;border-left-style:solid;border-left-width:1px;border-right-color:#e0e0e0;border-right-style:solid;border-right-width:1px;border-top-color:#e0e0e0;border-top-style:solid;border-top-width:1px;color:#404040;cursor:hand;font-family:arial;font-size:12px;padding-bottom:3px;padding-left:3px;padding-right:3px;padding-top:3px;"
                                        Text-Html="Item">
                                    </eo:MenuItem>
                                </Items>
                            </SubMenu>
                        </eo:MenuItem>
                    </Items>
                </TopGroup>
            </eo:Menu>
        </eo:CallbackPanel>
        <asp:Button ID="Button1" runat="server" Text="Press me and crash" /><eo:CustomItem ID="CIFilters" runat="server">
        </eo:CustomItem>
    </form>
</body>
</html>


Thanks from your best tester
Seltris
eo_support
Posted: Friday, August 1, 2008 12:45:45 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Hi,

You need to put the CustomItem inside the CallbackPanel as well. When a Menu uses a CustomItem, the two go together.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.