Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael Steinboeck on May 23, 2008 10:18
open dhtmlx forum
dhtmlxgrid initialize from html table - how to set id

I initialize from HTML table such as:
<table id='tblToGrid'><tr> .... </table>
<script>
var mygrid = new dhtmlXGridFromTable('tblToGrid');
mygrid.setSkin('light');
mygrid.submitOnlyChanged(false);
...

after submitting, i receive values like:
[cgrid2_1211562594703_tblToGrid_9_4] => xxx

How could I define the id of the grid?
Answer posted by Support on May 26, 2008 01:49
You can define ID by next command

mygrid.entBox.id = "custom";

( in next version we will add functionality to take ID|name of existing table )