on 06-15-2006 7:39 AM
Hi guys,
I found the DropDownByKey will sort the order or items by its key, but I don't want such an order. How to do this?
The items are loaded to the DropDownByKey by:
IModifiableSimpleValueSet valueSet = matGrpType.getSVServices().getModifiableSimpleValueSet();
valueSet.put(key1, value1);
valueSet.put(key2, value2);...
How the set the order of the items by the order which is added by the previous way?
Thank you very much!
Xiaoming Yang
Hi,
I dint find that the item is not sorted.
I tried the code and seen the output,its coming the way i have inserted.
ISimpleTypeModifiable myType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("ddkval");
IModifiableSimpleValueSet val=myType.getSVServices().getModifiableSimpleValueSet();
val.put("3","ddd");
val.put("1","aaa");
val.put("5","bbb");
val.put("2","ccc");
Regards,
Vijayakhanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi yang,
To avoid getting items sorted, you can always set the desired values by varying the 'key' order.
Srinivasan T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.