Jan 28, 2013, 11:50 AM
[CLOSED] How to handle combobox loaded remotely and Empty Value?
Hi,
I'm wonder if there any way to handle situation like this.
In my app I got ComboBox loaded remotely by handler.
I've applied EmptyText and EmptyValue for this comboBox but after this ComboBox is reloaded this empty Text(string) and EmptyValue(int) disapear.
I needed for changing selected value from some to empty(requirements)
So How can I do this?
I've just try to add 1 extra value each reload which contains emptytext and emptyValue inside returned json. Even though sometimes this Value isn't at firstplace from top.
That's how I tryed to do this:
Thanks,
ViDom
I'm wonder if there any way to handle situation like this.
In my app I got ComboBox loaded remotely by handler.
I've applied EmptyText and EmptyValue for this comboBox but after this ComboBox is reloaded this empty Text(string) and EmptyValue(int) disapear.
I needed for changing selected value from some to empty(requirements)
So How can I do this?
I've just try to add 1 extra value each reload which contains emptytext and emptyValue inside returned json. Even though sometimes this Value isn't at firstplace from top.
That's how I tryed to do this:
List<MyComboBoxClass> list = GetItems();
list.Insert(0, new MyComboBoxClass("--empty--",0);
So how would you guys do this?Thanks,
ViDom
Last edited by Daniil; Jan 28, 2013 at 3:42 PM.
Reason: [CLOSED]