Results 1 to 2 of 2

Thread: How to clear Ext.view.MultiSelector selection programmatically?

  1. #1
    Sencha Premium User
    Join Date
    Oct 2017
    Posts
    7
    Answers
    1

    Default How to clear Ext.view.MultiSelector selection programmatically?

    So the result is that the defined store becomes empty and no values are visually selected.

    I tried clearing the defined store with .removeAll(), but this does not deselect the MultiSelector values.

  2. #2
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    321
    Answers
    5

    Default

    Hello,

    I'm facing this need also.
    After searching, i found this :
    https://fiddle.sencha.com/#view/editor&fiddle/2cpu (for Ext 5.1.3)
    https://www.sencha.com/forum/showthr...-to-select-all (for Ext 6)

    Maybe you need to create the multiselector-search view first. If no, you will have some error message if you want to access it.
    See these lines of code in https://fiddle.sencha.com/#view/editor&fiddle/2cpu :

    Code:
    var plus = form.down('multiselector').tools[0];
    //Fire click event of plus button for creating search view
    plus.el.dom.click();
    //Hide the multiselector-search
    form.down('multiselector-search').hide();

Similar Threads

  1. Replies: 3
    Last Post: 20 Nov 2017, 5:18 AM
  2. [OPEN] MultiSelector collapsed view throws error
    By senthurpandian in forum Ext JS 6.x Bugs
    Replies: 2
    Last Post: 25 May 2016, 12:53 PM
  3. [OPEN] MultiSelector - No binding possible for MultiSelector-search
    By Psychokrameur in forum Ext 5: Bugs
    Replies: 6
    Last Post: 17 Apr 2016, 7:27 PM
  4. Replies: 5
    Last Post: 8 Jan 2016, 2:17 AM
  5. Replies: 8
    Last Post: 25 Apr 2013, 4:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •