Profile Picture

NTreeList column reorder event

Posted By Craig Swearingen 12 Years Ago
Author
Message
Craig Swearingen
Posted 12 Years Ago
View Quick Profile
Supreme Being

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
Last Active: 7 Years Ago
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
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 1 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009
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
Posted 12 Years Ago
View Quick Profile
Supreme Being

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
Last Active: 7 Years Ago
Posts: 99, Visits: 654
That works perfectly.  Thanks very much.



Similar Topics


Reading This Topic