Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jorge Arzuaga on Feb 18, 2009 11:57
open dhtmlx forum
Insert objects forms in Grid

Hi.. i trying insert objects of forms HTML in my table into <td>? as show in below code, but don`t show form`s objects...

What`s is mi error? it`s possible?-.. Thanks..

<table id="proyectos" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50">Column1</td>
<td width="50">Column1</td>
</tr>
<tr>
<td>asd<input type="checkbox" name="checkbox" id="checkbox"></td>
<td><input type="text" name="textfield" id="textfield"></td>
</tr>
</table>
<p> </p>
<p>
<script type="text/javascript">
var mygrid = new dhtmlXGridFromTable('proyectos');
</script>
Answer posted by Support on Feb 19, 2009 02:36
It works correctly in local samples , except I recommend to add gridHeight="auto" attribute to resize grid correctly. 
Working sample attached 

( if you are using dhtmlxgrid 1.5 or earlier - they has known issues with rendering complex HTML from source table ) 
Attachments (1)
Answer posted on Feb 19, 2009 05:43
Thanks....! Is Ok
Answer posted by Jorge Arzuaga on Feb 19, 2009 08:11

Hi...I have other problem... I`m Initializationing from HTML table, I have 6 columns, in column 2,3,5 I have <select> and my html show well, but when I convert to dhtmlxGrid, the select show in columns 1,2,3 that is to say don`t respect the order of my filters... What`s my error..

 

Thanks... attach example file

Attachments (1)
Answer posted by Support on Feb 19, 2009 09:34
You are using
        <td rowspan="2"
but grid can't reuse rowspans assigned to original table, as result incorrect structure rendered.