NTreeList column reorder event


Author
Message
Craig Swearingen
Craig Swearingen
Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)
Group: Forum Members
Posts: 99, Visits: 654
I've set EnableColumnReorder to true in my NTreeList.  Been looking (ColumnNotify, HeaderNotify, and HeaderItemDragAction) but I can't find an event that gets fired when the user reorders the columns with the mouse.  What's the recommended way to know that the user has done this and the columns have changed order?  On a grid there is a ColumnDisplayIndexChanged event.  What's the way to know this in an NTreeList? 
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
You can attach to NTreeList.ItemBeginDrag, NTreeList.ItemDrag or NTreeList.ItemDragComplete for the each stage of drag and drop process.
In the event handler you need to check whether the type of NLightUIItemDragDropEventArgs.Item is NTreeListHeaderItem or it is concrete header item:

void nTreeList1_ItemDrag(object sender, NLightUIItemDragDropEventArgs e)
{
   if (e.Item is NTreeListHeaderItem)
   {
   
   }
}

Best Regards,
Nevron Support Team


Craig Swearingen
Craig Swearingen
Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)
Group: Forum Members
Posts: 99, Visits: 654
That works perfectly.  Thanks very much.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search