jQuery UI Widgets Forums TreeGrid Tree Grid render

This topic contains 3 replies, has 2 voices, and was last updated by  karthi3788 7 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Tree Grid render #95449

    karthi3788
    Participant

    Hello,

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

    http://jsfiddle.net/karthi3788/xLgoyq4u/2/

    Thanks
    Karthi

    Tree Grid render #95454

    Hristo
    Participant

    Hello Karthi,

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

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Tree Grid render #95467

    karthi3788
    Participant

    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.

    Tree Grid render #95468

    karthi3788
    Participant

    Hristo,

    I found the fix, all I have to do is to trigger the resize.jqx event on the treegrid.

    Thanks
    Karthi

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.