1 Reply Latest reply on Jun 22, 2007 10:55 AM by ishabalov

    Keeping track of dataTable rows when using dataScroller

    stuartm1971

      Is there a convenient way of identifying which row you've clicked on, using onRowClick, if you're also within the pages oaf a datascroller.

      If you have 5 rows per page onRowclick and rowIndex will always return 0-4 no matter which page you're on. Any suggestions?

      rowKeyVar will keep track but I need something client side.

        • 1. Re: Keeping track of dataTable rows when using dataScroller

          You need some way to have a "subset" of data model on a client. Your columns is such "subset", and you are lucky if you have (for example) row key displayed in some column. If not, that you may put some "hidden" span in some column with key information. Key may be anything that you can use to identify row. After that you my create JS code that will extract key information for selected row from that hidden span in one of the columns.