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

html.configurator doesnot contain a defintion

8 Answers 329 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.
B
Top achievements
Rank 1
B asked on 14 Jun 2011, 07:02 AM
Hi, I am new to telerik aspnet MVC . i got some code and copied into my app.I got some error in views at html.configurator saying that  does not contain  a definition for configuator and no extension method.....
can you please help what files should be added and where in the application to get out of this problem.

8 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 14 Jun 2011, 07:08 AM
Hi B,

 Html.Configurator is used only in the online examples to provide a styled <form> element. It is not required in customer projects and you can safely omit it.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ben
Top achievements
Rank 1
answered on 26 Mar 2012, 11:48 PM
As this topic ranks pretty highly in Google, I assume a lot of people are having the same problem as I.

From the View code at:
http://demos.telerik.com/aspnet-mvc/razor/grid/filtering 

@using (Html.Configurator("Filter by ...")
              .PostTo("Filtering", "Grid")
              .Begin())
   {

It is totally unclear as to how to configure this to make it actually work. Can someone give an example that does work, and if possible fix up the example above so that it doesn't refer to an irrelevant class?
0
Patrick
Top achievements
Rank 2
answered on 27 Mar 2012, 01:19 AM
Agreed: I wasted quite a bit of time trying to get this to work, which was a reasonable expectation given that the source code was provided as part of a demo.  It would be better if Telerik either fixed the demo so that people could copy the source code and it worked, or for you to include a warning in the demos that the code will give an error.  
0
Atanas Korchev
Telerik team
answered on 27 Mar 2012, 07:47 AM
Hi,

 We never imagined this extension method would be so difficult to understand. It is just a wrapper over Html.BeginForm(). All it does is to add some extra markup and CSS classes. You could really use Html.BeginForm() instead of Html.Configurator().

Regards,
Atanas Korchev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Ben
Top achievements
Rank 1
answered on 27 Mar 2012, 11:52 PM
Thank you guys. Might I suggest including a few comments for the newbies in the examples? We'd rather avoid asking basic questions where possible!
0
Atanas Korchev
Telerik team
answered on 28 Mar 2012, 07:45 AM
Hi,

 Sure. We will add some comments to avoid confusion.

Greetings,
Atanas Korchev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Patrick
Top achievements
Rank 2
answered on 28 Mar 2012, 11:26 AM
Thanks.
0
Dennis
Top achievements
Rank 1
answered on 06 Jul 2012, 11:21 PM
Can you please explain how to get this to work? I added the extension classes to my solution but it is still not working or seeing the methods. Is there something else I need to do?

thanks
Tags
Grid
Asked by
B
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Ben
Top achievements
Rank 1
Patrick
Top achievements
Rank 2
Dennis
Top achievements
Rank 1
Share this question
or