[CLOSED] Component in RowExpander problem "is null or not an object"

  1. #1

    [CLOSED] Component in RowExpander problem "is null or not an object"

    In my project, a gridpanel have a rowexpander like this
                                                <ext:RowExpander ID="repGar" runat="server" SingleExpand="false">
                                                        <ext:FormPanel ID="FormPanel3" runat="server" Header="false" Border="false" ButtonAlign="Center">
                                                                <ext:TextField ID="txtGarStyle" Name="TMDSTYLE" runat="server" />
                                                                <ext:TextField ID="txtGarSeason" Name="TMDSEAON" runat="server" />
                                                                <ext:TextField ID="txtGarProgram" Name="TMDPROGRAM" runat="server" />
                                                                <ext:TextField ID="txtGarType" Name="TMDTYPE" runat="server" />
                                                                <ext:TextField ID="txtGarApp" Name="_TMDAPP" runat="server" />
                                                                    <ext:ComboBox runat="server" ID="cboGarWashCare" Name="TMDWASHCARE" TriggerAction="All"
                                                                                <ext:Store ID="Store2" runat="server">
                                                                                        <ext:Model ID="Model4" runat="server">
                                                                                                <ext:ModelField Name="WASHCARE" ServerMapping="WASHCARE"/>
                                                                <ext:NumberField ID="txtGarQty" Name="TMDQTY" runat="server">
                                                                        <Change Handler="var est= this.getValue() * #{txtGarYard}.getValue(); #{txtGarEst}.setValue(est);"></Change>
                                                                <ext:NumberField ID="txtGarYard" Name="TMDYARD" runat="server">
                                                                        <Change Handler="var est= #{txtGarQty}.getValue() * #{txtGarYard}.getValue(); #{txtGarEst}.setValue(est);"></Change>
                                                                <ext:NumberField ID="txtGarEst" Name="TMDEST" runat="server" />
                                                                <ext:TextField ID="txtGarRmk" Name="TMDRMK" runat="server" />
    I added change listener in txtGarQty and txtGarYard to calculate value txtGarEst.
    When this listener fire, it returns
    'App.txtGarYard' is null or not an object
    Then I change the listener to
    <Change Handler="var est= this.getValue() * #{txtGarYard}.getValue(); #{txtGarEst}.setValue(est);"></Change>
    "this.getValue()" is work find, but #{txtGarYard} and #{txtGarEst} still return that error.
    How can I slove it?
    Last edited by Daniil; Sep 30, 2013 at 12:03 PM. Reason: [CLOSED]
  2. #2
    refer to the thread


    I set SingleExpand=true, solve me problem. Thank you.

Similar Threads

  1. [CLOSED] "GetRowClass" Handler Returns "rowParams" null
    By cleve in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 12, 2013, 9:32 PM
  2. Replies: 1
    Last Post: Sep 11, 2013, 5:39 PM
  3. Replies: 4
    Last Post: Sep 02, 2013, 6:54 AM
  4. Replies: 1
    Last Post: Nov 12, 2012, 2:29 PM
  5. Replies: 1
    Last Post: Jul 22, 2011, 5:34 PM

Tags for this Thread

Posting Permissions