PDA

View Full Version : DevExpress.XtraTreeList.TreeList, different editor per cell?


floopyb
02-28-2012, 01:56 AM
So you can add a specific editor type per column with ColumnEdit but how can I add one per per cell?
I have a column of values (think node porperties) and I want a different editor based on the class of the data (colour, integer, boolean) etc.
Is this possible?

denisT
02-28-2012, 11:17 AM
So you can add a specific editor type per column with ColumnEdit but how can I add one per per cell?
I have a column of values (think node porperties) and I want a different editor based on the class of the data (colour, integer, boolean) etc.
Is this possible?

use TreeList.CustomNodeCellEdit Event
http://documentation.devexpress.com/#WindowsForms/DevExpressXtraTreeListTreeList_CustomNodeCellEdittopic

grabjacket
02-28-2012, 06:57 PM
Hey Jordan,

you could take a look at the two latest scripts I've written. I'm taking advantage of some of the features the treelist has to offer, including assigning unique editors per cell. For instance in this script which stores renderpresets in xml-format.
I've set up editors for specific value-types, just as you want to do. Besides that I'm coloring the cells based on some settings.
Renderitis (http://www.klaasnienhuis.nl/WordPress/category/renderitis-programming/)
WhatsMyName (http://www.klaasnienhuis.nl/WordPress/tag/whatsmyname/)
http://www.klaasnienhuis.nl/WordPress/wp-content/uploads/2011/12/Renderitis_2011-12-28_038.png

CGTalk Moderation
02-28-2012, 06:57 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.