Multi select with ultrawin tree in property grid format

Answered (Verified) This post has 1 verified answer | 5 Replies | 2 Followers Thread's RSS feed.

raash1010
Points 395
Replied On: Fri, Mar 11 2011 12:50 PM Reply

Hey!

I have ultrawintree in property grid format. I want to enable multiselct i.e I can select multiple rows at a given time in the tree. I used following :-

 Me.uTree.Override.SelectionType = SelectType.ExtendedAutoDrag
 Me.uTree.SelectionBehavior = SelectionBehavior.ExtendedAcrossCollections
 Me.uTree.HideSelection = False

This does not help me to do multiselect. Please let me know if I am missing anything. Your help is greatly appreciated.

Thank you!

 

 

  • Post Points: 20

Verified Answer

[Infragistics]Hristo
Points 42,361
Infragistics Employee
Answered (Verified) Replied On: Thu, Mar 24 2011 11:03 AM Reply
Verified by raash1010

 Hello, ­­­­­

 

I am just wanted to know if you need any  further assistance on this  issue? Did you test my sample ?

 

Thank you for using Infragistics Components.

Sincerely,
Hristo
Developer Support Engineer
Infragistics, Inc.

  • Post Points: 40

All Replies

[Infragistics]Hristo
Points 42,361
Infragistics Employee
Replied On: Tue, Mar 15 2011 9:08 AM Reply

Hello,

 

In order to allow multiselect of UltraTree control you should set the  following settings of the control:

     this.ultraTree1.BorderStyle = Infragistics.Win.UIElementBorderStyle.None;

            this.ultraTree1.ColumnSettings.AllowCellEdit = Infragistics.Win.UltraWinTree.AllowCellEdit.Full;

            this.ultraTree1.ColumnSettings.TabNavigation = Infragistics.Win.UltraWinTree.TabNavigation.NextCell;

            this.ultraTree1.Dock = System.Windows.Forms.DockStyle.Fill;

            this.ultraTree1.Location = new System.Drawing.Point(0, 31);

             this.ultraTree1.Name = "ultraTree1";

            this.ultraTree1.Override.SelectionType = Infragistics.Win.UltraWinTree.SelectType.Extended;

            this.ultraTree1.SelectionBehavior = Infragistics.Win.UltraWinTree.SelectionBehavior.ExtendedAcrossCollections;

            this.ultraTree1.Size = new System.Drawing.Size(232, 199);

 

If you are set UltraTree.Override.CellClickAction = Infragistics.Win.UltraWinTree.CellClickAction.EditCell, then when user click in the cell tree will enter in edit mode and user wouldn’t be able to select several nodes.

 

Let me know if you have any further questions.

Sincerely,
Hristo
Developer Support Engineer
Infragistics, Inc.

  • Post Points: 20
raash1010
Points 395
Replied On: Tue, Mar 15 2011 8:21 PM Reply

Hi,

Ok . So I think I am trying to do something which is not supported by design seems like. Please correct me if I am wrong.

In the unltrawintree, I have 3 columns. It is property grid type tree. Out of these 3 columns, the first column is checkbox editor type, the second one is property i.e text and read only and third column is value i.e text and read only. So only first column is not read only and user can play with it.

So I am trying to do following:-

1. Enable multiselect on the tree.

2. User selects multiple rows in the tree.

3.He marks one of the row as checked for example in the checkbox column and all other rows in the selection gets marked as checked.

4. Step 3 hold true if he marks one of the rows as unchecked and all other rows in selection will be marked as unchecked.

So I tried using the code you provided but seems like no luck. 

Please let me know what you think.

Thank you

  • Post Points: 35
[Infragistics]Hristo
Points 42,361
Infragistics Employee
Answered (Not Verified) Replied On: Fri, Mar 18 2011 3:46 AM Reply
Suggested by [Infragistics]Hristo

Hello,

 

I have trying to follow your requirements to make UltraTree with 3 columns. First is Boolean column and it is editable, second is string column and it is read only and third is string column and it is editable . If you press “Ctrl” now you are able to select more than one node. If you click on editable column, clicked cells entering in edit mode and customer is able to edit its content. Please run the sample and let me know if this is what you are looking for.

 

I hope this help you.

Sincerely,
Hristo
Developer Support Engineer
Infragistics, Inc.

  • Post Points: 5
[Infragistics]Hristo
Points 42,361
Infragistics Employee
Answered (Verified) Replied On: Thu, Mar 24 2011 11:03 AM Reply
Verified by raash1010

 Hello, ­­­­­

 

I am just wanted to know if you need any  further assistance on this  issue? Did you test my sample ?

 

Thank you for using Infragistics Components.

Sincerely,
Hristo
Developer Support Engineer
Infragistics, Inc.

  • Post Points: 40
raash1010
Points 395
Replied On: Sat, Mar 26 2011 2:29 PM Reply

Hey there!

Thank you very much. It helped exactly as I was looking for! Thanks a ton!

  • Post Points: 5
Page 1 of 1 (6 items) | RSS