The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I''m trying to use an standard Windows LinkLabel in a cell. But I need to click in the cell before the pointer turns into an hand and I can activate the link in the cell (which does not go to an web page). Please see example code:
LinkLabel lnkLabel = new LinkLabel();
lnkLabel.Text = "SomeText";
lnkLabel.BackColor = Color.White;
lnkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkLabel_LinkClicked);
lnkLabel.Links[0].LinkData = someData;
theGrid[x,y].Control = lnkLabel;
Any tips on how to solve this? I need to handle the click event in my code since it does not fire of a web page.
Regards,
Geir
ADAdministrator Syncfusion Team June 28, 2005 08:53 AM UTC
To get the proper mouse interaction with the link cell, I think you will have to use the technique shown in this sample. \Syncfusion\Essential Studio\3.2.1.0\Windows\Grid.Windows\Samples\CellTypes\LinkLabelCells
You can copy the LinkLabelCell file to your project and just use teh custom cell type to have support for a link cell. Then if you do not want to lauch teh browser, you can comment out this line:
//LaunchBrowser(style);
in teh OnMouseUp override in the LinkLabelCellRenderer class. Then you can handle the grid.CellClick event to catch the click and act on it.
NPNarasimha PrasadApril 4, 2018 08:28 AM UTC
doing poc
ARArulpriya Ramalingam Syncfusion Team April 4, 2018 03:57 PM UTC
Hi Narasimha,
Thanks for the update, please provide the details of your requirement, if you need any technical assistance on this.
Regards,
Arulpriya
Need More Help?
Get personalized assistance from our support team.