[CLOSED] How to reset a multi combo.

  1. #1

    [CLOSED] How to reset a multi combo.

    Hi,

    I have a multi combo like below:

      <ext:MultiCombo ID="mlcmbWaterlineFunded" runat="server" LabelAlign="Left"
                                                                                                DisplayField="Name"
                                                                                                Resizable="false" Width="150">
                                                                                                <Items>
                                                                                                    <ext:ListItem Text="Above" Value="1" />
                                                                                                    <ext:ListItem Text="Below" Value="2" />
                                                                                                    <ext:ListItem Text="Closed" Value="3" />
                                                                                                </Items>
                                                                                                <SelectedItems>
                                                                                                    <ext:ListItem Text="Above" Value="1" />
                                                                                                </SelectedItems>                                                                                                                                                                                     
                                                                                            </ext:MultiCombo>
    I have a reset button, on click of which I want the multi combo to be reset to value =1. How do I achieve that.

    I tried all the below codes with no luck:

                mlcmbWaterlineFunded.ResetOriginalValue();
    
                mlcmbWaterlineFunded.Reset();
    
                mlcmbWaterlineFunded.Clear();
    
                mlcmbWaterlineFunded.ClearValue();
    
                mlcmbWaterlineFunded.SelectedItem.Value = "1";
                mlcmbWaterlineFunded.UpdateSelectedItems();
    Last edited by Daniil; Sep 04, 2015 at 5:10 PM. Reason: [CLOSED]
  2. #2
    Hi @arjunrvasisht,

    This appears to be working for me.
    mlcmbWaterlineFunded.Reset();
    Please clarify what Ext.NET version you are using. Also a full test case is appreciated.

Similar Threads

  1. [OPEN] [#116] Problem to reset a combo
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 04, 2013, 12:48 PM
  2. search controle in multi combo box
    By chakradhar in forum 2.x Help
    Replies: 0
    Last Post: Oct 26, 2012, 12:07 PM
  3. Multi combo first time select - problem
    By ssenthil21 in forum 1.x Help
    Replies: 1
    Last Post: Sep 21, 2011, 8:55 AM
  4. [CLOSED] Using values from multi column combo box
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 19, 2010, 11:44 AM
  5. multi combo
    By skrishnasamy in forum 1.x Help
    Replies: 0
    Last Post: Aug 13, 2010, 9:51 AM

Tags for this Thread

Posting Permissions