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

[Solved] columns.ForeignKey usage inside ClientTemplate does not work?

0 Answers 21 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.
Karthik
Top achievements
Rank 1
Karthik asked on 09 Jan 2013, 03:41 PM
I am trying to do something like this below, is it possible? or do we have a work around?

columns.IconColumn(x => x.Assessment).Title(TMS.Resources.PositionManager.UI.ManageApplicationsGridColumnA).HeaderHtmlAttributes(new { title = XXX.Resources.PositionManager.UI.ManageApplicationsGridColumnAFullName })
                             .ClientTemplate(Html.QtipHover(columns.ForeignKey(x => x.ApplicationView.TestAssessmentStatusTypeID, Model.VendorOrderStatusTypes, "VendorOrderStatusTypeID", "Name").ToString(), XXX.Resources.PositionManager.UI.TestAssessmentTitle, columns.IconHtml(x => x.Assessment, null, "grid-icon")).ToString()).HtmlAttributes(new { title = " " });

Please note the first parameter to the QtipHover extension method accepts a string for the message text. Everything else seems self explanatory if not please ask.

Appreciate any help on this.

Thanks much!
Tags
Grid
Asked by
Karthik
Top achievements
Rank 1
Share this question
or