Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by roxana aioanei on Apr 24, 2008 23:32
open dhtmlx forum
Hello! I have a dhtmlxgrid cell which has inside a checkbox.

Hello! I have a dhtmlxgrid cell which has inside a checkbox. How can I asigne an id to that checkbox and how can I see in POST if that checkbox is checked or unchecked?
TIA
Answer posted by Support on Apr 25, 2008 01:45
The checkboxes in grid is not a real inputs - they are just a part of grid, so they can't have unique ID's
You can have something similar to next

<form onsubmit=" this.checks.vale= mygrid.getCheckedRows(0); ">
    <input type="hidden" name="checks" />

In such case on form submit list of checked rows will be stored in hidden input and send to server as part of form