[CLOSED] multicombo clearValue not unchecking items

  1. #1

    [CLOSED] multicombo clearValue not unchecking items

    I have a multicombo box and need to clear the selected values.
    all these methods clear the selected values but does not uncheck them in the dropdown list

    Html.X().MultiCombo().ID("cmbBStream1").Width(90).Items( new ListItem("All", 0),new ListItem("One", 1), new ListItem("Two", 2), new ListItem("Three", 3))
                                    .Plugins(Html.X().ClearButton().Listeners(l => l.Clear.Handler = @"this.clearValue();"))                       
                                 ,
                                 Html.X().MultiCombo().ID("cmbBStream2").Width(90).Items( new ListItem("All", 0),new ListItem("One", 1), new ListItem("Two", 2), new ListItem("Three", 3))
                                    .Plugins(Html.X().ClearButton().Listeners(l => l.Clear.Handler = @"this.reset();"))                       
                                 ,
                                Html.X().MultiCombo().ID("cmbBStream3").Width(90).Items( new ListItem("All", 0),new ListItem("One", 1), new ListItem("Two", 2), new ListItem("Three", 3))
                                    .Plugins(Html.X().ClearButton())
    Reading the release notes I believe this is fixed
    ************************************************** ************************
    * Version 2.3.0 CHANGELOG *
    ************************************************** ************************
    Release Date : 2013-10-11
    Current Version : 2.3.0
    Previous Version : 2.2.0
    [r5360] clearValue method doesn't reset checkboxed in MultiCombo picker

    but my version is Product version 2.4.0.29010 12/10/2013

    so...what am I doing wrong? Thanks! Cyndi Pruett
    Last edited by Daniil; Jul 14, 2014 at 5:53 PM. Reason: [CLOSED]
  2. #2
    Hi @cynsystems,

    A JavaScript error occurs there. You should see that error in a browser.

    An error occurs, because "this" doesn't have the clearValue and reset methods.

    The "this" reference is a Button instance, not a MultiCombo one.

    Please use:
    this.field.clearValue();
    This should also work:
    this.field.reset();
    It is up to you to decide you need a clearValue call or a reset one.
  3. #3
    Thanks!
    That did the trick...just another example of "how to hold your mouth"
    Cyndi

Similar Threads

  1. [CLOSED] Multicombo bug ? Unchecking items
    By CarWise in forum 2.x Legacy Premium Help
    Replies: 15
    Last Post: Sep 18, 2013, 1:11 PM
  2. [CLOSED] MultiCombo Checkboxes not unchecking
    By FVNoel in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 07, 2013, 12:08 AM
  3. How to get the changed items in the MultiCombo.
    By ascsolutions in forum 1.x Help
    Replies: 0
    Last Post: Sep 05, 2012, 3:05 PM
  4. [CLOSED] Multicombo Items
    By FAS in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 13, 2012, 7:09 PM
  5. [CLOSED] Multicombo with a lot of items
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 20, 2011, 1:32 PM

Tags for this Thread

Posting Permissions