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

[Solved] Changes to EnsureRequired?

1 Answer 24 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 11 Nov 2010, 05:02 PM
I'm trying to recompile the ListView control from Kazi Manzur Rashidand's blog and am getting the following error when I reference Telerik.Web.Mvc Version 2010.3.1110.235:

Error 1 'Telerik.Web.Mvc.UI.ListView<T>.EnsureRequired()': no suitable method found to override C:\MvcListView2\Telerik.Web.Mvc.Playground\UI\ListView\ListView.cs 344 33 Telerik.Web.Mvc.Playground


Has anyone tried to get this working?    It is a very useful helper.

Thanks,

RIck
 

1 Answer, 1 is accepted

Sort by
0
Rick
Top achievements
Rank 1
answered on 12 Nov 2010, 08:46 PM
Found the solution to get this helper to work:

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
Answers by
Rick
Top achievements
Rank 1
Share this question
or