View Full Version : XtraTreeList
So I'm trying to setup this control with spinners in one of the columns. I'm using "RepositoryItemSpinEdit" as that spinner and I gather that is supposed to be a value spinner just like in Max. I can't get it to show up as a spinner how ever. I just get an edit field. Also in the example that I'm following that was posted here (http://forums.cgsociety.org/showpost.php?p=6026663&postcount=373) by Mike uses this but shows a comboBox instead of a spinner where it looks like he is putting one.
Is this a bug or is there some thing that I'm missing?
|
|
So I'm trying to setup this control with spinners in one of the columns. I'm using "RepositoryItemSpinEdit" as that spinner and I gather that is supposed to be a value spinner just like in Max. I can't get it to show up as a spinner how ever. I just get an edit field. Also in the example that I'm following that was posted here (http://forums.cgsociety.org/showpost.php?p=6026663&postcount=373) by Mike uses this but shows a comboBox instead of a spinner where it looks like he is putting one.
Is this a bug or is there some thing that I'm missing?
Looks like I got it to work in both Mikes and mine how ever I had to remove the column before the column with the spinner.
Looks like it was just the two comboBox's that are declared at the top that are causing the problem. They are not being used any where and are some how finding their way into the spinners column.
In the event handler the second column was being set to use those dotNetObjects. I'm a dumb ass:S
As I poke further here I have some nice things works the one main thing that I just can't sort out is the simplest of all. How do I get and set the values in the cells? I have tried via the nodes property as well as via the columns and no luck. I can get the strings values that are in the tree but I can't set those values. I have been unable to get and set any values in the second to forth columns that are spinners. What I have found will always return 0 and not the actual value in the cell.
--Returns the string in the first node in the tree but you can't set it using this line.
Xtl.nodes.item[0].item[0]
--The first child of the first item in the tree and the second column
--This doesn't return the correct value or allow you to set it.
Xtl.nodes.item[0].nodes.item[0].item[1]
Any help would be great.
denisT
08-21-2009, 08:04 PM
As I poke further here I have some nice things works the one main thing that I just can't sort out is the simplest of all. How do I get and set the values in the cells? I have tried via the nodes property as well as via the columns and no luck. I can get the strings values that are in the tree but I can't set those values. I have been unable to get and set any values in the second to forth columns that are spinners. What I have found will always return 0 and not the actual value in the cell.
--Returns the string in the first node in the tree but you can't set it using this line.
Xtl.nodes.item[0].item[0]
--The first child of the first item in the tree and the second column
--This doesn't return the correct value or allow you to set it.
Xtl.nodes.item[0].nodes.item[0].item[1]
Any help would be great.
Xtl.nodes.item[0].nodes.item[0].getValue <index>
Xtl.nodes.item[0].nodes.item[0].setValue <index> <val> -- (val can be an object)
Why do I always find this crap after posting:S
Buried deep in the hell of nodes is a setValue method that I had not seen.
Now that is odd, you post is before mine?
denisT
08-21-2009, 08:54 PM
Now that is odd, you post is before mine?
secs before probably... :)
CGTalk Moderation
08-21-2009, 08:54 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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.