Hello:
I'd like to format the 1st column as Hyperlinks like: <a href="~/Info/Index?oID=999&uID=22">999</a>
however, i am having problem assign value to RouteValue:
new orgViewModel { oID = int.Parse("#: OrgID#"), uID = int.Parse("#: UserID#") }
oID and uID are both int, if I don't have int.parse(), it will complain that 'Cannot implicitly convert type 'string' to 'int'', I've tried Convert.ToInt32(), Int32.Parse(), int.Parse() all give error: Input string was not in a correct format.
Please advise,
Thank you
@(Html.Kendo().Grid<projectInfoViewModel>().Name("grid2").Columns(cols =>{ cols.Bound(e => e.OrgID).Tital("View Detail").Template(e => { }).ClientTemplate(" "); cols.Bound(e => e.OrgName).Title("Organization");})
.DataSource(dataSource => dataSource.Ajax()
.Read(read => read.Action("Index", "Summary")) ) .ClientRowTemplate( "<tr>" + "<td>" + @Html.ActionLink("#: OrgID#", "Index", "Info", new orgViewModel { oID = int.Parse("#: OrgID#"), uID = int.Parse("#: UserID#") }, null) + "</td>" + "<td>" + "#: City #<br/>" + "#: ProvinceText#<br/>" + "#: CountryText# " + "</td>" + "</tr>" ) )
I'd like to format the 1st column as Hyperlinks like: <a href="~/Info/Index?oID=999&uID=22">999</a>
however, i am having problem assign value to RouteValue:
new orgViewModel { oID = int.Parse("#: OrgID#"), uID = int.Parse("#: UserID#") }
oID and uID are both int, if I don't have int.parse(), it will complain that 'Cannot implicitly convert type 'string' to 'int'', I've tried Convert.ToInt32(), Int32.Parse(), int.Parse() all give error: Input string was not in a correct format.
Please advise,
Thank you