iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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?
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.
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?
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">
<ISWebGrid:WebGridColumn Caption="File Size" DataMember="FileSize" Name="FileSize"
Width="80px">
<ISWebGrid:WebGridColumn Caption="Delete" ColumnType="Image" EditType="NoEdit" ButtonAutoPostback="true"
CellImage="/images/delete.gif" ButtonImage="/images/delete.gif" Name="Delete"
Width="30px">
</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.
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
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.
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?
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?
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname