ramses Posted Wednesday at 06:27 PM Posted Wednesday at 06:27 PM i have 2 issues: FIRST: i do assign a combobox (for user searching) after retrieving from the DB like this: var LList: TStringList; ... cbUser.Items.Assign(LList); >> now i want to expand the combobox when Items.Count > 0 the combobox is filled correctly when i open it manuially, no chance to open it per code. tried a lot experimenting with JS but it doesn't react e.g. on cbUser.JSInterface.JSCode( 'if (this.rendered && this.getStore().getCount() > 0) {' + ' this.expand();' + '}' ); How should i configure the combobox and how to perform the auto expand? SECOND: when i select an item (combobox opened manually) the the OnSelect is fireing but the ItemIndex is always -1, doesn't matter which item is choosed WHY? and how to get the right itemindex? Quote
Sherzod Posted Wednesday at 06:33 PM Posted Wednesday at 06:33 PM Hello, Which uniGUI version are you using? Also, could you please create a simple test case to reproduce both issues? Quote
ramses Posted Thursday at 09:53 AM Author Posted Thursday at 09:53 AM Hi, i'm using uniGUI 1.95.0.1610 & Ext JS 7.9.0 i tried to make the demo very near to the real app, regarding this functionality. Please check the comments in source. Interesting and not explainable why in the demo the reading of the ItemIndex is working but in my app not...maybe you can figure it out as the only difference in the demo is that StringList is filled manually and in my app it comes from the DB thank you! Test_ComboBox.rar Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.