on 07-17-2005 6:58 AM
Hello All,
Can someone advise on how I am able to display a table but with no row selected on initial display ? Currently, the table is being displayed with the first entry selected by default (The orange box is selected). Thank you very much.
from
Kwok Wei
Hi Bharat,
ClearSelection will clears the Node's multiple selection and does not change the lead selection.
I don't think it will work if you change the selection also !!!
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anil,
I remember going through this particular class which has these functions.
It said clear selection sets the value to -1. It should be available in the help docs also .
And that node selection property applies for both clear selection and set as -1 ..(as they both are similar .. and the node selection is the one which decides the selection possibility and not the table ...)
Regards
Bharathwaj
Javadoc for IWDNode says:
public void clearSelection()
Clears the Node's multiple selection; does not change the lead selection.
public void setLeadSelection(int index)
Sets the lead selection to the given index. It may be called with NO_SELECTION to reset (clear) the lead selection.
Parameters:
index - the index of the element
Throws:
ContextException - if caller tries to reset the selection, but selection is mandatory
IndexOutOfBoundsException - if the given index is not within the element list
See Also:
getLeadSelection()
Armin
If the table selection mode is set to "automatic", the context node selection determines the table selection.
To get an unselected table, you need context node selection cardinality <b>0</b>:N.
To avoid initializing the lead selection of the context node, set the property "initializeLeadSelection" to false (in the context editor).
Armin
Hi,
Change the table "SelectionMode" property to "None" and try !!
Another way is
1. Set the "SelectionMode" to Auto
2. In the init set the leadSelection to -1
Ex :wdContext.Node<<NodeName>>.setLeadSelection(-1);
Regards, Anilkumar
Message was edited by: Anilkumar Vippagunta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.