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

[Solved] Update ajax bound grid with valus from form

2 Answers 78 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.
Ole
Top achievements
Rank 1
Ole asked on 10 Sep 2010, 07:28 AM
Hello...

This may be a stupid question, Web development is somewhat new to me.

I have a form with a couple of comboboxes and a textbox. Submit in this form updates a partial view using MVC ajax. 

The partial view contains two regular html tables. I would like to use the telerik grid instead of the html tabels. 

What's the best way of doing this. I've tried to put a grid in the partialview without succes. It wouldn't load any css and the ajax binding did not work. 

I've also tried to have the grid in the same view as the form, but I couldn't figure out how to configure the ajax binding so that it could use values from my form elements. The example from the documentation shows how to use parameters in ajax binding using viewdata, but that doesn't seem to be the right way in this case.

/Ole

2 Answers, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 10 Sep 2010, 08:22 AM
Hi,

Check this help topic shows how to use Telerik Components for ASP.NET MVC in partial view. Also you can check this online demo to understand how to bind grid with AJAX.

Regards,
Peter
0
Ole
Top achievements
Rank 1
answered on 10 Sep 2010, 08:40 AM
Hello..

I've seen those, and neither shows how to get parameters from my form into the ajax binding? 

As I see it the partial view isn't needed anymore. It was just used because it was the easiest way of implementing the built in MVC ajax functionality with regular html tables.

/Ole
Tags
Grid
Asked by
Ole
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Ole
Top achievements
Rank 1
Share this question
or