We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

GridTreeControl selections

Thread ID:

Created:

Updated:

Platform:

Replies:

98566 Mar 9,2011 05:44 AM Jan 2,2014 07:33 AM WPF 3
loading
Tags: GridControl
Jorge Pampin
Asked On March 9, 2011 05:44 AM

Hello,

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!


Manikandan [Syncfusion]
Replied On March 11, 2011 06:02 AM

Hi Jorge,

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.



Murali Chandrasekaran
Replied On August 30, 2012 07:31 PM

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.

 


Saravanan M [Syncfusion]
Replied On January 2, 2014 07:33 AM

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

 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;