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,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
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