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
When I group by a hyperlink column (see below), the hyperlink disappears at the group by row. I can no longer click on the column value. Do I need to reset the hyperlink at the group by header?
<ISWebGrid:WebGridColumn Caption="HH Name" AllowGrouping="Yes" HyperlinkTarget="Self" ColumnType="HyperLink" HyperlinkFormatString="javascript:testopen()" AllowSorting="Yes" DataMember="vchHHName" Name="vchHHName"> <FooterStyle Font-Bold="true" /> </ISWebGrid:WebGridColumn>
reportGrid.RootTable.SortedColumns.Clear()
reportGrid.LoadTablesStructureFromXml(Server.MapPath("../Layouts/Holdings.xml"))
groupByHH.ColumnMember = "vchHHName"
groupByHH.GroupInterval = GroupInterval.Text
groupByHH.SortOrder = SortOrder.Ascending
.Add(groupByHH)
End With
Hi Daniel,
That is a default behaviour. When you group a column, no matter what is the type of column, Group row info would be rendered as 'Text'. If you still want to persist the hyperlink, then you will need to validate in IntializeRow event.e.g I have a column named 'File' which is hyperlink. Below is my snippet code to persist the hyperlink in Group Row level.
protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e) { DataRowView dv; if (e.Row.Type == RowType.GroupHeader) { dv = (DataRowView)e.Row.Children[0].DataRow; string text = "<a href= '" + dv["File"].ToString() + "'>"+dv["File"].ToString()+"</a>"; e.Row.Cells[0].Value = text; } }
Hope this helps.
Regards,Handy
It does. It's unfortunate we have to do this, so if it could potentially be considered in a future release that would be great.
Hello Daniel,
GroupRowInfo is designed with a features which user can customize (add or remove) the info of the group in there. That's why it is designed as text. While persists hyperlink in GroupRowInfo, makes the user could not use the feature anymore. So, the possible way to do your scenario is by using the workaround which I suggested at previous post.
Regards,HAndy
I have submitted this as feature request, feature request #623, to WebGrid development team.
The team will check the feasibility to implement this feature in the future build of WebGrid. I’ll keep you updated with any news I heard from the team regarding this feature request.
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