Hello -
I have found that it is not possible to dynamically set the width of an igGrid when Virtualization is set to True.
I need to reset the Width of the Grid when the Window is re-sized.
Destroying and recreating the Grid is not an option for me as it will require a lot of Data Usage, and it just isn't right to have to reload the Grid every time its size is changed.
Here is a code sample that sets up my Grid:
var width = $('#gridDiv').width();
$('#gridScheduling').igHierarchicalGrid({
odata: true, dataSource: clientDS, initialDataBindDepth: 0,width: width, height: '500px',virtualization:true, virtualizationMode: 'continuous',
...
};
Any thoughts, comments or work around would be greatly appreciated.
Thank You,
Dominick Ciccone
Hi Dominick,
I just want to update you that the service release that fix this issue (171116) is ready and you can download it form the My keys and download section under the Service release Tab. Please let us know if you still experience any issues.
Hello Dominick,
Thank you for your reply. Please ignore my previous comment.
There is a previously reported issue regarding changing the width in this scenario which will be addressed in a future service release. The Id of the work item is 171116. I have created a support ticket for you regarding this matter (CAS-137807-T3S8D0) and am linking your case to the development issue item to provide you with automatic notifications of the item status.
I will leave this case open and update you with any new information after the review. You can also continue to send updates to this case at any time.
You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing this case on the web site.
Please let me know if you need more information.
Hi Petar -
Is there a reason that I can set the Height dynamically but not the Width?
Could there possibly be a setting that could allow this?
Dominick
Unfortunately in this scenario it is not possible to change the grid's width without destroying and reinitializing as having the width of the grid (and columns) set in pixels is mandatory when using virtualization. The calculations done to estimate how the rows will be virtualized make it necessary for their width to remain constant. Therefore if virtualization is necessary destroying and recreating the grid is the only option in this case. You may be interested in considering to use paging in this scenario.
http://help.infragistics.com/Help/Doc/jQuery/2014.1/CLR4.0/html/igGrid_Enabling_and_Configuring_Virtualization.html
Hope this helps. Please do not hesitate to contact me with any questions or updates.