iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
Is it possible to use a onclick event on any part of a row to hyperlink.
I dont want to put a hyperlink on every cell in a row, because then every cell's content will be underlined to indicate a hyperlink, which doesn't look good aesthetically.
Regards,
M Sekha
Hello,
So, you would like to have some cells are hyperlinks and some are not in a WebGridColumn?If yes, you would need to validate in IntializeRow server side event.Please just use a custom type for the column and try to validate like below.
protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e) { if(e.Row.Cells.GetNamedItem("CustomerID").Value=="ALFKI) { string text = e.Row.Cells.GetNamedItem("Hyperlinktest").Text; e.Row.Cells.GetNamedItem("Hyperlinktest").Value="<a href= 'handy.xls'>" + text + "</a>"; } }
Regards,Handy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname