locked
Jquery null or not an object error RRS feed

  • Question

  • User-1506965535 posted

    In my js file which I downloaded from here which is used for oncell edit in gridview is giving me error in the js file as

    Line: 305

    Error: 'Interface.OboutTextBox' is null or not an object

    Here is my js fiddle

    http://jsfiddle.net/cmzcLq15/

    And my gridview code as per the link is below:-

     <cc1:Grid ID="GrdConfirmation" EnableTypeValidation="true" runat="server" Width="100%"
            ShowFooter="false" AllowAddingRecords="true" AllowSorting="false" AutoGenerateColumns="false"
            Serialize="false" FolderStyle="../Styles/Grid/style_12" OnRowDataBound="GrdConfirmation_RowDataBound"
            CallbackMode="false">
            <ClientSideEvents OnClientSelect="FunClickTest" />
            <Columns>
                <cc1:CheckBoxSelectColumn ShowHeaderCheckBox="true" ControlType="Standard" Width="5%">
                </cc1:CheckBoxSelectColumn>
                <cc1:Column ID="Column1" DataField="MKEY" HeaderText="Select" ReadOnly="true" Width="5%"
                    runat="server">
                    <TemplateSettings TemplateId="TemplateWithCheckbox" />
                </cc1:Column>
                <cc1:Column ID="Sr_No" DataField="Sr_No" HeaderText="Sr No" Visible="true" Width="5%">
                    <TemplateSettings TemplateId="tplNumbering" />
                </cc1:Column>
                <cc1:Column ID="Line_Id" DataField="Line_Id" HeaderText="Line id" Visible="true"
                    Align="center" Width="5%">
                </cc1:Column>
                <cc1:Column ID="Item_Mkey" DataField="Item_Mkey" HeaderText="Item Mkey" Visible="true"
                    Align="center" Width="5%">
                </cc1:Column>
                <cc1:Column ID="Item_Code" DataField="Item_Code" HeaderText="Item Code" Visible="true"
                    Align="center" Width="5%">
                </cc1:Column>
                <cc1:Column ID="ITEM_DESC" DataField="ITEM_DESC" HeaderText="Item Description" Visible="true"
                    Align="center" Width="10%">
                </cc1:Column>
                <cc1:Column ID="Lot_Batch_No" DataField="Lot_Batch_No" HeaderText="Lot / Batch No."
                    Visible="true" Align="center" Width="5%">
                </cc1:Column>
                <cc1:Column ID="Exp_Dt" DataField="Exp_Dt" HeaderText="Exp Date" Visible="true" Align="center"
                    Width="5%">
                </cc1:Column>
                <cc1:Column ID="QTY1" DataField="Qty" HeaderText=" Quantity" Visible="true" Width="5%"
                    Align="center">
                </cc1:Column>
                <cc1:Column ID="Bx_Bg" DataField="Bx_Bg" HeaderText="Boxes/Bags" Visible="true" Width="5%"
                    Align="center">
                </cc1:Column>
                <cc1:Column ID="Net_Wgt" DataField="Net_Wgt" HeaderText="Net Weight" Visible="true"
                    Width="5%" Align="center">
                </cc1:Column>
                <cc1:Column ID="NO_OF_PALLETS" DataField="NO_OF_PALLETS" HeaderText="No Of Pallets"
                    Visible="true" Align="center" Width="5%">
                </cc1:Column>
                <cc1:Column ID="Default_Allot" DataField="Default_Allot" HeaderText="Allocated Storage Bin No."
                    Visible="true" Width="5%" Align="right">
                </cc1:Column>
                <cc1:Column ID="Confirmed_Allot" DataField="Confirmed_Allot" HeaderText="Confirmed Storage Bin No."
                    Visible="true" Width="5%" Align="right">
                    <TemplateSettings TemplateId="TextBoxEditTemplate" />
                </cc1:Column>
                <cc1:Column ID="DAMAGED_QTY" DataField="DAMAGED_QTY" HeaderText="Damaged Qty in Units"
                    Visible="true" Width="5%" Align="right">
                </cc1:Column>
                <cc1:Column ID="SHORTFALL_QTY" DataField="SHORTFALL_QTY" HeaderText="Shortfall/ excess qty in units"
                    Visible="true" Width="5%" Align="right">
                </cc1:Column>
            </Columns>
            <AddEditDeleteSettings AddLinksPosition="Bottom" NewRecordPosition="Dynamic" />
            <Templates>
                <cc1:GridTemplate runat="server" ID="tplNumbering">
                    <Template>
                        <b>
                            <%# (Container.RecordIndex + 1) %></b>
                    </Template>
                </cc1:GridTemplate>
                <cc1:GridTemplate ID="TemplateWithCheckbox">
                    <Template>
                        <asp:CheckBox runat="server" ID="ChkID" ToolTip="<%# Container.Value %>" />
                    </Template>
                </cc1:GridTemplate>
                <cc1:GridTemplate runat="server" ID="TextBoxEditTemplate">
                    <Template>
                        <input type="text" id="txtabc" name="TextBox1" onfocus="GrdConfirmation.editWithTextBox(id)"
                            class="excel-textbox" value='<%# Container.Value %>' />
                    </Template>
                </cc1:GridTemplate>
            </Templates>
        </cc1:Grid>
        <div style="display: none;" id="FieldEditorsContainer">
            <div id="TextBoxEditorContainer" style="width: 100%">
                <cc1:OboutTextBox runat="server" ID="TextBoxEditor" FolderStyle="../Interfaces/Styles/premiere_blue/OboutTextBox"
                    Width="100%" AutoCompleteType="None">
                    <ClientSideEvents OnKeyDown="navigateThroughCells" />
                </cc1:OboutTextBox>
            </div>
        </div>

    Please suggest what to do

    Wednesday, October 7, 2015 9:29 AM

Answers

  • User475983607 posted

    Most likely this error has to do with the order the files are loaded or there is a missing file.  Use Developer tools to verify you're not receiving 404 errors and that all required file are loaded. 

    Secondly, the source code posted has no reference to Interface.OboutTextBox.  What is the purpose of the posted source code?

    You might want to visit OBOUT support for information on using this 3rd party library.

    http://www.obout.com/inc/support.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 7, 2015 11:15 AM