Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by andreea on Aug 19, 2008 05:27
open dhtmlx forum
i get this error: this._h2 has no properties

i have used alert(mygrid.getOpenState(13));
and the xml is this :
<?xml version='1.0' encoding='UTF-8'?&gt;
<rows&gt;
  <row id='13'&gt;
  <cell type='sub_row_grid'&gt;http://avieriu/xml_grids/managing_bus_trip_stops_shift_246_1.xml</cell&gt;
  <cell&gt;23</cell&gt;
  <cell&gt;8</cell&gt;
  <cell&gt;1</cell&gt;
  <cell&gt;20</cell&gt;
  <cell&gt;1</cell&gt;
  <cell&gt;<![CDATA[<a href='http://avieriu/managing_bustrip_busses/?pbt=13'&gt;Alocate</a&gt;]]&gt;</cell&gt;
  <cell&gt;o</cell&gt;
  </row&gt;
  <row id='21'&gt;
  <cell type='sub_row_grid'&gt;http://avieriu/xml_grids/managing_bus_trip_stops_shift_246_2.xml</cell&gt;
  <cell&gt;19</cell&gt;
  <cell&gt;17</cell&gt;
  <cell&gt;1</cell&gt;
  <cell&gt;20</cell&gt;
  <cell&gt;1</cell&gt;
  <cell&gt;<![CDATA[<a href='http://avieriu/managing_bustrip_busses/?pbt=21'&gt;Alocate</a&gt;]]&gt;</cell&gt;
  <cell&gt;o</cell&gt;
  </row&gt;
  <row id='24'&gt;
  <cell type='sub_row_grid'&gt;http://avieriu/xml_grids/managing_bus_trip_stops_shift_246_3.xml</cell&gt;
  <cell&gt;45</cell&gt;
  <cell&gt;7</cell&gt;
  <cell&gt;0</cell&gt;
  <cell&gt;10</cell&gt;
  <cell&gt;1</cell&gt;
  <cell&gt;<![CDATA[<a href='http://avieriu/managing_bustrip_busses/?pbt=24'&gt;Alocate</a&gt;]]&gt;</cell&gt;
  <cell&gt;o</cell&gt;
  </row&gt;
  <row id='26'&gt;
  <cell type='sub_row_grid'&gt;http://avieriu/xml_grids/managing_bus_trip_stops_shift_246_4.xml</cell&gt;
  <cell&gt;30</cell&gt;
  <cell&gt;27</cell&gt;
  <cell&gt;0</cell&gt;
  <cell&gt;50</cell&gt;
  <cell&gt;1</cell&gt;
  <cell&gt;<![CDATA[<a href='http://avieriu/managing_bustrip_busses/?pbt=26'&gt;Alocate</a&gt;]]&gt;</cell&gt;
  <cell&gt;o</cell&gt;
  </row&gt;
  <row id='27'&gt;
  <cell type='sub_row_grid'&gt;http://avieriu/xml_grids/managing_bus_trip_stops_shift_246_5.xml</cell&gt;
  <cell&gt;46</cell&gt;
  <cell&gt;26</cell&gt;
  <cell&gt;0</cell&gt;
  <cell&gt;20</cell&gt;
  <cell&gt;1</cell&gt;
  <cell&gt;<![CDATA[<a href='http://avieriu/managing_bustrip_busses/?pbt=27'&gt;Alocate</a&gt;]]&gt;</cell&gt;
  <cell&gt;o</cell&gt;
  </row&gt;
  <row id='29'&gt;
  <cell type='sub_row_grid'&gt;http://avieriu/xml_grids/managing_bus_trip_stops_shift_246_6.xml</cell&gt;
  <cell&gt;46</cell&gt;
  <cell&gt;26</cell&gt;
  <cell&gt;1</cell&gt;
  <cell&gt;20</cell&gt;
  <cell&gt;1</cell&gt;
  <cell&gt;<![CDATA[<a href='http://avieriu/managing_bustrip_busses/?pbt=29'&gt;Alocate</a&gt;]]&gt;</cell&gt;
  <cell&gt;o</cell&gt;
  </row&gt;
  <row id='48'&gt;
  <cell type='sub_row_grid'&gt;http://avieriu/xml_grids/managing_bus_trip_stops_shift_246_7.xml</cell&gt;
  <cell&gt;30</cell&gt;
  <cell&gt;27</cell&gt;
  <cell&gt;1</cell&gt;
  <cell&gt;50</cell&gt;
  <cell&gt;1</cell&gt;
  <cell&gt;<![CDATA[<a href='http://avieriu/managing_bustrip_busses/?pbt=48'&gt;Alocate</a&gt;]]&gt;</cell&gt;
  <cell&gt;o</cell&gt;
  </row&gt;
