Loading ...
Sorry, an error occurred while loading the content.

Re: How to get a selected row from datatable

Expand Messages
  • k_and_u
    There are two ways to solve it. You can define a listener for every row on the table or you can do the same they do here:
    Message 1 of 2 , Jul 9, 2007
    • 0 Attachment
      There are two ways to solve it. You can define a listener for every
      row on the table or you can do the same they do here:

      http://developer.yahoo.com/yui/examples/datatable/contextmenu.html

      HTH,

      Kamen

      --- In ydn-javascript@yahoogroups.com, "rajtf" <thatts@...> wrote:
      >
      > I am prototyping an application using YUI and I am using the following
      > code to create a table.
      >
      > var defaultDataTable = new YAHOO.widget.DataTable
      > ("standardselect",myColumnSet,myDataSource,
      > {caption:"Example: Default Selection Mode"});
      >
      > How can I get the selected row on an event. ( I have been able to
      > subscribe to a 'Double click' event which works correctly)
      >
      > But I am not able to find a code that will give me the selected row.
      > Finally I want to delete it.
      >
      > Thanks
      > Raj
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.