Hello,
when setting the InitialValue of the UltraCombo with SetInitialValue() then the Property "Value" is null.
This is not so, when setting the Value Property without SetInitialValue().
When I set the Value Property after calling SetInitialValue then the Value Property is null too.
What am I doing wrong?
Best Regards,Patrick
Hi Patrick,
It's hard to say what's wrong, since I can't see the code, and there's very little information here about what you are doing and when you are doing it.
When are you calling SetInitialValue and when are you checking the Value property? According to the documentation for SetInitialvalue, the Value will not be set to anything until after the first time the user drops down the list.
When the Value property will not be set to anything until after the first time the user drops down the list, where can I read out the current value of the combo?
Thats the only problem I have...
Regards,Patrick
I'm not sure I am following you. If the value won't be set until the first time the combo drops down, reading out the value before that happens is meaningless.So you should avoid that.If you are looking for the event to tell you when the control drops down the first time, there are Before/AfterDropDown events, I think.
Maybe I'm just not following what you are trying to do or why you are using SetInitialValue.
Pedde said:Is it really that way that I have to chack the value property and if this is null I have to know the value I set with SetInitialValue?
I'd have to see a sample or test this out to be sure, but from what you are describing, it sounds like the answer is yes, you will have to check for null so you know whether the user set the value or not.
By the way... everything you posted in this last reply is using the term "UltraDropDown". But UltraDropDown is not a standalone control, nor does it even have a SetInitialValue method. So I assume that's just a mistake and you mean to say UltraCombo.
Anyway, if checking for null is a problem, why not simply populate the list of the UltraCombo and set it the Value on it?
Hi again,
and thanks for your answer.
I want to initialize a GUI with an UltraDropdown and this DropDown I want to have an initial value (with SetInitialValue). Now the user can fill out the form and can (but doesn't have to, because it displays something) select a value from the DropDown.After closing the form I want to read out all the information the user gave in the form (also the selected value of the DropDown).
If the user hasn't selected a value in the DropDown the value property of the DropDown is null.Now my question is how is the rigth way to read out the selected value of the DropDown.
Is it really that way that I have to chack the value property and if this is null I have to know the value I set with SetInitialValue? I thought it would be better to get the value set with SetInitialValue when the user hasn't drop down the Combo.
Please give me the preferred way to read out the data.
Regards,
Patrick