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

[Solved] Getting ListView to work with Q3 Release

0 Answers 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rick
Top achievements
Rank 1
Rick asked on 12 Nov 2010, 08:47 PM
Kazi Manzur Rashid has a great ListVIew helper for MVC that works well with the Telerik helpers.  You can find it at:

http://weblogs.asp.net/rashid/archive/2010/03/24/creating-rich-view-components-in-asp-net-mvc.aspx

I had some compatibility problems with with the Q3 release.     I had to change the source in ViewComponentFactoryExtensions.cs as follows:

Change:

 

    return new ListViewBuilder<T>(factory.Create(() => new 
ListView<T>(factory.HtmlHelper.ViewContext, 
factory.ClientSideObjectWriterFactory)));

 
to: 

return new 
ListViewBuilder<T>(factory.Register(() => new 
ListView<T>(factory.HtmlHelper.ViewContext, 
factory.ClientSideObjectWriterFactory)));<BR>

Providing source to your helpers is a lifesaver!    Great work Telerik!

Rick


Tags
General Discussions
Asked by
Rick
Top achievements
Rank 1
Share this question
or