From: Satyam <satyam@...>
To: ydn-javascript@yahoogroups.com
Sent: Wed, December 16, 2009 10:04:26 PM
Subject: Re: [ydn-javascript] Inline cell editor position
The editorShowEvent will fire after the editor is shown and it provides
you a reference to the cell editor.
http://developer. yahoo.com/ yui/docs/ YAHOO.widget. DataTable. html#event_ editorShowEvent
You would then need to find out if the editor is the one that
corresponds to the column you want:
http://developer. yahoo.com/ yui/docs/ YAHOO.widget. DataTable. html#event_ editorShowEvent
and if so, adjust the height of the container:
http://developer. yahoo.com/ yui/docs/ YAHOO.widget. BaseCellEditor. html#method_ getContainerEl
to that of the cell:
http://developer. yahoo.com/ yui/docs/ YAHOO.widget. BaseCellEditor. html#method_ getTdEl
You can also adjust the size of the input box:
http://developer. yahoo.com/ yui/docs/ YAHOO.widget. TextboxCellEdito r.html#property_ textbox
or, if you are feeling courageous, redefine method move to do it all.
http://developer. yahoo.com/ yui/docs/ YAHOO.widget. TextboxCellEdito r.html#method_ move
Satyam
vino_gallantguy escribió:
> Hi ,
>
> I have a datatable with textbox cell editor. Data in the cell sometimes spans over multiple lines, and when i click on it the textbox cell editor pops up right at the top of the cell,which looks real odd.
>
> I'm trying to figure out a way to make the editor pop up right at the center of the cell. Can anyone suggest how this can be done ?
>
> I tried padding, but that will not work as the size of my cell varies dynamically based on the data.
>
> Please suggest.
>
>
> Regs,
> Vino
>
>
>
>
>
>
> ------------ --------- --------- ------
>
> Yahoo! Groups Links
>
>
>
> ------------ --------- --------- --------- --------- --------- -
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.716 / Virus Database: 270.14.109/2567 - Release Date: 12/15/09 20:58:00
>
>