on 04-18-2009 11:31 AM
Hi all,
In my Project I have an UI Table in which it is having 5 rows in that i have a column having Dropdown by keys and it will hold 5 possible values (Ex:Coverage type1,coverage type2.......coverage type5) and in which we will select two rows.
wenever we are pressing combine Button (Action) those two values will combine to geather and should come in one row i.e (After Pressing combine Coverage type1 & Coverage type2,Cverage type3.........coverage type5 in one Drop Down in one row).
iam able to do this the problem i have to solve is When ever iam combing two rows the combined two rows are coming at the last row but my wish is to get is:
Ex: If i Combine 1st row and 2 row those combined row should come at first.
if i Combine 2nd row and 1st row those combined row should come at Second.
if i combine 3rd row and 4th row those combined row should come at third.
like this it should hapeen so any one help me out in solving this issue.
Ha Mahesh,
Option 1: After removing your old rows (which I guess you do) and adding your new row, you could do a sort
//You need to create a Comprator yourself implementing a Comparator Interface.
Comparator cmp = new MySorter();
wdContext.getNodeBlahBlah.sortElements(cmp)
Option 2: After removing your old rows you can add your row and at the position you like.
int index = 2;
IWDNodeElement nodeElement = wdContext.createElement();
wdContext.getNodeBlahBlah.addElement(index, nodeElement);
Something like that ...
Jeschael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.