Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7092477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:19:06+00:00 2026-05-28T08:19:06+00:00

I have a Gwt celltable. Clicking on the headers sorts the columns properly. But

  • 0

I have a Gwt celltable. Clicking on the headers sorts the columns properly.
But on page load the columns are not sorted by default.
I want to make the right most column to be sorted when the page loads.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:19:07+00:00Added an answer on May 28, 2026 at 8:19 am

    You can use the getColumnSortList() and push the column you want to sort by, as such:

    dataGrid.getColumnSortList().push(columnToSortBy);
    

    The table will be sorted by the given column in ascending order.

    Calling this method twice, will trigger a check to tests if the given column already pushed to the list, and if so it will gets sorted in descending order, so to get the table sorted by the column in descending order use:

    dataGrid.getColumnSortList().push(columnToSortBy);
    dataGrid.getColumnSortList().push(columnToSortBy);
    

    Behind the scene, The column is pushed to an inner list in the table called ColumnSortList to position 0. The same list is updated on each column header click.

    Make sure you call this method after you initialized the column.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using GWT 2.4. I have a com.google.gwt.user.cellview.client.CellTable widget, but I'm having trouble figuring
I have several GWT Maps API JavaScriptObjects (LatLng, Polyline) which I want to send
I have a celltable in GWT which have checkboxes, to select multiple checkboxes i
i have a celltable in GWT, I can change color of a specific column
I have a GWT application and wanna to test load and functionality using a
I have a CellTable created in GWT that allows users to update/delete records in
I have GWT application and I want to secure it using spring security. I
I have a GWT CellTable<MyType> . This table have rows which should display a
I am not being able to import com.google.gwt.view.client.ListViewAdapter;. I have GWT 2.1 and it
I have a gwt-ext EditorGridPanel, by clicking onto a cell, you can edit its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.