This is a migrated thread and some comments may be shown as answers.

[Solved] Row specific content in a HtmlAttributes

0 Answers 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jonas Jes
Top achievements
Rank 2
Jonas Jes asked on 13 Jul 2012, 10:03 AM
Is it posible to use row specific content into HtmlAttributes?

I got this cell with its content (o.ArrivalTime), when i move my mouse over it i'll like it to show the content from a other element (o.Note) in a tooltip

I tried this but it will not accept the o.Note 
columns.Bound(o => o.ArrivalTime)
      .Title("Arrival Time")
      .Template(o =>
            {%><%=(o.ArrivalTime < Convert.ToDateTime("2000-01-01")) ? "?" : o.ArrivalTime.ToString()%><%})
      .Width(140)
      .HtmlAttributes(new {title = o.Note })
      ;
Tags
Grid
Asked by
Jonas Jes
Top achievements
Rank 2
Share this question
or