| Page 1 of 1 | [ 3 posts ] |
|
Hi,
I am formatting one of the datatable's column as TextBox using the below built-in formatter. Code: YAHOO.widget.DataTable.formatTextbox But whenever user changes the value in the textbox, i need to do some business logic like validations etc... Is there any built-in textbox value change Event just like we have radioClickEvent, dropdownChangeEvent etc.. for other built-in formatters ? If there is one, i can subscribe to that event and do my business logic. Appreciate any help on this. Thanks in advance. |
|
I think you may be confusing "formatting" with "inline cell editing", which is easy to do with YUI2 DataTables as they both appear very similar.
First things first, I recommend you carefully read articles written by one of the contributors who goes by Satyam, specifically http://yuiblog.com/blog/2008/10/27/datatable-260-part-two/. He also has a website devoted almost fully to YUI2 DataTables at http://www.satyam.com.ar/yui/. This is essential reading ... especially based on the questions you have asked. These references will introduce you to inline cell-editing, validation, saving editor changes, etc... Then I suggest you read the DataTable API and look into the "editorSaveEvent" Event where you can incorporate some of your business logic. Hopefully this will give you a good starting place. Todd |
|
Thanks Smith,
I was precisely referring to 'Formatter' and not cell 'Editor'. Below link has the example of the same. http://developer.yahoo.com/yui/examples ... kedit.html |
| Page 1 of 1 | [ 3 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