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

Re: YUI-Datatable: Automatically select a row after loading

Expand Messages
  • Lucas Smith
    ... http://yuiblog.com/sandbox/yui/v260/examples/datatable/select_on_render.html
    Message 1 of 7 , Oct 10, 2008
    View Source
    • 0 Attachment
      --- In ydn-javascript@yahoogroups.com, "berli.michael"
      <berli.michael@...> wrote:
      >
      > > subscribe to the renderEvent (and possibly initEvent) with a method
      > > that loops through this.getRecordSet().records, checking for the
      > > target record. Each item in the loop will be a Record instance, so
      > > rec.getData('Field2'). When you've found your rec, break the loop and
      > > call myDataTable.selectRow(the_found_rec)
      >
      > Could you send me an example of this solution? I tried to find sth. on
      > yui-documentation, without success.
      >
      > Thanks
      >

      http://yuiblog.com/sandbox/yui/v260/examples/datatable/select_on_render.html
    Your message has been successfully submitted and would be delivered to recipients shortly.