| Page 1 of 1 | [ 8 posts ] |
|
Hello,
My ScrolingDataTable control has a TextBoxCellEditor. Also the editor enabled by double click or space key down. My problem is that the editor close automatically about 1 sec. The TextBoxCellEditor remains while I need When I checked with DataTable control. Is there timeout setting in the scrollingDataTable? |
|
Does the editor have the "focus" the whole time, or is the user scrolling with the editor open?
On my system with ScrollingDataTable the TextboxCellEditor remains open as long as the "focus" is on the editor. If the user "scrolls" the datatable the editor closes, as it should. |
|
Todd,
Thank you for your reply. As you mentioned, a list in the DataTable was a little bit scrolled ,so the editor have closed. This scrolling is unintended. The scroll occur with IE8.I tried to use chrome, the CellEditor remains! But I still want to use the inline CellEditor in the Scrolling DataTable with IE. Can I have any option scroll rock when editor is opened? |
|
You may want to research why the "unintended" scrolling is occurring, not sure if this is an IE quirk (a redundant term) or something in your app. ScrollingDatatable has a .disable() method but I don't see an enable method, I was thinking you could somehow "disable" scrolling while cell editor is active, but that is problematic on its own.
To answer your original question, there is no "timeout" for scroll. If you look at the source for ScrollingDatatable http://developer.yahoo.com/yui/docs/ScrollingDataTable.js.html and search for the private method "_onScroll" you can see where the cancelCellEditor is executed. Not quite sure how to advise on this one. Fortunately for me my target audience is free from using IE8. I recommend you investigate why the unintended scroll is happening. Maybe others can provide advice to you on this ... Todd |
|
Todd,
Thank you for your reply. I still investigate on this. It's encourage me that Scrolling and cellediting feature work on your system. I understand this widget little by little. I think the cause of the problem is Selected cell and Editing cell doesn't consist with. Anyway,I keep for looking how to fix on this. Thank you. |
|
I had the same problem. My solution was to disable the ScrollingDataTable by subscribing to the table's editorShowEvent, e.g.
Code: table.subscribe("editorShowEvent", table.disable()); and then call ScrollingDataTable.undisable() in the saveEvent and cancelEvent handlers for the editor. |
|
yamashita,
I case you're still reading this rather old thread, I remembered that I had to do one more thing to get this to work. I added the following override to my css file, .yui-skin-sam .yui-dt-editor { z-index: 10000; } I needed to make the z-index of the editor a really big number so that the editor would be enabled when the table was disabled. Very sorry for the oversight. Sean |
|
Sean,
Thank you inform. I was at the point of giving up to include this feature on my system because of all of my try have been rejected. I'm going to try again editable datatable. |
| Page 1 of 1 | [ 8 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