Hi,
I have now introduced a new column with hyperlink cell values. The problem is clicking on the hyperlink fires the RowEditTemplate, the page does not navigate away as you would expect it to.
Rob
Are you handling the navigation to another page entirely through JavaScript or are you embedding links into the cell's text, such as <a href='www.google.com'>Go To Google</a>? Also, do you want the values in this cell to be available in the rowedittemplate for the other cells in this column that do not navigate to another page?
In my case my column type is not HyperLink...it is normal column..since I want to open some other pages on click of this column, for only some rows depending on some conditions.So what I did is I used CellClick Handler to open that page as well a close the row edit template. ( The reason I did not use Hyperlink column is If I use it, for all rows it is showing the underline ( _ ) which I do not want).
Can you tell me the solution not to show underline for some rows if the column type is 'HyperLink'?
When clicking on a link it should navigate regardless. The specification of No for AllowUpdate on the column was to keep the template from opening when clicking on the cell region around the link. I tried it out using 8.1 in a simple sample and did not seem to have any issues. Here is my column definition:
<Columns>
<igtbl:UltraGridColumn BaseColumnName="col0" Key="col0">
</igtbl:UltraGridColumn>
Type="HyperLink">
<Header>
<RowLayoutColumnInfo OriginX="1" />
</Header>
<Footer>
</Footer>
</Columns>
and the data im binding to:
dt.Columns.Add("col0");
dt.Rows.Add("1", @"http://www.google.com");
this.UltraWebGrid1.DataSource = dt;
this.UltraWebGrid1.DataBind();
I tested with both CellClickActionDefault set to Edit and CellSelect and and of course i have UltraWebGrid1.DisplayLayout.AllowUpdateDefault set to RowTemplateOnly.
You should be able to see the differences between yours and mine that may be causing the behavior you mention.
I'm facing the same problem and Sung I tried the solution you posted and did not work for me. So what we did is, we wrote a client side event for the cell click handler for this grid and if the column key is the hyperlink column then we are doing EndEdit of Row Edit Template ( basically to close the template) if the Row Template is already open.And now our hyperlink is working. But this causes a flicker to the user like the row template gets opened & closed.
Waiting for an Efficient Solution !!
In addition to setting the AllowUpdateDefault under DisplayLayout, you should be able to specify it on the Band and Column levels as well. Try setting the AllowUpdate on your hyperlink column to "No".