GridTreeControl selections
I need that my GridTreeControl only allows select a row, and that you can edit cell without unselect entire row.
I can't do it, I don't find the simple selection option.
Thanks!
Thanks for using Syncfusion Products.
you can achieve your requirement by setting Selection properties of GridTreeControl as follows.
Code Snipped[C#]
this.treeGrid.EnableSelections = true;
this.treeGrid.EnableNodeSelection = true;
this.treeGrid.EnableHotRowMarker = true;
this.treeGrid.ReadOnly = false;
We have prepared a sample based on this and you can find the sample under the following location:
Sample :
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=CS-279216835.zip
Please let us know if this helps.
Regards,
Manikandan J R.
We use Syncfusion GridTreeControl 10.2. We leverage the grouping by marking the child and implementing the request tree items handler.
Every time we change the underlying collection, we dont want to refresh the grid such that we lose the collapse/expand state of all nodes. We want to refresh the grid with new data but retain its current state as it is - some nodes expanded, some nodes collapsed.
I call this after the binding refreshes
dataGrid.InternalGrid.PopulateGridNodes(true);
but only after I do mouseover the grid reflects the right parent/child with + sign.
How to achieve our use case ? Is there different method to call after underlynig data changes -without disturbing the expand/collapse state.
Hi Murali,
Sorry for delay causes,
We have analyzed your query. If you want to updated the underlying
collection without losing the collapse/expand state in all nodes, you need to
call the invalidatecell method.
Please refer the below codesnippet.
Codesnippet[C#]:
|
this.treeGrid.InternalGrid.InvalidateCells(); |
We have prepared a sample based on this and you can download it from below location,
Sample Location: Treegridsample.zip
Please let us know if this solotion helps you,
Regards,
Saravanan.M
- 3 Replies
- 4 Participants
-
JP Jorge Pampin
- Mar 9, 2011 10:44 AM UTC
- Jan 2, 2014 12:33 PM UTC