Combo MultiSelect - split values on getValue() breaking

  1. #1

    Combo MultiSelect - split values on getValue() breaking

    I am trying to split the values from a multiselect combo - if I use the below, with getRawValue() - works great. If I use .getValue() - I get "Object doesn't support property or method split" - literally, when I make the single change of getRawValue() to getValue() - it throws this error - no other changes, etc.

    var combo = Ext.getCmp('mcOrderSets'), value = combo.getRawValue(), sortedValue = value.split(combo.delimiter).sort().join();
  2. #2
    Hello!

    In this case getValue() returns an array (["2", "5"]) and getRawValue() a string ("Item 2, Item 5")

Similar Threads

  1. Replies: 9
    Last Post: Dec 12, 2012, 5:04 AM
  2. [CLOSED] Add values to Multiselect manually
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 11, 2012, 8:09 AM
  3. Selecting multiple values in Multiselect
    By masudcseku in forum 1.x Help
    Replies: 1
    Last Post: Nov 23, 2011, 7:26 AM
  4. [CLOSED] [1.0] Multiselect combo and no wrap
    By bsnezw in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 21, 2010, 3:58 PM
  5. Multiselect - Get Values and Update Store
    By Tbaseflug in forum 1.x Help
    Replies: 6
    Last Post: Jul 13, 2009, 3:24 PM

Posting Permissions