I was trying some of the features of igGrid, and come across an error every time I run the grid with hiding feature on, and I only get it if I use IE7.
The error from IE was "Stop running this script? A script on this page is causing browser to run slowly..." then since I'm in debugging mode, I also got an error from jQuery js file: Microsoft JScript runtime error:Out of stack space.
Is this a known bug? Has anyone had this problem before ? if so, is there a way to fix this issue ?
Hi Jeffrey Andika,
This is a know issue which was introduced in 12.1 (build 1010). The issue is fixed in the latest service release 12.1 (build 2023).
Hope this helps,
Martin Pavlov
Infragistics, Inc.
Ok, thanks for the clarification.
Thanks,
Jeffrey
Hi Jeffrey,Yes, you can access Service Release build from our CDN (Full details are available in the respective help article: http://help.infragistics.com/NetAdvantage/jQuery/2012.1/CLR4.0?page=Deployment_Guide_Infragistics_Content_Delivery_Network(CDN).html) So the S.R. build for 12.1 is #2023, thus you can reference it using the following URL prefix:http://cdn-na.infragistics.com/jquery/20121/2023 For the 2011.2 volume release, you should use http://cdn-na.infragistics.com/jquery/20112/2132For the 2011.1 volume release, you should use http://cdn-na.infragistics.com/jquery/20111/2118 Hope this helps. PS: Currently we distribute latest builds on demand for subscribed customers only since they are considered exceptions from our release schedule.
Borislav & Martin,
So, I kept getting error trying to grab the js file from the cdn, so I just copied the script from this URL:
http://cdn-na.infragistics.com/jquery/20121/2023/js/infragistics.loader.js
pasted it to my local infragistics.loader.js file, and I am still getting the same error in IE8.
Is that the correct build ?
Apart from referencing the correct version of igLoader you also need to reference the correct scriptPath and cssPath when you initialize it.
Attached you can find sample which shows how to do that.
If you have further questions feel free to ask.
Best regards,
Hi Martin,
I already did that but it didn't work. However, when I copied your code and created a test page, the grid works. I'm starting to think the culprit might be the MVC helper is not producing correct jQuery script. Is that possible ?
Also, do I have to specify the 'resources' in the igLoader script ? Since I have other grid features turned on, if I just do something like this below it also should work right ?
@(Html.Infragistics() .Loader() .ScriptPath("http://cdn-na.infragistics.com/jquery/20121/2023/js/") .CssPath("http://cdn-na.infragistics.com/jquery/20121/2023/css/") .Render() )
The error that I got from Visual Studio is "Microsoft JScript runtime error: The remote request to fetch data has failed: (parseerror) 'this.settings.paging' is null or not an object"
Below is the code snippet of features that I turned on for my grid:
.Features(features => { features.Updating() .EnableAddRow(false) .EditMode(GridEditMode.None) .ColumnSettings(settings => { settings.ColumnSetting().ColumnKey("ID"); settings.ColumnSetting().ColumnKey("Description"); settings.ColumnSetting().ColumnKey("Status"); settings.ColumnSetting().ColumnKey("EffectiveFrom"); settings.ColumnSetting().ColumnKey("EffectiveTo"); }); features.Paging() .PageSize(5) .PrevPageLabelText("Previous") .NextPageLabelText("Next"); features.Sorting(); features.Selection() .MouseDragSelect(true) .MultipleSelection(true) .Mode(SelectionMode.Row); features.Resizing() .AllowDoubleClickToResize(true); features.RowSelectors() .EnableCheckBoxes(true) .EnableRowNumbering(false);
features.Hiding();
})
Even if I turned off everything except Hiding() and added 'igGrid.Hiding' as a resource in loader, I still get the same error. Am I doing something wrong here ?
Please help, thanks.
Hi Jeffrey,Allow me to go through your questions one by one :)
jAndika said:However, when I copied your code and created a test page, the grid works. I'm starting to think the culprit might be the MVC helper is not producing correct jQuery script. Is that possible ?
jAndika said:Also, do I have to specify the 'resources' in the igLoader script ? Since I have other grid features turned on, if I just do something like this below it also should work right ?
jAndika said: Even if I turned off everything except Hiding() and added 'igGrid.Hiding' as a resource in loader, I still get the same error. Am I doing something wrong here ?
Ok, just had to make sure.. Thanks guys
Hi Jeffrey,I used the 1010 build for the loader as a demonstration that neither it (the igLoader), nor the MVC DLL had to be from the latest SR in order to get things rolling :)But sure - it's always better to reference all Infragistics resources from the same build as you suggest.Cheers!
It's working !! :)
With the same exact grid configuration my grid is working after I updated the script to use 2049 build instead of 2023.
One last question, in your DefinedColumns.html, you have the script refererence to 1010 build like this:
<!--IG Loader--> <script type="text/javascript" src="http://cdn-na.infragistics.com/jquery/20121/1010/js/infragistics.loader.js"></script>
It should be 2049 right ? just like the one in loader or is there a reason you're using 1010 ?
below is your loader code:
@(Html.Infragistics() .Loader() .ScriptPath("http://cdn-na.infragistics.com/jquery/20121/2049/js/") .CssPath("http://cdn-na.infragistics.com/jquery/20121/2049/css/") .Render() )
Thanks again,
Cool, thanks !! I'll try it and report back
Regards,