on 10-20-2010 12:26 PM
Hi All,
I created a table with three columns - Select(Checkbox), EmpID(TextView), Status(TextView).
The data for EmpId column and Status column is coming from a webservice. While i created a node with a boolean attribute and bound to the "Checked" property of the Select column editor.
I created a method RowSelect and assigned it to the onToggleEvent of the check box.
I need to have a functionality where the user should be able to select some Emp ids through the checkbox, and on the click of Activate button, the ids and the status of the selected rows should be passed to webservice as input.
But when i deploy the code, the check boxes in the table are disabled.
Can anyone tell me where iam doing wrong?
Regards,
Maggie
Hello Maggie,
Where the values are coming for the table? If the node is having element then definitely it will enable the check box. Also you can get the selected rows by looping it and checking whether it is true.
Regards
Nizamudeen SM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This can happen only if there is no element in table or the read only property of the checkbox editor is true.
so just check once.....
Regards
Ravindra Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the Init() method of the view editor, initialize the boolean attribute to false and try once:
for(int i=0; i < tablesize; i++)
{
wdContext().node<nodename>.get<nodename>ElementAt(i).set<booleanvalue>(false);
}
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.