I have the following code:
tabBooking = new dhtmlXTabBar('dvtabBooking');
tabBooking.setImagePath('/javascripts/dhtmlx/dhtmlxTabbar/codebase/imgs');
tabBooking.addTab('pax','Passengers','100px');
tabBooking.addTab('rmks','Remarks','100px');
tabBooking.addTab('conds','Conditions','100px');
grdPax = tabBooking.cells("pax").attachGrid();
grdPax.setImagePath('/javascripts/dhtmlx/dhtmlxGrid/codebase/imgs');
grdPax.setHeader('Type,First Name, Last Name, Age, Room Type');
grdPax.setInitWidths('80,100,100,40,80');
grdPax.setColAlign('left,left,left,right,left');
grdPax.setColTypes('ro,ed,ed,ron,ro');
grdPax.setColSorting('na,na,na,na,na');
grdPax.setColumnIds('paxtype,fname,lname,age,rmtype');
grdPax.enableEditTabOnly(true);
grdPax.enableLightMouseNavigation(false);
grdPax.enableEditEvents(true,true,true);
grdPax.setSkin('dhx_skyblue');
grdPax.init();
grdPax.addRow(1,'');
No error messages … BUT the Grid is not displaying. The Tabbar is displaying.
Please can you tell me what I’m doing wrong?
Thanks
Purvez
I have done some more trials and if I comment out all of the Tabbar creation and instead put in :
grdPax = new dhtmlXGridObject('dvtabBooking');
then the grid appears. Hope this helps you to tell me what is going wrong.
Thanks