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

[Solved] Client-side Grid Editing support for "Form Submit"?

5 Answers 42 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.
Raymond
Top achievements
Rank 1
Raymond asked on 21 Jan 2011, 11:12 PM
I have a typical domain model of Order + OrderItems.
I have a page with the Order header details, and the Grid contains the OrderItems.

My desired approach is to have the Grid handle the Insert/Edit/Delete functionality of the OrderItems.

I've looked at the code, and it appears that all the samples, whether servrer-side or AJAX, requires one server trip PER ROW (or per OrderItem).

Is there anyway to have the grid editing done all at the client side, and then, on Form Submit, pass back the collection?

If not, what is the work-around? Perhaps I would have to serialize(?!) my Collection, save it to TempData, and then in the Controller action methods handle this?

Any code samples would be greatly appreciated.

Thank you

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 24 Jan 2011, 08:47 AM
Hi Raymond,

 This is currently not supported. We plan to ship a similar feature with the next official release so stay tuned.

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
Gar
Top achievements
Rank 1
answered on 07 Sep 2011, 09:10 PM
Hi Did this feature get implemented which release is it in? Thanks Gar
0
Georgi Tunev
Telerik team
answered on 08 Sep 2011, 03:04 PM
Hi Gar,

Yes, you can check it here.

Greetings,
Georgi Tunev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Gar
Top achievements
Rank 1
answered on 08 Sep 2011, 05:12 PM
Hi 
Actually I reread the original question and my situation is that I have a a Person (FirstName, Surname), along with several collections (3+) of things. I want this to appear all on a single form and submit as part of a single transaction. Essentially I want the form to collect the data and grid will act as like a set of text boxes for each record. is this possible? I can probably access teh collection via javascript and hack around the problem however that's not my preferred option.
Thanks again
0
Atanas Korchev
Telerik team
answered on 09 Sep 2011, 08:08 AM
Hi Gar,

I guess you can just set the Template of the columns to render textboxes or any other editing component you want. Something like this:

columns.Bound(c => c.Name).Template(c =>
{
   %>
    <%= Html.TextBoxFor(c => c.Name) %>
  <%
});

Regards,
Atanas Korchev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
Raymond
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Gar
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or