on 01-21-2014 6:28 PM
Hi,
The first row in the table getting selected by default in wd java.
I want to have no row selected by default.
Kindly help.
Regards
Gaurav
Hi,
Set "Initialize Lead selection" to false of node property.
Your problem will be solved,
Thanks
Div
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Set LeadSelection is false. This will ensure that no selection of row is done in the table.
The property is on the context node - initializeLeadSelection = false(default is true).
Try it. It should work.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gaurav,
create one test node (collection cardinality 0..n, selection cardinality 0...n)
write some code in doinit method
for(int i=0;i<10;i++){
wdContext.nodeTest().setLeadSelection(-1);
IPrivateGrnwsp_CompView.ITestElement ele = wdContext.nodeTest().createTestElement();
ele.setData("select book "+i);
ele.setText("edit book "+i);
wdContext.nodeTest().addElement(ele);
}
let me know if you have any issue, this is a sample for your reference
Thanks & Regards
Satyam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is based on the selection cardinality of the node. If the first is being selected by default, that means the cardinality of your node could have been set to 1:n.
Make sure that's changed to 0:n. So that there could be a table with no records selected by default.
Hope this helps.
-Balajii
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if I remember correctly, there is a leadSelection() property on the node context..try not to set it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.