| Page 1 of 1 | [ 2 posts ] |
|
I have a scenario where I want to set the editable, editor, formatter on a row by row basis for a given column
eg: all rows satisfying condition1 will have editable textbox for column1 all rows satisfying condition2 will have editable dropdownbox for column1 with different format all rows satisfying condition3 will have non editable column1 with a different format (each row would only satisfy one condition) How would I accomplish this? I could figure out how to set format on a row by row basis by writing conditions based on row data in the formatter function but I donot know how to make it not editable and how to apply different editors. |
|
As for the formatters, you have this example:
http://www.satyam.com.ar/yui/#DataGrid Regarding conditional editing, for normal editing, all cells editing, you do as described here: http://developer.yahoo.com/yui/datatable/#cellediting Now, you are not limited to bind the cellClickEvent to the onEventShowCellEditor helper method myDataTable.subscribe("cellClickEvent", this.myDataTable.onEventShowCellEditor); You can write your own listener for that event, read information from it such as which row or column was the one clicked, and then decide to call onEventShowCellEditor or not. |
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group