[ 8 posts ]

yamashita

  • Username: ke-yamashita
  • Joined: Sun Jan 30, 2011 10:17 pm
  • Posts: 12
  • Offline
  • Profile

Timeout setting of Inline cell Editor inn the ScrollingDataT

Post Posted: Tue Feb 08, 2011 2:24 am
+0-
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?

Todd Smith

YUI Contributor

  • Username: stlsmiths
  • Joined: Thu Nov 05, 2009 10:03 am
  • Posts: 675
  • GitHub: stlsmiths
  • Gists: stlsmiths
  • IRC: t_smith
  • Offline
  • Profile

Re: Timeout setting of Inline cell Editor inn the ScrollingD

Post Posted: Tue Feb 08, 2011 8:57 am
+0-
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.

yamashita

  • Username: ke-yamashita
  • Joined: Sun Jan 30, 2011 10:17 pm
  • Posts: 12
  • Offline
  • Profile

Re: Timeout setting of Inline cell Editor inn the ScrollingD

Post Posted: Wed Feb 09, 2011 1:25 am
+0-
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?

Todd Smith

YUI Contributor

  • Username: stlsmiths
  • Joined: Thu Nov 05, 2009 10:03 am
  • Posts: 675
  • GitHub: stlsmiths
  • Gists: stlsmiths
  • IRC: t_smith
  • Offline
  • Profile
Tags:

Re: Timeout setting of Inline cell Editor inn the ScrollingD

Post Posted: Wed Feb 09, 2011 7:28 am
+0-
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

yamashita

  • Username: ke-yamashita
  • Joined: Sun Jan 30, 2011 10:17 pm
  • Posts: 12
  • Offline
  • Profile

Re: Timeout setting of Inline cell Editor inn the ScrollingD

Post Posted: Wed Feb 16, 2011 1:42 am
+0-
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.

Sean Fitzsimmons

  • Username: seanf
  • Joined: Wed Sep 16, 2009 6:16 am
  • Posts: 78
  • Location: Baltimore, Maryland, USA
  • Offline
  • Profile
Tags:

Re: Timeout setting of Inline cell Editor inn the ScrollingD

Post Posted: Wed Feb 16, 2011 9:23 am
+0-
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.

Sean Fitzsimmons

  • Username: seanf
  • Joined: Wed Sep 16, 2009 6:16 am
  • Posts: 78
  • Location: Baltimore, Maryland, USA
  • Offline
  • Profile

Re: Timeout setting of Inline cell Editor inn the ScrollingD

Post Posted: Fri Mar 04, 2011 4:37 am
+0-
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

yamashita

  • Username: ke-yamashita
  • Joined: Sun Jan 30, 2011 10:17 pm
  • Posts: 12
  • Offline
  • Profile

Re: Timeout setting of Inline cell Editor inn the ScrollingD

Post Posted: Sun Mar 06, 2011 4:16 pm
+0-
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.
  [ 8 posts ]
Display posts from previous:  Sort by  
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