Is sub_row supported in 2.0 standard edition ?
I have the following code
mygrid.setColTypes(“sub_row,edtxt,ed,price,ch,co,ra,ro”);
When i execute i am getting the error as below
Error type: Configuration
Description: Incorrect cell type: sub_row_ajax
Please suggets
Is sub_row supported in 2.0 standard edition ?
Only in pro. ( dhtmlxgrid_excell_sub_row.js requires, which is part of dhtmlxgrid pro )
Hi!
Thanks for the great product!
dhtmlx.com/docs/products/dht … ions.shtml
It shows, that the sub-row is supported. I’m using v2.6 suite. Is the sub-row supported, or is it going to be supported later?
Thanks,
–
S
Thanks!
I use: dhxGrid.setColTypes('sub_row_ajax,cntr,ch,ro,ro,…
and I attached the result.
–
S
Forgot to tell, it’s GPL version, not pro!
Here is the code:
dhxGrid = dhxLayout.cells('c').attachGrid();
gridVars['bejatszok'] = dhxGrid;
dhxGrid.setImagePath('lib/dhtmlx/imgs/');
dhxGridcombo = dhxGrid.getCombo(4);
dhxGridcombo.put('0', 'Felvitel alatt');
dhxGridcombo.put('1', 'Módosítás alatt');
dhxGridcombo.put('2', 'Kész');
dhxGridcombo.put('3', 'Elvetve');
dhxGridcombo.save();
dhxGrid.setSkin('light');
dhxGrid.setHeader(',<img border="0" style="margin-left: 7px;" src="images/iconset/application_side_list.png" align="absmiddle"/>,<img onclick="GridMarkAll(dhxGridListId);" border="0" style="margin-left: 2px;" src="images/iconset/tick.png" align="absmiddle"/>,ID,Kód,<img border="0" style="margin-right: 2px;" src="images/iconset/timeline_marker.png" align="absmiddle"/>Státusz,Tipus,Év,#,Bejátszás címe,Korhatár,AGB,Származás,Gyártás jellege,Bejátszás dátum,Első sugárzás,Létrehozás,Létrehozó,Elvetés,Elvető,Esemény,Érdekesség,Helyszínek,Tartalom,TVH,Forrás,ETO,Jogi korlát,Jogtulajdonos,Sportág,Sport nem,Versenyszám,Tét');
dhxGrid.setColTypes('sub_row,cntr,ch,ro,ro,coro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro');
dhxGrid.setInitWidths('20,50,40,50,130,100,70,35,30,200,100,40,100,100,120,120,120,120,120,120,200,200,200,200,100,100,100,200,100,150,150,150,150');
dhxGrid.setColAlign('center,center,center,center,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left');
dhxGrid.setColSorting('na,na,na,int,str,str,str,int,int,str,str,str,str,str,str,str,date,str,date,str,str,str,str,str,str,str,str,str,str,str,str,str,str');
dhxGrid.enableAlterCss('gridEven', 'gridUneven');
dhxGrid.enableRowsHover(true, 'gridHover');
dhxGrid.setStyle('', '', '', '');
dhxGrid.init();
dhxGrid.loadXML(gridQueries['bejatszok']);
dhxGrid.adjustColumnSize(0);
dhxGrid.attachEvent('onAfterSorting', function(index, gridObj, direct){
GridChange(dhxGrid, 'bejatszok', index, direct, dhxGridSortingTypes[index]);
});
dhxGrid.attachEvent('onDynXLS', function(start, count){
dhxGrid.adjustColumnSize(0);
return true;
});
dhxGrid.attachEvent('onCheckbox', function(rId, cInd, state){
GridEdit('dhxGrid', 'bejatszok', rId, dhxGridFields[cInd], cInd, state);
return true;
});
dhxGrid.attachEvent('onEditCell', function(stage, rId, cInd, nValue, oValue){
if (stage == 2) GridEdit('dhxGrid', 'bejatszok', rId, dhxGridFields[cInd], cInd, nValue, oValue);
return true;
});
dhxGrid.attachEvent('onResizeEnd', function(){
GridChange(dhxGrid, 'bejatszok');
});
dhxGrid.attachEvent('onRowSelect', function(rId, cId ){
GridRowSelect(rId, 'bejatszok', 'dhxTabbarResultsInit(); dhxLayout.cells("b").showHeader();');
if (dhxGridTypes[cId] == 'ro') GridHighlight('dhxGrid', 'bejatszok', rId, dhxGridFields[1], 1);
});
dhxGrid.attachHeader(',,, ,#text_filter,#select_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter');
Sorry for misleading response, but this feature is available only in pro ( commercial ) version.