Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Selectively enabling/disabling editing of cells   Message List  
Reply | Forward Message #38844 of 52127 |
Re: Selectively enabling/disabling editing of cells

Hello!

OK, that was what I half expected. Thanks for telling me that that's how to do it.

Best regards,
 Christian Tiberg


2008/10/7 Christian Tiberg <ctiberg@...>
Hello!

We're doing another iteration with the order editor. This time we need to add input of serial numbers for each order row. But not all products requires them, and we'd like to disable the editor for those products, simply by not showing the hand cursor. This is what seems to be responsible for starting the edit:

this.myDataTable.subscribe("cellClickEvent", this.myDataTable.onEventShowCellEditor);

But that is called for any cell click, so it seems that the datatable itself checks if the cell is editable before showing the editor. It'd be helpful if one could get called for such checks. Is that possible in 2.5.2? Or in 2.6.0?

Best regards,
 Christian Tiberg



Tue Oct 7, 2008 1:25 pm

ctiberg
Offline Offline
Send Email Send Email

Forward
Message #38844 of 52127 |
Expand Messages Author Sort by Date

Hello! We're doing another iteration with the order editor. This time we need to add input of serial numbers for each order row. But not all products requires...
Christian Tiberg
ctiberg
Offline Send Email
Oct 7, 2008
11:54 am

The instruction you show below simply sets onEventShowCellEditor as the listener for cell clicks. You can put your own function there and you do the calling...
Satyam
satyamutsa
Offline Send Email
Oct 7, 2008
1:22 pm

Hello! OK, that was what I half expected. Thanks for telling me that that's how to do it. Best regards, Christian Tiberg 2008/10/7 Christian Tiberg...
Christian Tiberg
ctiberg
Offline Send Email
Oct 7, 2008
1:25 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help