bacsa / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 0 forks source link

Editing expanded row details #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Jovan, this is probably more an enhancement request than a question, I think:

Background:
I have a column (8) with lots of text that will mess up the look of datatables 
so it needs to be hidden. Datatables provide a way to display any column via 
row details i.e. call fnFormatDetails  to display the hidden column e.g. 
aData[8]

Question/Request is to be able to edit the info from aData[8] in 
the show row details form with your editables plugin?

Datatables row details doc:
http://www.datatables.net/examples/server_side/row_details.html

Similar request:
http://datatables.net/forums/comments.php?DiscussionID=4175

Thanks

Original issue reported on code.google.com by yfn...@gmail.com on 15 Jun 2011 at 7:52

GoogleCodeExporter commented 9 years ago
Hi,

I understand what you need but I would need to find some generic way to handle 
this. If I put in the plugin code that handles expanding details this is little 
bit out of scope of this plugin and also there will be some constrants 
regarding the way how expanded rows are handled.
If you are using custom code for expanding isn't is easier to locate details 
row diretl and apply expandable directly on that row?

Original comment by joc...@gmail.com on 17 Jun 2011 at 6:26

GoogleCodeExporter commented 9 years ago
Jovan, I haven't put any code to expand the row details yet as it's an extra 
column/step and I would like to keep it as simple as possible so I'm exploring 
what I can do with the existing widgets.

Ideally, the row details/add. details column are not needed i.e., just use the 
existing editable column in the row, but with it being constrained to only 
display a limited number of rows normally e.g. 3 or 1 row, so that the display 
of the table don't get messed up if a particular row has too much details. When 
it's clicked for edit, the editable textarea should then expand to it's full 
height per text e.g. 20 rows etc. Not sure if there's such an option though. 
Enhancement?

Original comment by yfn...@gmail.com on 17 Jun 2011 at 8:00

GoogleCodeExporter commented 9 years ago
I cannot put this as a part of the plugin it is too custom. It would be best if 
you could call .editable() directly in the function where you initiate 
expanding.

Jovan

Original comment by joc...@gmail.com on 29 Sep 2011 at 7:13