ComboBox - Set Value not working

  1. #1

    ComboBox - Set Value not working

    I am trying to set the value in a CB as such:



    <%= cbParentLabel.ClientID %>.setValue(record.data.contractProFormaParentID) ;

    I can see the CB does have the value in question but when the CB loads - it has the ID listed instead of the textvalue selected... So almost looks like it cannot find the matching value (which I can see there)...?
  2. #2

    RE: ComboBox - Set Value not working

    Hi,

    You have to set combo value after store loading only (for example, in 'load' event of a store)
  3. #3

    RE: ComboBox - Set Value not working

    Ok - so am setting a hidden value to what I need - and this in the store - now no selection is being made - but the alert at the end is popping up the right value...




    <Load Handler="#{cbParentLabel}.setValue(this.getAt(0).d ata[#{proFormaID}.getValue()]);alert(#{proFormaID}.getValue());" />
  4. #4

    RE: ComboBox - Set Value not working

    I an not auto binding the store but am calling it in a reload - with a StoreRefreshDataEventArgs - and even when I set it like below - does not set the selecteditem

    
    
    this.storeParentLabels.DataSource = dt.DefaultView;
    
    
    this.storeParentLabels.DataBind();
    
    
    cbParentLabel.SelectedItem.Value = "30692";

Similar Threads

  1. [CLOSED] ComboBox not working in IE8?
    By wagger in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 27, 2011, 11:11 AM
  2. [CLOSED] Combobox Search not working
    By Suntico in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 18, 2011, 5:23 AM
  3. ext.net control not working in IE9(combobox)
    By eldhose in forum 1.x Help
    Replies: 1
    Last Post: Apr 28, 2011, 5:45 PM
  4. [CLOSED] RemoteValidation not working on Combobox
    By daneel in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 01, 2011, 3:14 PM
  5. Replies: 3
    Last Post: Dec 27, 2008, 6:04 AM

Posting Permissions