ComboBox template causes grid focus problem
I am using AW.UI.Grid, in which several cells' template are aw.ui.combobox. These embeded combobox sometimes cause the grid focus problem. When I click an embeded combo and open its dropdown list, the grid focus will automatically move to the first cell of that grid, and leave the dorpdown list open but not selectable. I have to manually move the grid focus back by clicking the the cell which embed the combobox, close and open the dropdown list again, and make selection. Sometimes, I need to repeat this procedure several times to make a single selection on one combobox.
Is this a know issue? Can I work around it now? I am using XP and IE7.
Thanks
mrhsh
June 25,
Refer to the above described problem, It had made me headache for a long time. I reported this problem on this forum for several times, but no response until now. Today, I finally got the reason why it happens, but I cant figure out the solution.
When I make mouse-down on the combo, the focus will move to this combo first, and when I make mouse-up on the combo (finishing the mouse-click), the combos popup showed-up. However, if I click the mouse too fast, that is, the mouse-up happens earlier than focus moving to this combo, the combo cant be got focused, instead, the first cell of the grid get the focus.
I cant ask users to change their mouse-clicking manner. How can I work around this problem?
Thanks,
mrhsh
July 7,
Alex (ActiveWidgets):
Could you take a look at my post above? My project needs to solve this problem immediately. If it is a bug and cant be fixed in short time, just let me know, and I have to give up and try other components.
I am using XP, IE7, and 2.5.2 full version. This error happens on both of 2.5.1 and 2.5.2.
Thanks,
mrhsh
July 21,
Are you using AW.UI.Combo class? If yes, those are not really intended to work as cell templates - you should use AW.Templates.Combo instead.
Alex (ActiveWidgets)
July 21,
Thanks Alex! I have been waiting for your reply.
Yes, I am using AW.UI.Combo. I am going to replace all of my combo with AW.Templates.Combo. However, I found it is not easy to do so, because I couldn't find the equivalent methods I am using for UI.Combo. The following are examples I am using on UI.Combo. Could you tell me what are equivalent methods for Templates.Combo?
var ddl=AW.UI.Combo;
ddl.setItemText(textArray);
ddl.setItemValue(valueArray);
ddl.setItemCount(listLength);
ddl.setSelectedItems(i);
ddl.setCurrentItem(i);
ddl.getPopupTemplate().setSize(wTemp,hTemp);
ddl.showPopup1 = ddl.showPopup;
ddl.showPopup = function(){
this.showPopup1();
};
ddl.onKeyPress = function(event){
//some codes
}
ddl.setSelectedItems(i);
ddl.setCurrentItem(i);
mrhsh
July 21,