Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by GB on Dec 17, 2008 21:35
open dhtmlx forum
Load tabbar in layout from grid event

Thanks again for your help.   Now I want to add text inside the third frame (C) from XML when the user clicks a certain row in the grid (B).

Is this the right code to do that?   Entire layout won't launch with this code in there:

var dhxtabbar = dhxLayout.cells("c").attachTabbar();
dhxtabbar.setImagePath("tabbar/codebase/imgs/");
dhxtabbar.loadXML("http://secure.spidermed.com/tabs_2.xml");    **** This is supposed to load the intiial page?

dhxGrid.attachEvent("onRowSelect",doOnRowSelected);{
    dhxGrid.clearAll();
    dhxtabbar.loadXML(">http://secure.spidermed.com/ajax_detail_xml.fwx?for="+id);     *** This is supposed to load the pages based on rows clicked in the grid?
    return true;
});

 

 

Answer posted by Support on Dec 18, 2008 01:43
>>**** This is supposed to load the intiial page?
If you have "selected" attribute for some tab in XML - it will be active after data loading and related url will be loaded

>>*** This is supposed to load the pages based on rows clicked in the grid?
It will reload tabbar for sure, but in above context the line
   dhxGrid.clearAll();
probably must be a 
  dhxtabbar.clearAll();