Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Pravu Mishra on Jul 21, 2009 03:38
open dhtmlx forum
split and hidden column in a Grid

Hi Alex,

The 0th column in my grid is hidden by placing "mygrid.setColumnHidden(0,true);" . I tried to make split at 2nd column by placing mygrid.splitAt(2) . Now my hidden column is getting displaied.

My need is as mentioned below.

1) the 0th column must be hidden

2)1st and 2nd column must have split.

Could you please let me know how to achieve the above?

Thanks and Regards,

Pravu Mishra.

Answer posted by dhxSupport on Jul 21, 2009 10:10
Instead of mygrid.setColumnHidden(0,true) you should use mygrid._fake.setColumnHidden(0,true);. This methos must be called after mygrid.splitAt(2) :
mygrid.splitAt(2); 
 mygrid._fake.setColumnHidden(0,true);

Answer posted by Pravu Mishra on Jul 22, 2009 00:47

This does not work and says mygrid._fake is undefined.

I have placced the following script files

<script src="js/dhtmlxcommon.js"></script>
  <script src="js/dhtmlxgrid.js"></script>
  <script  src="js/dhtmlxgridcell.js"></script>

  <script src="js/dhtmlxcalendar.js"></script> 
  <script src="js/dhtmlxgrid_excell_dhxcalendar.js"></script>
  <script src="js/dhtmlxgrid_srnd.js"></script>
  <script  src="js/dhtmlxgrid_filter.js"></script>
  <script  src="js/dhtmlxdataprocessor.js"></script>
  <script  src="js/dhtmlxgrid_pgn.js"></script>

  <script  src="js/dhtmlxcombo.js"></script>
  <script  src="js/dhtmlxgrid_undo.js"></script>
  <script  src="js/dhtmlxgrid_excell_combo.js"></script>
  <script  src="js/dhtmlxgrid_splt.js"></script>

Is there any additional js file/s required to be imported?

Thanks and Regards,

Pravu Mishra.

 

Answer posted by dhxSupport on Jul 22, 2009 02:21
Attached files are correct. Working sample will be send you by email