0

Am using a telerik mvc grid to populate a data by passing the text that the user enters in a HTML textbox. Once the text is entered, I have a button which once we click, it should populate a telerik mvc grid with data (data should come by passing in the text into the stored procedure).

I have the stored proc, I have the controls in place and I want to use ajax binding to get the data from the controller using a view model. Am new to Razor, please help.

tereško
  • 58,060
  • 25
  • 98
  • 150
user1742152
  • 11
  • 1
  • 4
  • Are you using entity framework or casting the sproc results to objects? If you are then its just like anything else, call an Action on a controller that in turn calls your sproc and you shouldn't have any problems. Just look at their filter demo and their ajax demo. I'm assuming you're NOT talking about their KendoUI.. – MisterIsaak Oct 12 '12 at 20:21
  • I got it thanks. I was not using Kendo... – user1742152 Oct 15 '12 at 19:24

1 Answers1

0

Check this demo, I think it is really close to the case you explained.

http://demos.telerik.com/aspnet-mvc/Grid/Filtering?theme=vista

Petur Subev
  • 19,983
  • 3
  • 52
  • 68