Hi! I'm actively using TreeListView, and it's an amazing control. I would like to accomplish something like one of the samples of the web I have this structure: public class Work { public int Id {get;set;} public List<Verifications> Verifications {get;set;} public List<File> Files {get;set;} } public class Verification { //Properties } public class File { //Properties } Right now I can build a tree like this: Projects |--Work1 ||----Verification1 ||----Verification2 |--Work2 ||----Verification1 ||----Verification2...
Hi! I'm activeluy using TreeListView, and it's an amazing control. I would like to accomplish something like one of the samples of the web I have this structure: public class Work { public int Id {get;set;} public List<Verifications> Verifications {get;set;} public List<File> Files {get;set;} } public class Verification { //Properties } public class File { //Properties } Right now I can build a tree like this: Projects |--Work1 ||----Verification1 ||----Verification2 |--Work2 ||----Verification1...
Hi! I'm activeluy using TreeListView, and it's an amazing control. I would like to accomplish something like one of the samples of the web I have this structure: public class Work { public int Id {get;set;} public List<Verifications> Verifications {get;set;} public List<File> Files {get;set;} } public class Verification { //Properties } public class File { //Properties } Right now I can build a tree like this: Projects |--Work1 ||----Verification1 ||----Verification2 |--Work2 ||----Verification1...
HI! I'm using a treelistview. It works flawlesly. I have a two level object hierarchy. Depending on the type of object I asign it an image from a imagelist. This works well. Previously I was using an objectlistview. I had a first column with a white star image. The user would click on it and the star would change to a full yellow star. This also triggered some sql changes so the user added that object to a favourite table. I can't really replicate this with the treelistview. Is it possible to add...
Hi! Sorry to bother @grammarian but, Is there a way to add a text filter to the "excel-like" filter? It would be great to have a way to filter by "Contains..." or "Starts with..." Thank you for this great control!
Thank you Phillip!! That worked flawlessly!! Thank you for your's and code shark help!!
Double post, sorry
Hi! That works! I added a computed property to SubTipo class: [Computed] public string DescriptionAspectName { get => (Equipos as List<EquipoGenerico<EquipoHerramienta>>)[0].Modelo;} It's like a workaround, because this way I have to specify Type of EquipoGenerico. I wonder if there would be a way to write just: renderer.DescriptionAspectName = "Equipos[0].Marca" /*I also tried this and does not work for the same reason: Equipos[0] is not a parameter-less method, property or field of type SubTipo;...
Hi! That works! I added a computed property to SubTipo class: [Computed] public string DescriptionAspectName { get => (Equipos as List<EquipoGenerico<EquipoHerramienta>>)[0].Modelo;} It's like a workaround, because this way I have to specify Type of EquipoGenerico. I wonder if there would be a way to write just: renderer.DescriptionAspectName = "Equipos[0].Marca" /*I also tried this and does not work for the same reason: Equipos[0] is not a parameter-less method, property or field of type SubTipo;...
I think it has nothing to do with my code, because DescriptionAspectName belongs to DescriptionAspectRenderer.cs // Tell the renderer which property holds the text to be used as a description renderer.DescriptionAspectName = "Equipos.Marca"; What I mean is that, how can I set a string to a delegate? When I try to do it (I think this is the way, this is just a sample): renderer.DescriptionAspectName = delegate (object obj) { return "Test"; }; it throws me this error c# cannot convert anonymous method...
Yes, that's mainly the issue, I can't give a string to DescriptionAspectName to access one nested element. I understand your solution, it's similar to other delegates of the ObjectListView, but I can't see how to implement it. Could you explain how to do it, not all the logic, just the basic stucture. The project is pretty pretty big, I would have to isolate the section to share it, it will take me some time. Thank you for your help, I really appreciate it!!
I've been using ObjectListView for some time. There is a sample that I've used that uses a Renderer, named DescribedTaskRenderer, with a OLV with view in Detail mode. This way you can have a two line row for a Title and a SubTitle. This works flawlessy. But right now, I have some convoluted nested object and I have no clue on how to extract the info I need. Let me explain, here ther are the classes: public class SubTipo { public int Id { get; set; } public string Nombre { get; set; } public string...
Hi! On front page, project says is LGPL. But inside source, it states the project...