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

Grid in forms?

4 Answers 403 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 30 Jul 2012, 01:15 PM
Hi,

First, let me just say that I'm not satisfied by this change asp.net Mvc->kendo ui MVC. It's now a mess to find any information about products I've to maintain, and it's a shame to have to navigate between differents forums to post something(And I'm talking about the main website where we have to read the footer to find the correct page fastly). And there is no way to display by default asp.net Mvc code instead of the javascript synthax... And there is missing code for c#(e.g. no c# example for http://demos.kendoui.com/web/grid/events.html , no controller example for http://demos.kendoui.com/web/grid/editing-inline.html 
) If your goal was to make my work less productive, you won. Hopes it will not continues this way.

I've an Asp.Net MVC website. I've to create a form on which I can edit an object with a small list of elements. 

My model can be simplified like this:

MyModel
public class MyModel{
   public String Name{get;set;}
   public String Description{get;set;}
   public List<Step> Steps{get;set;}
}
 
public class Step{
  public int Id  {get;set;}
  public String Name {get;set;}
  public String Description{get;set;}
}

I would like to be able to add/remove/edit "Steps", and that when I submit my form containaing MyModel fields, I also receive in the POST data the Steps data.

Is it possible with the telerik Grid? I saw demos, but I didn't make them work for my case, only found ajax instant updating or batch editing

Thank you for your help.

4 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 02 Aug 2012, 05:43 AM
Hi Julien,

Thank you for the feedback our Dev team will be informed about the missing codes. 

Regarding your issue we recently created a code-library project which shows how you can submit a form which contains a grid. However there are some restrictions using this approach. You can find the code-library here.

I hope this helps.

Kind Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Julien
Top achievements
Rank 1
answered on 02 Aug 2012, 05:51 AM
Hi,

Thank you for the response, I think it will match my needs. The worse problem is the pagination restriction. Isn't there a way to avoid this? Or a workaround?
0
Petur Subev
Telerik team
answered on 06 Aug 2012, 11:00 AM
Hello Julien,

We are not aware of a work-around to this issue. If we find something we will update the code-library accordingly.

Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Darryl
Top achievements
Rank 1
answered on 17 Oct 2012, 07:28 AM
Hi

I tried the demonstration project mentioned in the above article, but it does not work in IE9.
If you click on the Save button the Save action isn't fired. Chrome and Firefox work fine.


Regards

Darryl
Tags
Grid
Asked by
Julien
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Julien
Top achievements
Rank 1
Darryl
Top achievements
Rank 1
Share this question
or