QuickFileterFiled

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

QuickFileterFiled

Postby vanitha » Mon May 28, 2012 12:36 am

QuickFilterField is really wonderfull, but there should be some provision to return the Original index of the row after filter had happened, For Example, We have below data in the table


ABC
ADE
AAA
AAG

we have typed AA in filter Filed then the table will display below items

AAA
AAG

When you select the row AAA( if we want to perform some operations on this row)... now we are unable to do so as if we select row AAA by table.getSelectedRow() it will actual returning ABC as ABC is first row of actual table.
vanitha
 
Posts: 8
Joined: Thu May 03, 2012 2:04 am

Re: QuickFileterFiled

Postby JIDE Support » Mon May 28, 2012 8:48 am

The table.getSelectedRow() method is a method on JTable thus is considered a view-level method so it should return a row index as you see (from the view). To get the actual row index, using TableModelWrapperUtils.getActualRowAt(table.getModel(), table.getSelectedRow()) which will do the view to model conversion for you.
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am


Return to Product Suggestions

Who is online

Users browsing this forum: Google [Bot] and 13 guests

cron