</rows&gt;

I give u one of the xml for the subgrids:

<?xml version='1.0' encoding='UTF-8'?&gt;
<rows&gt;
<head&gt;
<column width='100' type='co' align='left' sort='str'&gt;Haltes <option value='10'&gt;Asiadok</option&gt;<option value='35'&gt;Autogara Vest</option&gt;<option value='20'&gt;Blancefloerlaan</option&gt;<option value='17'&gt;Bonapartedok</option&gt;<option value='42'&gt;Dacia</option&gt;<option value='21'&gt;Eeuwfeest Kliniek</option&gt;<option value='29'&gt;Evonik</option&gt;<option value='36'&gt;Gara</option&gt;<option value='33'&gt;HUB Dok</option&gt;<option value='32'&gt;HUB N-Z</option&gt;<option value='28'&gt;Ineos</option&gt;<option value='15'&gt;Kempisch Dok</option&gt;<option value='22'&gt;Koning Albertpaark</option&gt;<option value='27'&gt;Lanxess</option&gt;<option value='41'&gt;Mircea cel Batran</option&gt;<option value='30'&gt;Monsanto</option&gt;<option value='8'&gt;Noordkai</option&gt;<option value='34'&gt;Pacurari</option&gt;<option value='37'&gt;Podu de Piatra</option&gt;<option value='38'&gt;Podu Ros</option&gt;<option value='19'&gt;Sint Annatunnel</option&gt;<option value='18'&gt;Sint Pauluskerk</option&gt;<option value='31'&gt;Solvay</option&gt;<option value='39'&gt;Tatarasi</option&gt;<option value='40'&gt;Tg Cucu</option&gt;<option value='16'&gt;Willemdok</option&gt;</column&gt;
<column width='100' type='ed' align='center' sort='str'&gt;SHIFT LATE</column&gt;
<column width='100' type='ed' align='center' sort='str'&gt;EARLY SHIFT</column&gt;
<column width='100' type='ed' align='center' sort='str'&gt;DAY SHIFT</column&gt;
<column width='100' type='ed' align='center' sort='str'&gt;NIGHT SHIFT</column&gt;
<column width='100' type='ed' align='center' sort='str'&gt;SHIFT DIFFERENT</column&gt;
<column width='0' type='ro' align='center' sort='str'&gt;StopID_initial</column&gt;
<column width='0' type='ro' align='center' sort='str'&gt;Status</column&gt;
</head&gt;
  <row id='97'&gt;
  <cell&gt;27</cell&gt;
  <cell&gt;21:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;27</cell&gt;
  <cell&gt;o-o-o-o-o</cell&gt;
  </row&gt;
  <row id='100'&gt;
  <cell&gt;40</cell&gt;
  <cell&gt;12:33</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;40</cell&gt;
  <cell&gt;o-o-o-o-o</cell&gt;
  </row&gt;
  <row id='107'&gt;
  <cell&gt;31</cell&gt;
  <cell&gt;12:11</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;31</cell&gt;
  <cell&gt;o-o-o-o-o</cell&gt;
  </row&gt;
  <row id='109'&gt;
  <cell&gt;18</cell&gt;
  <cell&gt;12:14</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;18</cell&gt;
  <cell&gt;o-o-o-o-o</cell&gt;
  </row&gt;
  <row id='110'&gt;
  <cell&gt;39</cell&gt;
  <cell&gt;12:56</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;39</cell&gt;
  <cell&gt;o-o-o-o-o</cell&gt;
  </row&gt;
  <row id='116'&gt;
  <cell&gt;35</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;00:00</cell&gt;
  <cell&gt;35</cell&gt;
  <cell&gt;o-o-o-o-o</cell&gt;
  </row&gt;
</rows&gt;

when the alert is executed i get this error:

this._h2 has no properties
[Break on this error] var z=this._h2.get[rowId||0];

Answer posted by Support on Aug 19, 2008 07:47
mygrid.getOpenState is method of TreeGrid it doesn't related to plain Grid with sub-grids as in your case.