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

[Solved] Property Could Not Be Found in Bound Column

2 Answers 83 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.
Jim
Top achievements
Rank 1
Jim asked on 21 Jul 2011, 06:36 PM

Using a Bound column in a grid that uses Ajax data binding, I get several errors like this:

Server Error in '/' Application.

The property IBusinessUnit.Value could not be found.

Exception Details: System.ArgumentException: The property IBusinessUnit.Value could not be found.

The column in question is defined as:
         columns.Bound(pgm => pgm.BusinessUnit.Column.Value).Title("Business Unit");

To get around this problem, I tried using a Template column, but it appears that Template columns aren't supported in grids that use Ajax data binding?  Is there a way to make this work?

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 22 Jul 2011, 07:03 AM
Hi Jim,

 You can use a ClientTemplate for ajax binding. See this example.

Kind regards,
Atanas Korchev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Jim
Top achievements
Rank 1
answered on 22 Jul 2011, 02:08 PM
It appears that my problem is a result of using interface-based view models.  This looks to be an MVC3 limitation, rather than anything to do with the Telerik grid.

http://stackoverflow.com/questions/4702483/asp-net-mvc-3-htmlhelper-exception-does-not-recognize-modelmetadata-on-inherited


Thanks for your help all the same.

Tags
Grid
Asked by
Jim
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Jim
Top achievements
Rank 1
Share this question
or