Problems with Update in Ext:Label

  1. #1

    Problems with Update in Ext:Label

    Hello, a query. I have a control Ext: Label and I'm doing updates from the client side and server-side. Each works to perfection. The problem appears when the update is first performed from the client side by pressing the button "Client Execute method" (from a javascript function). Then, when it comes to upgrade from the server side, this does not make the upgrade to control Ext: Label.


    Codigo aspx
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <script type="text/javascript" language="javascript">
            var updateLabel = function () {
                var msg = "Updated from Client!!!"
                Ext.fly("lblTestEN").update(msg);
    
            };
        
        </script>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server">
        </ext:ResourceManager>
        <form id="form1" runat="server">
        <div>
            <ext:Label ID="lblTestEN" runat="server">
            </ext:Label>
        </div>
        <div>
            <ext:Button ID="btnTestClient" runat="server" Text="Execute Client method">
                <Listeners>
                    <Click Fn="updateLabel" />
                </Listeners>
            </ext:Button>
            <ext:Button ID="btnTestServer" runat="server" Text="Execute Server method">
                <DirectEvents>
                    <Click OnEvent="btnTestServer_Click">
                        <EventMask Msg="Processing..." ShowMask="true" MinDelay="500" />
                    </Click>
                </DirectEvents>
            </ext:Button>
        </div>
        </form>
    </body>
    </html>
    Codigo de servidor
    protected void btnTestServer_Click(object sender, DirectEventArgs e)
            {
                string msg = "Updated from server!!!";
                lblTestEN.Text = msg;
            }
    Later, I found it necessary to add the following line in the server-side method.
    lblTestEN.Update();
    But in doing this the design of controls is affected. That is, the label is displayed in a different place that was located initially.

    Click image for larger version. 

Name:	ExtLabel_01.jpg 
Views:	76 
Size:	32.2 KB 
ID:	2541


    As I can solve this problem?

    Thansk for all...

    FAFNER
  2. #2
    Hello, This problem was solved with this post ..

    http://forums.ext.net/showthread.php...rom-Javascript

    Thanks

    FAFNER

Similar Threads

  1. [CLOSED] GridPanel update problems with ObjectDataSource
    By jasonl in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 17, 2011, 10:59 AM
  2. [CLOSED] Problems with Hidden Field after SVN Update
    By macap in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: May 23, 2011, 11:12 AM
  3. [CLOSED] Problems after update from SVN
    By VALUELAB in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: May 05, 2011, 4:57 PM
  4. [CLOSED] Problems with NumberField after Ext.NET/ExtJS Update
    By macap in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 24, 2010, 1:45 PM
  5. [CLOSED] Problems with ItemID of Tabstrip after update from SVN
    By klaus.schwarz in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 12, 2010, 3:21 PM

Tags for this Thread

Posting Permissions