Hi,
I have a hyperlink control inside Syncfusion control and based on certain conditions I want to make it disable. Please do help me to resolve this problem.
Thanks,
SG
Hi Mahendra
Thank you for your update.
You can achieve your requirement
by using the below code snippet,
this.dataGrid.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(Model_QueryCellInfo);
void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if (e.Style.ColumnIndex==2)
{
e.Style.CellType = "Hyperlink";
//you can enable and disable hyperlink cell link by using the Enabled property
e.Style.Enabled = false;
}
}
Please let us know if you have
any queries.
Thanks,
Rajasekar
Hi Sunil,
Thank you for your update.
We have tested the reported issue but it is working fine from our side. Could you please check the below sample,
Sample: http://www.syncfusion.com/downloads/Support/DirectTrac/94735/SyncfusionGDC1411922025.zip
Please let us know if you have any queries.
Thanks,
Rajasekar