I am setting the treegrid width programatically by having a div wrapper and setting treegrid width 100%, and everything works except for the rendering portion. I have attached the JSFiddle below for this problem. The problem is refresh not working, but rendering works but it loses the state of treegrid(like row selection). But window resize or minimize/maximize works like a charm, without any above issues. What is the method needs to be called to re-render the tree grid properly(like window re-size).
You could change the size of the jqxTreeGrid relevant to the container with the same width as the parent (it’s 100 percent).
Another way as you started with render method – $("#treeGrid").jqxTreeGrid('render'); and also, you should use other methods to collect desired information (ex: getSelection).
Thanks Hristo for the reply. Changing the size of the jqxTreegrid relevant to the container its not working. Can you update the fiddle and let me know if its working. I can’t save and restore the treegrid, because it again triggers the rowselect,rowcheck and expand events, which I already defined it to do some specific functionality.
My question is , you guys are repainting the width and height when we resize the window or minimize/maximizing it. I can do the same thing, if you can guide what the api does during those events.