Hi
in my MVC3 application i'm using igGrid. I'm resizing columns dinamically in this way
$(gridSelector).igGridResizing("resize", index, newWidth);
I use 'index' as number , or key as string. 'newWidth' is a Number.
In Chrome and i get this error 'Uncaught TypeError: Cannot read property 'style' of undefined ' in file infragistics.ui.grid.resizing.js in the following instruction (i written it in bold) :
j=p.length, o=p[f].style.width, n=/%$/.test(o)
Int the scope the 'p' member is length 0 and 'f' is equal/greater than 0, so it can't work.
It work fine in FireFox and IE9, i noticed it gave me same error one or two times but deleting cache etc. in IE it work fine now. Tried the same in Chrome but nothing.
Hi,
could you post some code snippets, the way you initialize the grid, in particular? Which version are you using? The same code seems to work fine in this online sample:
http://ko.infragistics.com/products/jquery/sample/grid/resizing-columns-programmatically
(change the values in the input boxes before clicking on "Apply Changes").
Thanks,
Angel
Hi Angel
Thanks for the answer !
I tried 2 3 times to create a sample project and it was working correctly. Finally i figured that i had to put the resize function in the 'iggriddatarendered' event. And it work perfectly.
Here is the documentation : http://help.infragistics.com/jQuery/2012.1/ui.iggridresizing (but there isn't written i have to user 'iggriddatarendered' event)