Didier Posted March 27 Share Posted March 27 Hi, I have a Tunicheckcombobox and a TUninativeImageList (FileAttachImgList). In the property images of my checkcombobox, FileAttachImgList. Iconeitems is ok too with the diferent index. But I didn't see my images. All work fine with a Tunicombobox Whatcan i do to to have my icones ? Thank you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 Hello @Didier Are you using icons only? Quote Link to comment Share on other sites More sharing options...
Didier Posted March 27 Author Share Posted March 27 i want the same as a unicombobox : icon1 text1 icon2 text2 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 Just now, Didier said: i want the same as a unicombobox I already understand what you want. Just to clarify, do you use only icons, or images too? Quote Link to comment Share on other sites More sharing options...
Didier Posted March 27 Author Share Posted March 27 sorry, In the property images, i put FileAttachImgList And i use property iconItems like this I make a simple test case App.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 3 minutes ago, Didier said: In the property images, i put FileAttachImgList Yes I know. I meant... Ok I will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 Try this approach: UniCheckComboBox.ClientEvents.ExtEvents -> function afterrender(sender, eOpts) { var repStr = '<span class="{icon.iconStr}"> </span>{val}'; sender.listConfig.tpl.html = sender.listConfig.tpl.html.replace('{val}', repStr); } Quote Link to comment Share on other sites More sharing options...
Didier Posted March 27 Author Share Posted March 27 no change Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 55 minutes ago, Didier said: App.zip 63.77 kB · 0 downloads I will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 2 minutes ago, Didier said: no change Yes, because you are using images and not icons, which is what I asked about. I'll check... Quote Link to comment Share on other sites More sharing options...
Didier Posted March 27 Author Share Posted March 27 oh, ok, sorry i didn't understand Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 @Didier Try this approach: function afterrender(sender, eOpts) { var repStr = '<tpl if="icon.iconStr"><span class="{icon.iconStr}"></span><tpl else><img style="margin-top:3px;width:16px;height:16px;" src="{icon.iconUrl}"/></tpl> {val}'; sender.listConfig.tpl.html = sender.listConfig.tpl.html.replace('{val}', repStr); } Quote Link to comment Share on other sites More sharing options...
Didier Posted March 27 Author Share Posted March 27 yes, thank you, all works fine now 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.