Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Florante Kho on Oct 03, 2009 18:47
open dhtmlx forum
attaching grid to a layout

hi,

This could be a bug .

This code does not work

         SubmenuTabbar.loadXMLString(data_menu[2],function ()
         {
        
         var dhxL10 = SubmenuTabbar.cells("a1").attachLayout("2E");
            menu_tree=dhxL10.cells("a").attachGrid();
            menu_tree.setImagePath("../imgs/");    
            comm_history_tree=dhxL10.cells("b").attachGrid();
            comm_history_tree.setImagePath("../imgs/");        
            //comm_history_tree1=dhxL10.cells("c").attachGrid();
            //comm_history_tree1.setImagePath("../imgs/");                
         }
         );

This does work

         SubmenuTabbar.loadXMLString(data_menu[2],function ()
         {
        
         var dhxL10 = SubmenuTabbar.cells("a1").attachLayout("2U);
            menu_tree=dhxL10.cells("a").attachGrid();
            menu_tree.setImagePath("../imgs/");    
            comm_history_tree=dhxL10.cells("b").attachGrid();
            comm_history_tree.setImagePath("../imgs/");        
            //comm_history_tree1=dhxL10.cells("c").attachGrid();
            //comm_history_tree1.setImagePath("../imgs/");                
         }
         );

This does not work.

         SubmenuTabbar.loadXMLString(data_menu[2],function ()
         {
        
         var dhxL10 = SubmenuTabbar.cells("a1").attachLayout("3U");
            menu_tree=dhxL10.cells("a").attachGrid();
            menu_tree.setImagePath("../imgs/");    
            comm_history_tree=dhxL10.cells("b").attachGrid();
            comm_history_tree.setImagePath("../imgs/");        
            //comm_history_tree1=dhxL10.cells("c").attachGrid();
            //comm_history_tree1.setImagePath("../imgs/");                
         }
         );

The only different here is the type of layout. 3U & 2E does not work but 3E does. Did i miss something here?

I hope that you can help me out. i need the 3U to work.

Thanks

Florante
Answer posted by Stanislav (support) on Oct 07, 2009 10:17
Unfortunately the issue can't be reconstructed locally. 
The 3U layout works correctly in the similar use-case. 

If issue still occurs for you - please provide any kind of sample or demo link where it can be reconstructed.
You can send such info directly to support@dhtmlx.com