Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3762

Xojo2024R2: WebListBox with DataSource using Postgres Sorting issue

$
0
0

I see that WebListBox using DataSource in the example supplied with Xojo is capable of sorting by simply clicking on column heading. That is what I expect to see. However, I don’t see it happening in my web app. I use ColumnData to setup columns using the code:

col = New WebListboxColumnData
col.DatabaseColumnName = "name" // the name of the field in your database or data source
col.Heading = "Name" // the name that appears above the column
col.Sortable = True // Whether or not the column is sortable
col.SortDirection = Weblistbox.SortDirections.Ascending // The default sort direction for the column
col.Width = "200"
cols.Add(col)

The column “Name” is supposed to be sortable, I expect the list to sort when I click on “Name” heading. However, nothing is happening except of the little arrow change Up/Down on the column heading. I have checked the settings of the WebListBox as well, it is enabled.

According to latest suggestions I only have modified ColumnData, RowCount and RowData methods. I don’t have the SortedPrimaryKeys and UnsortedPrimaryKeys methods anymore.

What else might be happening there?

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3762

Trending Articles