Closed GoogleCodeExporter closed 8 years ago
Hi,
I have put together a datatable grid that becomes editable once you click on
the cells. One of my columns is a display toggle called hidden which needs to
be checkbox. I have tried implementing the code but when i click on the column
hidden the the text dissapears and no checkbox?
I have reverted back to a normal text box column for now.
Can you show me how to implement this using aoColumns.
Also a complete jeditable with this code would be handy as I am not sure i have
implemented this properly.
Thanks in advance!
Phil
"aoColumns":[
/* {}, name + environment as id */
null, /*name */
null, /*environment */
{cssclass:"number"}, /*scratch total */
{}, /*cpu_info */
{}, /*comment*/
{cssclass:"email"}, /*groups*/
{}, /*hidden type: "text" */
]
Original comment by philokee...@googlemail.com
on 13 Sep 2011 at 8:55
Attachments:
Hi,
First is your version of the jeditable official or something you have modified?
As far as I know checkbox is not spported in standard jeditable.
I have added your verison of file (with a slight modification due to one bug in
FF) on the
http://jquery-datatables-editable.googlecode.com/svn/trunk/checkbox.html. You
can see there how it works.
I think that your checkbox dissabears because blur even happens and cancel
action is executed. Hence, I have placed onblur:submit in the settings. Also
note that jeditable parameters should be passed in the aoColumns and not
externally.
Regards,
Jovan
Original comment by joc...@gmail.com
on 13 Sep 2011 at 8:41
Original comment by joc...@gmail.com
on 30 Sep 2011 at 9:45
Check box support is implemented see
http://jquery-datatables-editable.googlecode.com/svn/trunk/inline-edit-extra.htm
l.
Know bug is that there is no server-side validation. Once the value is sent to
server it is placed in the table.
Original comment by joc...@gmail.com
on 1 Oct 2011 at 8:46
Original issue reported on code.google.com by
joc...@gmail.com
on 13 May 2011 at 7:03