How to add hyperlink to an ultragrid column
where the link directs to new page consisting of the data related to tha ID
Hi Jayaram9,
1. If you are using an ultrawebgrid hyperlink then this is what you need to do in order to assign a new page to the hyperlink:
a. In the ultrawebgrid (Design HTML) you set the OnInitializeRow="ultrawebgrid1_InitializeRow"
In your code behind(mine is C#), you need to call:
protected void ultrawebgrid1_InitializeRow (object sender, RowEventArgs e){
//if you want to pass any data to the newpage.aspx, then you need to collect the data from that row
string col2Data = e.Row.Cells.FromKey("col2Data").Value.ToString();
e.Row.Cells.FromKey("YOURHYPERLINKColumnName").TargetURL="newpage.aspx?col2Data="+col2Data
}
2. If you need to open up a modal then I would suggest you use this way
http://forums.infragistics.com/forums/p/842/11844.aspx#11844
with javascript http://www.eggheadcafe.com/articles/20050319.asp
If you need more info, let me know!
Good luck!
HS2
hi
Where should i Write this
OnInitializeRow="ultrawebgrid1_InitializeRow
Pls help
Regards
Chandrakant