Multicolumngrid Is Inserting an extra subitem and shifting visible data to left.


When I first add a node to the multicolumngrid. I am adding 5 SubItems and the subitems.count = 5.

After, if I try to perform any actions on these nodes they now have 6 subitems.  

When I first add a node, SubItem[0]  is the second column in the grid, the first column has the node.text

When I later edit or check the node the node , SubItem[0]  is hidden and the second column in the grid is now SubItem[1] 

Its hard to explain but please see the attached project sample I create to reproduce. 

This is a real problem for me need it addressed ASAP. 









Attachment: TEST_b028529a.7z

3 Replies

DV Duraimurugan Vedagiri Syncfusion Team April 2, 2020 04:44 PM UTC

Hi Kim,

Thanks for using syncfusion products.

Query 1: When I first add a node, SubItem[0] is the second column in the grid, the first column has the node.text

As per the default behavior of multicolumntreeview the first column will occupy the text of node and following that the subitems are shown. If you want to maintain the node.text in separate column you have add the empty column in your application.

Code Snippet
void FillTree() 
{ 
    multiColumnTreeView1.Columns.Clear(); 
    multiColumnTreeView1.Columns.Add(new TreeColumnAdv() { Width = 125 }); 
    multiColumnTreeView1.Columns.Add(new TreeColumnAdv() { Width = 125, Text = "Column 1" }); 
    multiColumnTreeView1.Columns.Add(new TreeColumnAdv() { Width = 125, Text = "Column 2" }); 
    multiColumnTreeView1.Columns.Add(new TreeColumnAdv() { Width = 125, Text = "Column 3" }); 
    multiColumnTreeView1.Columns.Add(new TreeColumnAdv() { Width = 125, Text = "Column 4" }); 
    multiColumnTreeView1.Columns.Add(new TreeColumnAdv() { Width = 125, Text = "Column 5" }); 
} 

Screen Shot




 
  
Query 2: SubItem[0] is hidden and the second column in the grid is now SubItem[1]

We confirm it as bug and the fix for this issue will be included in our upcoming Vol1 Sp1 release.

You can track the status through the following feedback link:
https://www.syncfusion.com/feedback/13120/multicolumntreeview-sub-items-are-not-properly-visible-while-change-the-text-at

Regards,
Durai
 



KD Kim Dobranski September 25, 2020 10:25 PM UTC

How do I download the update for this? 


VR Vijayalakshmi Roopkumar Syncfusion Team September 28, 2020 07:03 AM UTC

Hi Kim, 
 
Thank you for your update. 
 
The fix for the reported behavior “Multicolumntreeview sub items are not properly visible while change the text at runtime” with MulticolumnTreeView has already been included in our vol 1, 2020 SP1 release v18.1.0.52. You can update to this version using nuget or you can download this version using this link: 
 
 
Please let us know if you have any other concerns on this. 
 
Regards, 
Vijayalakshmi VR 


Loader.
Up arrow icon