Sherzod Posted May 12, 2023 Share Posted May 12, 2023 // OnCreate event with UniDBLookupComboBox2 do begin ClientEvents.UniEvents.Values['beforeInit'] := 'function beforeInit(sender, config) {'+ ' config.listConfig = {'+ ' tpl: new Ext.XTemplate('+ ' ''<tpl for="."><div class="x-boundlist-item" style="'+ Font.ToStyleString(True) +'" data-qtip="{[this.getHint(values)]}">{[this.getVal1(values)]}</div></tpl>'', {'+ ' disableFormats: true,'+ ' getVal1: function(values){return values.val.substring(0, values.val.indexOf("====>>>>"))},'+ ' getHint: function(values){return values.val.substring(values.val.indexOf("====>>>>")+8)}'+ ' }'+ ' )'+ ' };'+ '}'; JSInterface.JSConfig('displayTpl', [JSInterface.JSStatement('Ext.create("Ext.XTemplate",''<tpl for=".">'',''{[this.getVal(values)]}'', ''</tpl>'', {getVal: function(values){return (values.val.indexOf("====>>>>")>-1?values.val.substring(0, values.val.indexOf("====>>>>")):values.val)}})')]) end; 2 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 12, 2023 Author Share Posted May 12, 2023 Demo: \FMSoft\Framework\uniGUI\Demos\Desktop\DBLookupComboBox ListFIeld = CustNo;Company ListFormat = %s====>>>>%s 1 Quote Link to comment Share on other sites More sharing options...
Stemon63 Posted May 15, 2023 Share Posted May 15, 2023 Hi Sherzod, thank you. But in 99% of cases we need a grid in the popup, or the result formatted as a grid, with titles for the columns (we can also have 4-5 fields) and with items from a dataset. And especially with the filter when inputting characters. Always asked for and never got. Yet Unigui is very powerful… 🙂 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 15, 2023 Author Share Posted May 15, 2023 1 hour ago, Stemon63 said: But in 99% of cases we need a grid in the popup, or the result formatted as a grid, with titles for the columns (we can also have 4-5 fields) and with items from a dataset. Well, this will also be implemented in future versions I hope. Quote Link to comment Share on other sites More sharing options...
Stemon63 Posted May 15, 2023 Share Posted May 15, 2023 22 minutes ago, Sherzod said: Well, this will also be implemented in future versions I hope. Hi Sherzod, i'm asking for this feature from pre-release!!!!!! :-) Quote Link to comment Share on other sites More sharing options...
Phxtecno Posted May 17, 2023 Share Posted May 17, 2023 with these requirements it's no more a ComboBox, it's a ComboDlg with grid and so on... Quote Link to comment Share on other sites More sharing options...
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.