Skip to Content
author's profile photo Former Member
Former Member

ItemListBox deselection problem

Hi All,

I have used an ItemListBox for multiple selection.

1. For that I created a ValueNode (say, Countries) with following properties changed:

selection 0..n

initializeLeadSelection false

remaining properties are default.

Now created a Value Attribute countryName under Countries of type string.

2. Created an ItemListBox with properties I have changed:

dataSource: Countries

multipleSelection: true

text: countryName

3. Created a button to check selected items.

My problem is when I have select none(First Time) or one or more item and click on Check button result is right.

But when deselect all item after selecting one or more and click on Check button then last deselected item is showing as it was selected.

Is I am missing somthing or its a bug?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 11:33 AM

    It's a bug in your version. Please open an OSS message (BC-WD-CLT-HTML).

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 07:55 AM

    Hi,

    Well you can clear the selection of the node using:

    wdContext.nodeCountries().clearSelection();

    This is the way to deselect.

    Hope it will solve your problem.

    thanks & regards,

    Manoj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 07:59 AM

    Hi,

    You can try with the following code

    wdContext.node<YourNode>().setLeadSelection(-1);

    wdContext.node<YourNode>().clearSelection();

    Regards

    Ayyapparaj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.