[CLOSED] change icon of a label from directmethod

  1. #1

    [CLOSED] change icon of a label from directmethod

    I've got the javascript error

    Uncaught TypeError: Object [object Object] has no method 'setIconClass'

    when changing the icon of a label from a directmethod. Is that a bug? Thanks

    Please use the following code to test:

    
    <%@ Page Language="C#"  %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    
    <script runat="server">
       
        [DirectMethod]
        public void change()
        {
           lblTest.Text = "test2";   
           lblTest.Icon =  Ext.Net.Icon.Cancel;          
        }
      
    </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 runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:label runat="server" ID="lblTest" Icon="Accept" Text="test">
        </ext:label>
        <ext:button runat="server" text="change!">
        <Listeners>
            <Click Handler="#{DirectMethods}.change()"></Click>
        </Listeners>
    </ext:button>
        </form>
    </body>
    </html>
    Last edited by Daniil; Jun 18, 2012 at 5:02 PM. Reason: [CLOSED]
  2. #2
    Thanks for the report. Fixed in SVN

Similar Threads

  1. [CLOSED] Update Asp Net Label inside asp ListView in Directmethod
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 26, 2012, 2:54 PM
  2. Change Label Icon in Ajax Event?
    By Tbaseflug in forum 1.x Help
    Replies: 2
    Last Post: Jun 11, 2010, 1:46 PM
  3. [CLOSED] Update label Icon over AjaxMethod
    By reinout.mechant@imprss.be in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Jun 07, 2009, 2:48 AM
  4. [CLOSED] GridPanel + Icon and/or Label Icon
    By state in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 28, 2009, 2:03 AM

Tags for this Thread

Posting Permissions