Jump to content


Photo

Showing just text in TNxImageColumn. Is that possible?


  • Please log in to reply
1 reply to this topic

#1 IUnknown

IUnknown
  • Members
  • 13 posts
  • Gender:Male
  • Location:Niedersachsen, Deutschland
  • Interests:COM/Multithreading/API/eCommerce

Posted 24 August 2014 - 02:35 AM

Team,

I load a list of products into NextGrid. Some of products have graphic representations (pictures), while others don't. Instead they have only the product titles.

I'd like to implement a functionality to display product pics in the TNxImageColumn only for those which have pics. For those product which don't have pics only a plain text with the product title shall be displayed.

Attached is a simple outline of what I want to implement.

Somehow I need to combine Bitmap/ImageList items in one row with plain text in another row of TNxImageColumn. So far I have no idea how to do this.
I've looked up TNxHtmlColumn but it says that IMG tag is not supported. Using pure HTML would be just perfect for my particular case.

Your ideas would be greatly appreciated.

Thanks
Vsevolod

Attached Files


There are 10 types of people. Those who understand binary and those who don't.

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 26 August 2014 - 12:48 PM

Hi,

I suggest using Graphic column and then with custom draw to draw a text if needed:
http://dn.bergsoft.n...in-nextgrid.htm

Before few versions I have added OnSetCell event:
http://www.bergsoft....le/05-10-14.htm

With this event you will be able to turn ON/OFF custom drawing for desired rows.

I hope that this helps.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users