Jump to content


Photo

TNxHTMLColumn6 Link Event Doesn't Seem to Fire.


  • Please log in to reply
11 replies to this topic

#1 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 22 May 2023 - 03:05 AM

One of the columns in a TNextGrid6 is a TNxHTMLColumn6 column.

 

Links are added using the following code:

 

      grdNews.Cell[1, grdNews.RowCount - 1].AsString := '<a href="' + Trim(RSSFeed.Items[i].Link) + '">' + Trim(RSSFeed.Items[i].Title ) + '</a>';

 

When a user clicks on the link in the column, the OnClickLink event doesn't seem to fire (I have a breakpoint in this event).

 

I have checked the URLs and they are correct.

 

TNextGrid6 Version 6.8.5.

 

= Steve

 



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 22 May 2023 - 11:18 PM

Hello,

 

Just to ask if you maybe set Interactive property to True?

 

More about this property at:

http://help.bergsoft...mn6/Interactive


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.

#3 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 23 May 2023 - 01:15 AM

Hello,

 

Just to ask if you maybe set Interactive property to True?

 

More about this property at:

http://help.bergsoft...mn6/Interactive

Yes, Interactive is set to True.

 

I just tried it with Interactive set to False and it doesn't work then either.

 

= Steve



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 23 May 2023 - 07:37 PM

Hello Steve,

 

Can you please send me one links (RSSFeed.Items[i].Link) example? Maybe I can inspect it exactly.


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.

#5 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 24 May 2023 - 01:15 AM



Hello Steve,

 

Can you please send me one links (RSSFeed.Items[i].Link) example? Maybe I can inspect it exactly.


Hi Boki,

 

Here is an example:

 <a href="https://cybercom-software.com/blog/index.php/2023/05/2937/?utm_source=rss&utm_medium=rss&utm_campaign=2937">Are You Stuck Without Phoneslips? Has It Stopped Working for You Yet?</a>


= Steve



#6 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 27 May 2023 - 01:05 AM

Hi Boki,

 

Did you find anything?

 

= Steve



#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 May 2023 - 02:38 PM

Hi Steve,

 

Sorry for delay, I will do it today. 


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.

#8 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 01 June 2023 - 08:32 AM

Hi Steve,

 

Sorry for delay, I will do it today. 

Hi Boki,

 

Did you have the same problem, or is it just me?

 

= Steve



#9 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 01 June 2023 - 08:59 AM

If I use NextGrid 5 it works, but only if I don't include the a href tag.  Unfortunately I can only display the URL and can't hide it with text.

 

The font is also different despite me setting the font name and size.

 

 

 

= Steve

Attached Files



#10 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 02 June 2023 - 12:12 AM

Hi Steve,

 

It seems that this is a small parsing error. I'm working on it to fix it, it will be ready for the next release.


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.

#11 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 02 June 2023 - 02:48 AM

Hi Steve,

 

It seems that this is a small parsing error. I'm working on it to fix it, it will be ready for the next release.

Thanks Boki,

 

In the meantime, I have a workaround.  I have used a TNextGrid5 with 3 columns: one for the date, one for the title, and one for the URL.  The last column is not visible.

 

When the user clicks on a title, it reads the URL from the hidden column and opens the blog article on the website.  I also added code to the mouse events to simulate a link.

 

= Steve

Attached Files



#12 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 02 June 2023 - 09:50 AM

Hello,

 

This is a good workaround. I hope that the bug will be fixed for the upcoming release.


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