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){
}
function cboPages_AfterSelectChange(webComboId){
var idx = oCombo.getSelectedIndex();
ultraTab.setSelectedIndex(idx);
oCombo.focus();
var idx = oTab.getIndex();
oCombo.setSelectedIndex(idx);
function cboPages_InitializeCombo(webComboId){
oCombo.setSelectedIndex(0);
The WebCombo initialize doesn't set the index either.
Any help would be appreciated.
Mark,
I am seeing the same issue
Does not work for me either. Were you able to find out what is wrong?
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.
I was having problems with this too, when I was trying to write code that would allow the up and down arrow keys to select the previous or next row in the grid, respectively.
Here is what I came up with, and it works great for me:
curSelectedIndex = Math.min( (rows.length-1), (curSelectedIndex+1) );
row.setSelected(true);
Essentially,
get a handle of a row object, and call row.setSelected(T/F) on it.
If the grid is set to single select, it will automatically unselect all other rows for you.
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.