Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

WebCombo.setSelectedIndex() not working

Last post 11-21-2008 10:31 by gsmone. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-27-2008 19:55

    WebCombo.setSelectedIndex() not working

    Hi,

     

    I am trying to trigger a WebCombo box to change it's selected index when the user clicks a tab on the same page.  I have it working the other direction: when the user changes the WebCombo value, the WebTab changes it's selected tab.  See my javascript code below:

    function tabPages_InitializeTabs(oWebTab){

    oWebTab.setSelectedIndex(0);

    }

    function cboPages_AfterSelectChange(webComboId){

    var oCombo=igcmbo_getComboById(webComboId);

    var idx = oCombo.getSelectedIndex();

    var ultraTab = igtab_getTabById("tabPages");

    ultraTab.setSelectedIndex(idx);

    oCombo.focus();

    }

    function tabPages_AfterSelectedTabChange(oWebTab, oTab, oEvent){

    var idx = oTab.getIndex();

    var oCombo=igcmbo_getComboById("cboPages");

    oCombo.focus();

    oCombo.setSelectedIndex(idx);

    }

    function cboPages_InitializeCombo(webComboId){

    var oCombo=igcmbo_getComboById(webComboId);

    oCombo.focus();

    oCombo.setSelectedIndex(0);

    }

    The WebCombo initialize doesn't set the index either.

    Any help would be appreciated.

    Filed under:
    • Post Points: 20
  • 11-19-2008 22:02 In reply to

    • gsmone
    • Not Ranked
    • Joined on 08-29-2008
    • Points 170

    Re: WebCombo.setSelectedIndex() not working

    Mark,

     I am seeing the same issue

     oCombo.setSelectedIndex(0);

    Does not work for me either.  Were you able to find out what is wrong?

    • Post Points: 20
  • 11-20-2008 15:35 In reply to

    Re: WebCombo.setSelectedIndex() not working

    No, I haven't been able to figure it out.  It is not a huge issue for me, so I am not going to waste much time on it.

    I thought someone from Infragistics would reposnd to this, but so far nothing.

    • Post Points: 20
  • 11-21-2008 10:31 In reply to

    • gsmone
    • Not Ranked
    • Joined on 08-29-2008
    • Points 170

    Re: WebCombo.setSelectedIndex() not working

    I was able to get around the issue by using the oCombo.setDataValue("ALL", false")

     All was the 0 index I was trying to reset to.  this seems to work alright.

    • Post Points: 5
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems