2 Replies Latest reply on Jan 28, 2014 6:32 AM by dmat2013

    ExtendedDataTable select first row

    dmat2013

      Hi There,

       

      i am using: 4.3.4.Final with build in filter functionality.

       

      I try to implement a web ui which can be used without the mouse.

      For the datatable i try to achive that after a filter was processed, the first row in in the table is selected (with selectionListener fired) and gets the focus.

       

      Somebody any idea how to implement that?

       

      Thanks a lot

      dm

        • 1. Re: ExtendedDataTable select first row
          bleathem

          The easiest way to do that would probably be using client-side javascript.  Try listening for the "rich:ready" event of the EDT that it will fire after it's been ajax-rendered.

          • 2. Re: ExtendedDataTable select first row
            dmat2013

            The JavaScript API from datatable to select a row doesn't worked for me.

            I now implement custome filter fields / sorting fields (still with build in filter/sort), to have more control over the user actions and not use the default selection listeners for the datatable (instead i use a custome approach with a link / button in each row, to react on inputs and selections). A little overhead maybe, but i don't see any other chance so far.