Consistently getting errors using Coolite

Page 1 of 2 12 LastLast
  1. #1

    Consistently getting errors using Coolite

    I am trying to customize the following example:
    https://examples1.ext.net/#/GridPane...SqlDataSource/

    to work with an object data source. However, I consistently get the following 2 JavaScript errors when the page loads:
    1) 'this.config[...].width' is null or not an object
    2) 'this.mainbody' is null or not an object

    Additionaly, when I click any of the Buttons (Insert, Refresh etc.) I get the following error:
    'Object doesn't support this property or method'

    Any help would be greatlt appreciated!!
  2. #2

    RE: Consistently getting errors using Coolite

    Hi r_honey,

    If you are using v0.6 of the Coolite Toolkit, please ensure you stick to the v0.6 Examples Explorer, see*https://examples2.ext.net/


    Although, I don't think much has changed between the two releases as far as that particular example is concerned.*


    Geoffrey McGill
    Founder
  3. #3

    RE: Consistently getting errors using Coolite

    Hi r_honey,

    About first error. I am pretty sure that problem related with AutoExpandColumn property of GridPanel. Please check that column with ColumnID equals AutoExpandColumn value is exists


  4. #4

    RE: Consistently getting errors using Coolite

    vladimir (12/13/2008) Hi r_honey,

    About first error. I am pretty sure that problem related with AutoExpandColumn property of GridPanel. Please check that column with ColumnID equals AutoExpandColumn value is exists
    Wow, what a catch. I was just about to post my code and you caught it without a glitch. Thanx a ton man.
    Finally a relief after 2 hours of head scratching.
  5. #5

    RE: Consistently getting errors using Coolite

    Well, anyhow I am using the following markup:

    <asp:Panel runat="server" HorizontalAlign="Center">
        <ext:Store runat="server" ID="store1" DataSourceID="containerSource" UseIdConfirmation="true">
            <Reader>
                <ext:JsonReader>
                    <Fields>
                        <ext:RecordField Name="containerId" />
                        <ext:RecordField Name="noOfBags" />
                    </Fields>
                </ext:JsonReader>
            </Reader>
            <SortInfo Field="containerId" Direction="ASC" />
            <Listeners>
                <LoadException Handler="Ext.Msg.alert('Containers - Load failed', e.message || e )" />
                <CommitFailed Handler="Ext.Msg.alert('Containers - Commit failed', 'Reason: ' + msg)" />
                <SaveException Handler="Ext.Msg.alert('Containers - Save failed', e.message || e)" />
                <CommitDone Handler="Ext.Msg.alert('Containers - Commit', 'The data successfully saved');" />
            </Listeners>
        </ext:Store>
    
        <br />
        <ext:Panel runat="server" Width="400" Height="400" Header="false">
            <Content>
                <ext:FitLayout runat="server">
                    <ext:GridPanel runat="server" ID="GridPanel1" Title="Containers" AutoExpandColumn="colContainer"
                            StoreID="store1" Border="false" Header="true">
                        <ColumnModel runat="server">
                            <Columns>
                                <ext:Column DataIndex="containerId" ColumnID="colContainer" Header="Container Id" Width="100">
                                    <Editor>
                                        <ext:TextField runat="server" AllowBlank="false" BlankText="ContainerId" MaxLength="50" MinLength="1" />
                                    </Editor>
                                </ext:Column>
                                <ext:Column DataIndex="noOfBags" Header="No. Of Bags" Width="100">
                                    <Editor>
                                        <ext:NumberField runat="server" AllowBlank="false" AllowDecimals="false" 
                                                    AllowNegative="false" MaxValue="9999999" MinValue="1" />
                                    </Editor>
                                </ext:Column>
                            </Columns>
                        </ColumnModel>
                        <SelectionModel>
                            <ext:RowSelectionModel runat="server"/>
                        </SelectionModel>
                        <SaveMask ShowMask="true" />
                        <LoadMask ShowMask="true" />
                    </ext:GridPanel>
                </ext:FitLayout>
            </Content>
            
            <Buttons>
                <ext:Button runat="server" ID="btnSave" Text="Save" Icon="Disk">
                    <Listeners>
                        <Click Handler="#{GridPanel1}.save();" />
                    </Listeners>
                </ext:Button>
                <ext:Button ID="btnDelete" runat="server" Text="Delete selected records" Icon="Delete">
                    <Listeners>
                        <Click Handler="#{GridPanel1}.deleteSelected();" />
                    </Listeners>
                </ext:Button>
                <ext:Button ID="btnInsert" runat="server"  Text="Insert" Icon="Add">
                    <Listeners>
                        <Click Handler="#{GridPanel1}.insertRecord(0, {});#{GridPanel1}.getView().focusRow(0);#{GridPanel1}.startEditing(0, 0);" />
                    </Listeners>
                </ext:Button>
                <ext:Button ID="btnRefresh" runat="server"  Text="Refresh" Icon="ArrowRefresh">
                    <Listeners>
                        <Click Handler="#{GridPanel1}.reload();" />
                    </Listeners>
                </ext:Button>
            </Buttons>
        </ext:Panel>
    </asp:Panel>
    There are still 2 problems:
    1) Column headers are NOT visible in IE. They are visible in FireFox.
    2) Clicking Refresh produces following error:
    BADRESPONSE: missing ) in parenthetical
  6. #6

    RE: Consistently getting errors using Coolite

    Another problem: Clciking Refresh or Save generates Permission error
    Microsoft JScript runtime error: Permission denied
  7. #7

    RE: Consistently getting errors using Coolite

    I'm unsure sure why the Headers are not rendering in IE. Seems strange.*

    The "BADRESPONSE" message is thrown because the httpModule is missing from the web.config, see*http://forums.ext.net/showthread.php...-1.aspx#bm2547


    Adding of the httpHandler and httpModule to the web.config is now done automatically in v0.7. In previous versions you needed to add manually.*


    Geoffrey McGill
    Founder
  8. #8

    RE: Consistently getting errors using Coolite

    I have added appropriate entries to httpModules and httpHandlers, but I am still facing the above problems consistently.
    I am getting a PermissionDeined Error on Line 193 somewhere, but VS can not find the source so that I can know which line is causing the error.

    Save &amp; Refresh buttons are consistently returning Bad responses (IE simply says "Syntax Error", FireFox says "Missing ) in parenthical").
    Please help
  9. #9

    RE: Consistently getting errors using Coolite

    Any help would be greatly appreciated!!
  10. #10

    RE: Consistently getting errors using Coolite

    On your "missing )" error, have you tried using FireBug with FireFox to determine where the missing character is in the javascript? It's pretty good at isolating these types of problems.
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: Feb 17, 2011, 8:45 AM
  2. Publish Errors
    By Juls in forum 1.x Help
    Replies: 2
    Last Post: Jun 16, 2009, 2:54 PM
  3. [CLOSED] ScriptManager errors
    By Justin_Wignall in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 25, 2009, 12:55 AM
  4. [FIXED] [V0.7] errors after svn update
    By [WP]joju in forum Bugs
    Replies: 2
    Last Post: Nov 13, 2008, 9:18 PM
  5. Replies: 3
    Last Post: Oct 16, 2008, 10:25 AM

Posting Permissions