[CLOSED] AfterRender error in IE when applying template ConfigItem to button

  1. #1

    [CLOSED] AfterRender error in IE when applying template ConfigItem to button



    Hey there,

    This one is an error for IE only (tested in v7). Works nicely in Firefox (tested in v3).

    I am using a button and want to change its presentation. So I added a template ConfigItem to the control which works nicely in Firebox but not in IE. The error being returned in IE is " 'null' is null or not an object".

    
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    
    
    <!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:scriptmanager id="ScriptManager1" runat="server" />
            <ext:button id="startbutton" runat="server" >
            <CustomConfig>
                <ext:ConfigItem 
                    Name="template"
                    Value="new Ext.Template('testing
    ')" />
                    
            </CustomConfig>
            </ext:button>
        
    
        </form>
    </body>
    </html>
    However, the button does render correctly to the markup in the template so the implementation does work.

    Any ideas?

    thanks,
    Conor
  2. #2

    RE: [CLOSED] AfterRender error in IE when applying template ConfigItem to button

    Hiya,

    Thought I would let you know that I solved the error mentioned above - so no need to do anything. I had to add a button object manually in the template value

    <CustomConfig>
        <ext:ConfigItem 
            Name="template"
            Value="new Ext.Template('<div ><button type={1} text={0} />
    ')"  />
    </CustomConfig>
    It didnt come out as I want but can play around from here.

    cheers,
    Conor

Similar Threads

  1. [CLOSED] DataView template JS error when bound with data
    By cleve in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 07, 2012, 1:51 PM
  2. [CLOSED] How to access record members of combobox at AfterRender
    By digitek in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Nov 28, 2011, 2:23 PM
  3. [CLOSED] Syntax error in generated script when using a Template
    By IT1333 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 05, 2011, 7:52 AM
  4. [CLOSED] GridPanel EventMask - AfterRender
    By ArcadisUS in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 26, 2011, 8:16 PM
  5. passing configitem value into listener
    By norphos in forum 1.x Help
    Replies: 2
    Last Post: May 10, 2011, 1:47 PM

Posting Permissions