on 05-16-2007 9:45 AM
Hi,
We have the requirement in tableView when I select a particular row the UI elements has to change for that entire row.
For EX: I have 3 columns, by default the UIelement is textView for all the records in those 3 columns, when I select a particular record the UIelements has to change as InputField, Dropdown, Checkbox and for the non selected records the UIlements is textview.
For this I have used TableCellVariant UI element, I am able to get the solution for the selected record but when I navigate to another record the UIelements are not changing to the default UI element for the previous selected record.
These are the steps I have followed
1) I have created one context node with 3 context attrobutes and binded the node to tableView.
2) I have 3 columns now, I have created one cellvariant for each column and I have created UIelement for each cellvariant according to my requirement.
3) I have assigned the variantkey for the cellvariant.
4) I have created one action method for the table lead selection. When I select a partular row I am setting variantkey value for the selected row.
Without this UIelement is there any alternative solution?.
Hi EP Developer,
interesting name
Set the variantKey to "" (empty string) to change from the cellvariant to the "normal" cell editor.
regards
stefanie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
EP Dev,
Strange that this is not working...
Try the following instead of setting/removing variantkey.
1. Turn your attribute (related to variantkey) into calculated read-only attribute of type string;
2. In generatted getter write:
return element.index() == element.node().getLeadSelection() ? "EditVariantName" : null;
Valery Silaev
SaM Solutions
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.