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
What I want to do is have an icon in a cell which denotes the value of the datamember of the cell (pending/active/cancelled) and for that icon to have a hyperlink on it based on the DataKeyValue of the row (appointmentid)
How can I acheive that?
Hi Neil,
I'm currently still investigating your problem and need more time to provide a solution for you. For my added information, are you have another scenario beside using image hyperlink in WebGrid ?
I will let you know soon for an update.
Thank you for your patience.Riendy
I don't have another scenario as this layout was stipulated by the client
Any news on this yet?
Thank you for your patience. To use an icon/image which have hyperlink in cell of WebGrid, first of all you have to set the column type to "HyperLink". Then input the codes that defines where hyperlink will be navigate and change the display text into icon/image tag in InitializeRow WebGrid event. For example, see snippet codes bellow :
For this example, the image would be existed on the second column.
<ISWebGrid:WebGridColumn Caption="CategoryName" DataMember="CategoryName" Name="CategoryName" Width="100px" ColumnType="HyperLink"
protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e) { // To change a cell type into image. // Note that e.Row.Cells[0].Text is ColumnID. // Note that e.Row.Cells[1].Text is name of the image. WebGrid1.RootTable.Columns[1].HyperlinkDisplayText = " <img alt='" + "?id=" + e.R ow.Cells[0].Text + "' src='" + e.Row.Cells[1].Text + "'/>"; //To set a hyperlink format string. You can chage e.Row.Cells[0].Text into appoin tmentID based on your scenario. WebGrid1.RootTable.Columns[1].HyperlinkFormatString = "http://www.google.co.id/s earch?" + e.Row.Cells[0].Text; }
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