[CLOSED] Combobox SelectedItem

  1. #1

    [CLOSED] Combobox SelectedItem

    Hi,

    I write my ui in cs file.My question is about how can i press sellected combobox item value on Alert.on Alert box selectednode seems empty.Where am i wrong?I wanna your helps...Sorry for my english

    thanks all..
    My code is :

     string fn = "var selectedNode=this.nationality.SelectedIndex.value; Ext.Msg.alert('Confirm',selectedNode);";
     ComboBox nationality = new ComboBox
                {
                    ID = "nationality",
                    Name = "nationality",
                    FieldLabel = "Lütfen Uyruk Seçiniz",
    
                 
                    Listeners =
                    {
                        Select =
                        {
                           
                            Handler = "function(){" + fn2 + "}"
    
                           
                        }
                    }
                };
                
    ListItem domestic = new ListItem
                {
                    Text = "TC",
                    Value = "TC"
                };
    
                ListItem foreign = new ListItem
               {
                   
                   Text = "Yabancı",
                   Value = "Foreign"
               };
    Last edited by Daniil; Feb 13, 2012 at 2:13 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use
    Select =
    {
        Handler = "alert(record.data[this.valueField]);"
    }
    See also
    http://docs.sencha.com/ext-js/3-4/#!...x-event-select
  3. #3
    Thanks Danill.It works.

Similar Threads

  1. [CLOSED] V2.0 ComboBox SelectedItem
    By Aurelio in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 02, 2012, 1:28 PM
  2. ComboBox and selectedItem.value
    By cwolcott in forum 1.x Help
    Replies: 3
    Last Post: Feb 01, 2012, 7:48 AM
  3. Replies: 4
    Last Post: Nov 30, 2011, 5:25 AM
  4. [CLOSED] [1.0] ComboBox.SelectedItem.Value
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Jul 15, 2011, 11:21 PM
  5. Replies: 4
    Last Post: Feb 02, 2010, 4:08 PM

Tags for this Thread

Posting Permissions