PDA

View Full Version : [OPEN] [#1785] Grouping in the GridPanel and Icon Summary (Material)



lu7jm
Jun 18, 2020, 7:00 PM
I have 2 questions:

1) Could you show an example to apply grouping in the <ext-GridPanel />?

2) Try using the icons on different controls and they are not displayed, could you show an example?

Thanks, for your help.

fabricio.murta
Jun 19, 2020, 7:18 PM
Hello @lu7jm!

For your question (1), I can't be sure about what to answer unless you are more specific in which kind of grouping are you talking about. Which of these Ext.NET 5 examples most closely relates to the grouping feature you want on your grid?

- GridPanel > Commands > Group_Command (https://examples5.ext.net/#/GridPanel/Commands/Group_Command/)
- GridPanel > Miscellaneous > Grouping (https://examples5.ext.net/#/GridPanel/Miscellaneous/Grouping/)
- GridPanel > Plugins > GroupingSummary (https://examples5.ext.net/#/GridPanel/Plugins/GroupingSummary/)
- GridPanel > Miscellaneous > ColumnHeaderGroup (https://examples5.ext.net/#/GridPanel/Miscellaneous/ColumnHeaderGroup/)

Depending on which one you need it may still not be supported in Ext.NET 7; but the goal is to have them all working soon. If you point the concept you are looking at and we notice it still not work, we can "bump" the fix for it to the earliest.

About question (2) would you mind asking it in a different forum thread? A lot of questions in the same thread makes it harder to find later on when other people have the same question.

Looking forward to your follow up!

lu7jm
Jun 19, 2020, 11:55 PM
Could you show an example for the second option?

GridPanel> Miscellaneous> Grouping

Could you indicate an alternative solution for the Ext.Net version 7.0 preview4?

fabricio.murta
Jun 20, 2020, 2:47 AM
Hello again, @lu7jm!

This one is a no-go right now, for the events related to grouping are not currently wired up to the grid panel (or its view) list of supported listeners (or direct events).

So although we have implemented support for specifying the features block in the latest iteration of to-be-released Ext.NET 7 preview4, without the ability to handle the feature's events it is pretty much unusable.

If you want to try how far you can go with that, to the grid panel you'd need to add the following block:



<features>
<ext-groupingGridFeature />
</features>


To the grid's store, you have to tell which field should be grouped:



<ext-store groupField="Light" />


This should work in the latest Ext.NET 7.0.0-preview4 build -- not in publicly released 7.0.0-preview3; and it also should not work in any partial 7.0.0-preview4 package built before today, Jun 19th, 2020. If you want to give the above a try, you may request a copy of the latest build of Ext.NET 7 at support@ext.net.

I will not go as far as provide a running sample over the sample you pointed as it relies in grouping related events, so it is not currently possible to reproduce the example in Ext.NET 7. But grouping is now possible to be enabled; just the events are missing.

We have logged this missing bit under issue #1785 on GitHub (https://github.com/extnet/Ext.NET/issues/1785) and will post an update here as soon as the issue gets fixed.

Hope this helps!

lu7jm
Jun 23, 2020, 4:06 PM
Dear Fabrizio,

I updated the latest built version on 06-19-2020 but not work.

Could you suggest any other alternative?

Thanks, for your help.

fabricio.murta
Jun 23, 2020, 7:21 PM
Hello @lu7jm!

I'm afraid there's no workaround for the time being. We are still in early iterations of the development, once the project reaches closer to be done, there will be means to make virtually any scenario come true via custom settings and/or extensions; but at the moment support for this simply does not exist.

Good news though is that odds are that this fix will be implemented still within the preview4, if it proves feasible for implementation; so watch out as we may be fixing this at any moment!

Hope this helps!

lu7jm
Jun 24, 2020, 10:43 PM
Thank you very much!!