Re: Getting name of Column in overrided method onColumnSort of ColumnSortEvent.Handler in GWT2.4

2012-02-09 Thread divStar
Hi, the event-argument you get contains a getColumn()-method, which in turn returns a Column?,?-object. You can use this to find the column the user has clicked. I use a custom Column-class, that itself keeps a name. This way I can cast the column-object into the class I have created, that has a

Re: Getting name of Column in overrided method onColumnSort of ColumnSortEvent.Handler in GWT2.4

2012-02-09 Thread vaibhav jain
thanks for your suggestion i am using like below: ColumnT, String col = (ColumnT, String) event.getColumn(); int index = dataGrid.getColumnIndex(col); //contains the column name list columnList = VO.getColumns(); String columnName

Getting name of Column in overrided method onColumnSort of ColumnSortEvent.Handler in GWT2.4

2012-02-08 Thread vaibhav jain
Hello All, I am implementing ColumnSortEvent.Handler in my class in which i am making a datagrid ,am overriding its onColumnSort method. public void onColumnSort(ColumnSortEvent event) { } here in this method ,how can i find the name of my column who has been clicked.