Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2320
Howto Disable WebPanel expansion indicator?
posted

 I'm trying to disable the expansion indicator on a webpanel.

 If I set the WebPanel.Header.ExpansionIndicator.Height and Width to 0px the expansion indicator disappears.  However, when the user double clicks on the header, it still expands.  Is there any way to disable this functionality?

Parents
  • 28407
    posted

    Hi nuhfeken,

    In the designer set the webpanel's Expanded property to true, then wire up the client side ExpandedStateChanging event.

    then inside this event - cancel it with oEvent.cancel = true

    here is the code:

     <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

    <%@ Register Assembly="Infragistics2.WebUI.Misc.v7.3, Version=7.3.20073.1043, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
        Namespace="Infragistics.WebUI.Misc" TagPrefix="igmisc" %>

    <!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>Untitled Page</title>

        <script id="igClientScript" type="text/javascript">
    <!--

    function WebPanel1_ExpandedStateChanging(oWebPanel, oEvent){
     //Add code to handle your event here.
     oEvent.cancel = true;
    }
    // -->
    </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <igmisc:WebPanel ID="WebPanel1" runat="server" Height="193px" Width="465px" BorderColor="Gray" BorderStyle="Dotted">
                <ClientSideEvents ExpandedStateChanging="WebPanel1_ExpandedStateChanging" />
            </igmisc:WebPanel>
       
        </div>
        </form>
    </body>
    </html>

Reply Children
No Data