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

[Solved] What “EditorViewData” is for in Telrik MVC Grid column definition

0 Answers 28 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.
behnam
Top achievements
Rank 1
behnam asked on 18 Oct 2012, 09:37 AM
 

i have a telerik grid as follow:

Html.Telerik().Grid<MatchViewModel>().Name("Matches").Columns(cols =>
             {
                 cols.Bound(e => e.Name);
                 cols.Bound(e => e.Date);
                 cols.Bound(e => e.GuestTeamId);
                 cols.Bound(e => e.HostTeamId);
                 cols.Bound(e => e.PostponedDate);
             ==> cols.Bound(e => e.RefereeId).EditorViewData(new { RefereeName = '' });
                 cols.Bound(e => e.StatusId);
             })


in the column reffered by arrow i wanna send referee name as additional data for EditorTemplate.i inferred from the EditorViewData method name that it can help me doing this.but i can't get it working.can anyone help me with this? thanks.

Tags
Grid
Asked by
behnam
Top achievements
Rank 1
Share this question
or