MVakili Posted September 18, 2022 Share Posted September 18, 2022 How I can show multiple columns (Name , Code ,Age ) in a Unicombobox like this ? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted September 19, 2022 Share Posted September 19, 2022 16 hours ago, MVakili said: How I can show multiple columns (Name , Code ,Age ) in a Unicombobox like this ? We don't have this functionality in ExtJS. There are some solutions but unfortunately none of them 100% working. Quote Link to comment Share on other sites More sharing options...
MVakili Posted September 19, 2022 Author Share Posted September 19, 2022 3 hours ago, Hayri ASLAN said: We don't have this functionality in ExtJS. There are some solutions but unfortunately none of them 100% working. Tanx for your answer what you prefer ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 19, 2022 Share Posted September 19, 2022 41 minutes ago, MVakili said: what you prefer ? Hello, Use what is currently available, you can display multiple fields. Please see related demos. Quote Link to comment Share on other sites More sharing options...
MVakili Posted September 19, 2022 Author Share Posted September 19, 2022 6 minutes ago, Sherzod said: Hello, Use what is currently available, you can display multiple fields. Please see related demos. I cant find any sample about multiple fields in C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 20, 2022 Share Posted September 20, 2022 8 hours ago, MVakili said: I cant find any sample about multiple fields in C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop \FMSoft\Framework\uniGUI\Demos\Desktop\ComboBox Remote Data For example, the same demo. You can use OnRemoteQuery, OnRemoteQueryEx events. Quote Link to comment Share on other sites More sharing options...
MVakili Posted September 20, 2022 Author Share Posted September 20, 2022 9 hours ago, Sherzod said: \FMSoft\Framework\uniGUI\Demos\Desktop\ComboBox Remote Data For example, the same demo. You can use OnRemoteQuery, OnRemoteQueryEx events. Thank you for your answer, but I could not use it. I need it to display several columns when it opens, and after selection, I can display the value of one of the columns as an answer and receive the entire selected answer as a string. Like when you click on a column in a grid and select a record Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 20, 2022 Share Posted September 20, 2022 57 minutes ago, MVakili said: I need it to display several columns when it opens, and after selection, I can display the value of one of the columns as an answer and receive the entire selected answer as a string. Like when you click on a column in a grid and select a record Well, I understand you. Quote Link to comment Share on other sites More sharing options...
Stemon63 Posted September 20, 2022 Share Posted September 20, 2022 An ancient question never resolved with a good component ... that everyone really needs!!! 😉 Quote Link to comment Share on other sites More sharing options...
CastleSoft Posted September 20, 2022 Share Posted September 20, 2022 NOT tested.. maybe something like this ? function beforeInit(sender, config) { config.listConfig={ getInnerTpl: function() { var tpl = '<table width="100%">'+ '<tr>'+ '<td style="vertical-align:top;width:100%">'+ '<div><span style="font-weight:bold;">{name} {middlename} </span><span style="float:right;color:blue">{lastname}</span></div>'+ '</td>'+ '</tr>'+ '</table>'; return tpl; } }; } Quote Link to comment Share on other sites More sharing options...
MVakili Posted September 24, 2022 Author Share Posted September 24, 2022 Hi again why TUniCombobox.OnExit dosnt works? procedure TDMT.ComboExit(Sender: TObject); Begin TUniComboBox(Sender).Text:='8'; End; Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted September 25, 2022 Share Posted September 25, 2022 On 9/20/2022 at 11:51 AM, MVakili said: Thank you for your answer, but I could not use it. I need it to display several columns when it opens, and after selection, I can display the value of one of the columns as an answer and receive the entire selected answer as a string. Like when you click on a column in a grid and select a record May be this can give you an idea: http://forums.unigui.com/index.php?/topic/9570-when-will-unicombobox-support-value/&do=findComment&comment=50674 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 25, 2022 Share Posted September 25, 2022 12 hours ago, MVakili said: why TUniCombobox.OnExit dosnt works? Hello, Event works. Which build, settings are you using? Quote Link to comment Share on other sites More sharing options...
MVakili Posted September 25, 2022 Author Share Posted September 25, 2022 2 hours ago, Sherzod said: Hello, Event works. Which build, settings are you using? uni-1.90.0.1558 unim-1.90.0.1558 I think its last version Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 25, 2022 Share Posted September 25, 2022 Could you make a simple testcase to reproduce your case? Quote Link to comment Share on other sites More sharing options...
MVakili Posted September 25, 2022 Author Share Posted September 25, 2022 1 hour ago, Sherzod said: Could you make a simple testcase to reproduce your case? I noticed the bug '8' must be part of items to use in text so I wrote TUniComboBox(Sender).items.clear; TUniComboBox(Sender).items.add('8'); TUniComboBox(Sender).itemIndex:=0; TUniComboBox(Sender).Text:='8'; 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.