Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 07, 2007 10:28
open dhtmlx forum
I want to use treegrid in a tab, is that possible and if so how....

I want to use treegrid in a tab, is that possible and if so how.
Answer posted on Mar 07, 2007 10:30

It is possible. Just attach "gridbox" div as a content to tabbar and init grid inside it.

                <div id="gridbox" height="200px" width="200px"></div>

                                tabbar.addContent("a1","gridbox");

                               mygrid=new dhtmlXGridObject("gridbox");

                               ...

 or

                                tabbar.setOnLoadingEnd(function(){

                                               mygrid=new dhtmlXGridObject("gridbox");

                                               ...                                          

                               });

                               tabbar.loadXML(tabs.xml);                       

                              tabbar XML

 
<?xml version="1.0"?>

<tabbar>

    <row>

        <tab id="a1" width='200px' selected="1">Tab 1-1

            <content>

                <![CDATA[             <div id="gridbox" height="200px"

width="200px"></div>         ]]>

            </content>

        </tab>

    </row>

</tabbar>
Answer posted by Alexandra (Support) on Dec 11, 2014 00:30

If you haven't found the needed information there and still looking for a solution, you will find the additional help checking dynamic combo box javascript and google events calendar.