[CLOSED] Trying to Highlight Panel, but it disappears after it highlighted, Any Ideas how I can highlight Panel instead of a DIV

  1. #1

    [CLOSED] Trying to Highlight Panel, but it disappears after it highlighted, Any Ideas how I can highlight Panel instead of a DIV

    Hi I'm trying to highlight a Panel once the user clicks a button, but my sample fails...

    Any Ideas how I would go about doing this ?


    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" TagPrefix="ext" Namespace="Ext.Net" %>
    
    <script runat="server">         
        protected void Page_Load(object sender, EventArgs e)
        {
    
        }    
    </script>
    
    <!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 id="Head1" runat="server">
        <title>Ext.NET Example</title>
    
        <script type="text/javascript">
    
            var onClickHighlight = function() {
                Ext.get("notificationArea").update().highlight();
            }
    
        </script>
    
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <br />
        <div id="notificationArea" style="width: 628px; padding: 10px; border: 1px solid black; height: 40px;">
            <ext:Panel ID="ManuallyLoadTab" runat="server" Title="Manual Load">
                <Items>
                    <ext:Button ID="Button1" runat="server" Text="Click Me">
                        <Listeners>
                            <Click Fn="onClickHighlight" />
                        </Listeners>
                    </ext:Button>
                </Items>
            </ext:Panel>
        </div>
        </form>
    </body>
    </html>
    Last edited by Daniil; Jun 07, 2012 at 5:09 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Well, calling the update method for the div with empty parameters lists just clears that div.
    http://docs.sencha.com/ext-js/3-4/#!...-method-update

    What about this?
    Ext.get("divId").highlight();
    To highlight the Panel you can use:
    PanelId.body.highlight();
  3. #3
    Thank you, that works...

    Quote Originally Posted by Daniil View Post
    Hi,

    Well, calling the update method for the div with empty parameters lists just clears that div.
    http://docs.sencha.com/ext-js/3-4/#!...-method-update

    What about this?
    Ext.get("divId").highlight();
    To highlight the Panel you can use:
    PanelId.body.highlight();

Similar Threads

  1. Highlight changed controls
    By Zdenek in forum 1.x Help
    Replies: 1
    Last Post: Mar 19, 2012, 6:46 AM
  2. Replies: 1
    Last Post: Jun 24, 2011, 12:18 PM
  3. [CLOSED] How to highlight menuitem in Menupanel
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 06, 2011, 3:24 PM
  4. Replies: 0
    Last Post: Jan 28, 2010, 2:47 AM
  5. [CLOSED] TextField bgcolor highlight
    By methode in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 22, 2009, 11:17 AM

Tags for this Thread

Posting Permissions