Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1905
Event that will allow calling functions on the igGrid after initialization
posted

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 );

Parents
No Data
Reply
  • 1905
    Verified Answer
    Offline posted

    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.

Children