DataGrid - Somehow an Achilles' heel? #16235
Replies: 6 comments 19 replies
-
DataGrid and table views in general are a problem in this type of framework, and not just for Avalonia.
So as can be seen this is still an unsolved problem and the whole ecosystem is still searching for a general-purpose solution. This also says nothing about 3rd party DataGrids of which you can find the best implementations. Some 3rd party controls are MVVM friendly and support very complex things in a simple way -- these controls likely took thousands of hours to develop though. Someday Avalonia might attempt a port of WPF's DataGrid. Someday we might have a light-weight TableView or GridView control as well. Edit: Comments now reflect the depreciation of TreeDataGrid. |
Beta Was this translation helpful? Give feedback.
-
Sorry I didn't reply you in my Ursa repo because I was so addicted to my calendar view... |
Beta Was this translation helpful? Give feedback.
-
Filtering and sorting should be in the VM layer imo. A filter in the control itself would heavily rely on reflection which is not perfect for several reasons imo. |
Beta Was this translation helpful? Give feedback.
-
I may be mistaken but there does seem to be a sort of DataGrid that Avalonia do call DataGrid. I am reviewing Avalonia and I did see something of the sort in their documentation. https://docs.avaloniaui.net/docs/reference/controls/datagrid/ I am thinking of porting an app I created for Windows to MacOs so I was looking for something like this since my app does use quite a lot of grids and stuff. Without grids the port would be almost useless as my users would not be able to use it. Now my next problem is finding a way to take that grid to Excel. Don't know when it was added in though... |
Beta Was this translation helpful? Give feedback.
-
Unfortunately TreeDataGrid has steep learning curve but once you got it it is superior to a |
Beta Was this translation helpful? Give feedback.
-
I think that the smart thing to do would be to make controls based on Skia that works with multiple toolkits. There are some graphing controls that are good examples of this. That is what I would do if I were ActivePro. I would make a "host" control for WPF, Avalonia etc and then controls that run inside that host control. Then supporting new framework becomes very easy. Furthermore I agree that ActivePro contains "everything but what I need". Making prettier buttons or something like that means very little to me. Having controls that can display data in flexible ways is what I want. In my opinion Swing is still the higher end of the toolkit scale when it comes to that. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I have been developing with WPF since 2019, but I do not consider myself a master in WPF. I am a background guy and use things like MahApps to make my life easier.
It has also been a while since I started considering (actually, it is already decided now) rewriting the entire UI of my software in Avalonia. The idea of keeping my ViewModels the same and running my application on macOS/Linux/Android Tablets makes me very excited.
Well, just to give you some context, my application is an ERP with something between 200-250 windows. I asked some questions and provided some information/screenshots here: #14188.
I have built some small applications in Avalonia to understand and learn about it, and I had no big problems, but I feel like DataGrid is an Achilles' heel.
Why do I feel like this:
Again, I am not the guy who takes Avalonia and makes big changes; I would use things like Avalonia.Material, Ursa, ActivePro... I want productivity even if I have to pay for a component like ActivePro.Avalonia.
I found everything I wanted for my ERP; even my reports, which are built upon FastReports, have a solution now. But DataGrid does not have (I did not find) solutions, even paid ones.
Things like https://github.com/dotnet/DataGridExtensions are not available. I asked on Ursa about this: irihitech/Ursa.Avalonia#128.
My whole point is: How true is my feeling? Am I not knowing how to search? Is there any better solution for DataGrids (open-source or not)?
Beta Was this translation helpful? Give feedback.
All reactions