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
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
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 >>
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
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) %>
<%
});
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 >>