I want to set some specific widths (in pixels) for a couple of my columns, but not on others. I found a different post (http://ko.infragistics.com/community/forums/t/91600.aspx) that said that I have to use the column Resizing feature with those columns minimumWidth set, then trigger the igGridResizing event to get it to adjust the width of the columns.
The problem I am having is that I cannot find an event to attach to that I can use to trigger calling the igGridResizing when the page is first loaded. I do use remote data. I have tried the created, dataBound, dataRendered, rowsRendered, and rendered events. Whenever I call .igGridResizing( "resize", i ) I get the error:
"cannot call methods on igGridResizing prior to initialization; attempted to call method 'resize'"
What event cannot I attach to to accomplish this?
Edit: I have of course tried the obvious calling it after the igGrid call, and got the same result.
$(element).igGrid(gridOptions);
$(element).igGridResizing( "resize", 0 );
I found a similar forum post (http://ko.infragistics.com/community/forums/p/92952/462543.aspx#462543) and changed my <div> to a <table> and it fixed the problem.
Hello rsimm,
I'm glad that you were able to resolve your issue. This behavior is explained in our "Known Issues" document for the igGrid as "Incorrect grid features API calls’ behavior with <div> elements".
Best regards,Martin PavlovInfragistics, Inc.