Which table/grid components to use?

Forum to discuss the new web client version of Servoy.

Which table/grid components to use?

Postby huber » Fri Feb 05, 2021 12:29 pm

Experimenting with the table component of Servoy Extra Components, I am wondering if the usage of the table is still recommended by Servoy?
One "little" thing is that I stumbled over the sort arrow background which is not transparent but has a fixed color (SVY-10542) which prevents using another table header color (for a good looking UI). As this request (making bg transparent) is quite old, I would like to hear about the above asked recommendation for using which future proofed components. Like should one preferably use Servoy NG Grids?

Thanks for shedding some light on this.

Regards,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 516
Joined: Mon May 14, 2012 11:31 pm

Re: Which table/grid components to use?

Postby mboegem » Mon Feb 08, 2021 3:16 pm

Hi Robert,

as far as I know, the table component in the Servoy Extra Components will still be maintained.
In fact it's the only table component which is responsive (ie. it can grow if you have more rows in it)

Whenever I don't have that requirement I use the Servoy Data Grid.

If you need pivot functionality you can use the Servoy Power Grid.

In case you need to display content from a dataset, you can now transform the dataset in to an In Memory table and use that in the Servoy Data Grid (or Table component from Servoy Extra Components)

Hope this helps
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image

Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
mboegem
 
Posts: 1743
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Which table/grid components to use?

Postby huber » Mon Feb 08, 2021 5:51 pm

Hi Marc

Thanks, I was just wondering because there are quite old issues like the arrow background. Thanks for the additional hints to data grids.

BTW, do you know if it's possible to change the sort arrow in data grid to let it appear as the same triangle (instead of arrow) as in servoyextra table and in "old" table view layout columns? To have a consistent UI, if this forms are mixed.

Best regards,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 516
Joined: Mon May 14, 2012 11:31 pm

Re: Which table/grid components to use?

Postby pitc » Tue Feb 09, 2021 1:06 am

I did a little test on one of my data grids to attempt to change the sort icons.
At https://www.ag-grid.com/documentation/javascript/custom-icons/ there is mention of custom icons using gridOptions- but maybe they are for a different ag-grid than what Servoy currently has.
The property gridOptions is set to:
sortAscending = "UP"
sortDescending="DN"
but this is not allowed.
The error message "gently" hints: " to see all the valid gridOptions properties please check:https://www.ag-grid.com/javascript-grid-properties/ "
In that link there is only "unSortIcon=true' in order to show the unsort icon. This does work in Servoy version 2020.12.1 with Servoy NG Grids 2.6.3 (latest).

Hope that helps..maybe NG2 will improve the situation.
Tom
prospect-saas.com
pitc
 
Posts: 115
Joined: Thu Nov 14, 2019 2:22 pm
Location: Ottawa, Ontario, Canada

Re: Which table/grid components to use?

Postby rieder » Mon Apr 26, 2021 5:22 pm

This is, what I added to the style sheet to display other sort icons:

Code: Select all
.ag-theme-bootstrap .ag-icon-asc:before {
    font-family: "agGridClassic";
    content: "\E92f";
}

.ag-theme-bootstrap .ag-icon-desc:before {
    font-family: "agGridClassic";
    content: "\E92c";
}


Maybe this helps.
Regards
Birgit
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 177
Joined: Thu Jan 26, 2012 5:18 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 1 guest