'SubTableIds.length' is null or not an object

Tags :
  • (None)

i am using intersoft webgrid, i am getting the javascript error 'SubTableIds.length' is null or not an object. please let me know how to solve this?

Answers

Thanks for all your replies. I am having another js file,individually both js works fine while putting altogether in the intersoft webgrid page it creates javascript error. Now i resolved it.

All Replies

Hello Siva,

Would you mind to explain more on how to reproduce the errors? Is it reproducible using our samples, let's say the samples in live.intersoftpt.com?

 
Providing the most excellent technical support for Intersoft customers. Your satisfaction is our success.

Hello Siva,

Yes, would you like to explain more detail?
'SubTableIds.length' also depends on what WebGrid structure you have. Each different WebGrid structure can affect on 'SubTableIds'. If you can provide more informations about your scenario, that would be helpful.

Regards,
Handy

Below is the control definition i used


<ISWebGrid:WebGrid ID="igvECDFile" runat="server" Height="300px" UseDefaultStyle="True"

                            Width="490px" DefaultStyleMode="Elegant">

                            <LayoutSettings AlternatingColors="True" GridLineStyle="Solid" Hierarchical="false"

                                AutoFilterSuggestion="false" GridLineColor="236, 233, 216" CellPaddingDefault="0"

                                DisplayDetailsOnUnhandledError="false" ApplyFiltersKey="Enter" RowHeightDefault="10px"

                                AllowColumnMove="No" AllowExport="No" AllowColumnSizing="No" RowHeaders="No"

                                AllowGrouping="Yes" AllowSorting="No" AutoFitColumns="True" PagingMode="VirtualLoad"

                                AlwaysShowHelpButton="False">

                                <ClientSideEvents OnCellClick="igvECDFile_DoCellClick" />

                            </LayoutSettings>

                            <RootTable Caption="ECD File Details" DataKeyField="ID">

                                <Columns>

                                    <ISWebGrid:WebGridColumn Caption="File Name" HiddenDataMember="ID" DataMember="FileName"

                                        Name="FileName" Width="50px">

                                        <HeaderStyle HorizontalAlign="Center" />

                                    </ISWebGrid:WebGridColumn>

                                    <ISWebGrid:WebGridColumn Caption="Version" DataMember="Version" Name="Version" Width="80px">

                                        <HeaderStyle HorizontalAlign="Center" />

                                    </ISWebGrid:WebGridColumn>

                                    <ISWebGrid:WebGridColumn Caption="File Size" DataMember="FileSize" Name="FileSize"

                                        Width="80px">

                                        <HeaderStyle HorizontalAlign="Center" />

                                    </ISWebGrid:WebGridColumn>

                                    <ISWebGrid:WebGridColumn Caption="Delete" ColumnType="Image" EditType="NoEdit" ButtonAutoPostback="true"

                                        CellImage="/images/delete.gif" ButtonImage="/images/delete.gif" Name="Delete"

                                        Width="30px">

                                        <HeaderStyle HorizontalAlign="Center" />

                                    </ISWebGrid:WebGridColumn>

                                </Columns>

                            </RootTable>

                        </ISWebGrid:WebGrid>


and in the server page on page load i am binding a dataset which will contain only one table. i am getting 'SubTableIds.length'  error in the browser on the page load. i hope this information is enough for you tell a solution.

Please don't bind on page load event but please bind it on IntializeDataSource event.

e.g,

protected void WebGrid1_InitializeDataSource(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
{
        dsNorthwind.CustomersDataTable dt = new dsNorthwind.CustomersDataTable();
        dsNorthwindTableAdapters.CustomersTableAdapter da = new dsNorthwindTableAdapters.CustomersTableAdapter();
        da.Fill(dt);
        e.DataSource = dt;
}

Attached sample has similar structure with yours scenario but no error returns.
The only things that different are I don't use OnCellClick client side event and our bind method.
But it should be no problem since you got the issue at page load. (Is there anthing else you used on page load?)

Please test my sample on your environment and let me know if you also get error on my sample.
It would be great if you can help me replicate your issue on my sample and send it back to me.

Regards,
Handy

1 attachment

I have tested my code in a new dotnet application, it works fine without any javascript errors. When i tested the same in DNN 5.1.1 removing other controls, the javascript error occurs. i have attached my DNN module

1 attachment

Hi Siva,

I could not see your issue by testing your module in mine DNN 5.1.1 since i don't have any of your dataset or database. So, I made a test with the sample which i sent before. I created a module based on that and works fine. Please let me know if is there more details you wanted to confirm.

Regards,
Handy

First i had installed intersoft 2008 and i have been working. when intersoft 2009 was installed i have uninstalled the 2008 version and made a fresh installation of 2009. Does this issues related to version problem?

suppose if i update the control using update manager, do i need to make any upgrade to my existing code?

So, do you mean that it works on 2008R2? It should be also working on 2009R1. In fact, if there is a regression in our new release, we also need to replicate the issue first. Based on my previous post, if you create a module using my sample code, does the issue also persist?

Regards,
Handy

James Member

Siva, the 2009 updates should work with your existing code. However, like any applications, you still have to test your application before deploying.

Hi,

when i removed the property AutoFitColumns="true" from the grid, the javascript error went.  can you please tell me how to resolve this?


Even my sample used AutoFitColumns="true" and works fine. Have you actually used my code as your module?

Regards,
Handy

Thanks for all your replies. I am having another js file,individually both js works fine while putting altogether in the intersoft webgrid page it creates javascript error. Now i resolved it.

All times are GMT -5. The time now is 2:55 AM.
Previous Next