http://developer.yahoo.com/yui/docs/YAHOO.widget.DataTable.html#method_reorderCo\
lumn
For widths you might have to play with the styles of the HTML elements.
Since the elements of the same column have a className of
yui-dt-col-XXXX where XXXX is the column key, it is easy to handle via
Dom.getElementsByClassName using the optional fourth argument, the
function to be executed on each element.
Satyam
go94022 wrote:
> Is there an API to DataTable that allows you to resize and reorder
> columns in-place?
>
> Or more broadly, can everything you can do with drag-and-drop be
> exposed programmatically?
>
> If there isn't an API today -- could it be added in a future release?
> I wouldn't think so, but are there design/architecture limitations
> that would prevent this?
>
> BTW, this is somewhat related to:
> http://tech.groups.yahoo.com/group/ydn-javascript/message/43126
>
> If we have an open API, it's possible we could do this
> programmatically via JS.
>
> Thanks, Glen.
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.176 / Virus Database: 270.10.3/1879 - Release Date: 06/01/2009
17:16
>
>