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

Data form with Next/Prev record

5 Answers 307 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 09 Mar 2016, 09:51 PM

I want to create a bound form with next/prev/first/last/delete/new buttons.

Is there any sample code or demos out there on how to implement this? Even better would be samples that also show a linked subgrid, a la invoice details/Line Items.

Thanks,

Brad

5 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 12 Mar 2016, 07:57 AM
Hi Brad,

You can utilize the described functionality by using our Grid for ASP.NET MVC with enabled paging and editing.

You can find several data-editing approaches in the DataEditing section of the Grid's live demos:
 -  Batch editing
 -  Inline editing
 -  Popup editing
 -  Editing custom editor
etc.

Regards,
Vessy
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Brad
Top achievements
Rank 1
answered on 14 Mar 2016, 04:21 PM

Vessy,

Thanks. I did find all of that for Grids, but I am trying to do that with forms specifically - look at what Microsoft Access can let you do in just a few minutes but would take a very experienced web developer, with expensive tools, a few days to do.

As far as I have been able to determine, I can use your grid control for the linked sub grid, but I am on my own with the form - probably Angular with Angular-xeditable are the right tools.

I have been hunting for a way to develop database front end web apps with the ease of Access or FileMaker. The Telerik MVC UI controls get me a couple of steps closer, but a long journey still remains.

- Brad

0
Vessy
Telerik team
answered on 16 Mar 2016, 02:23 PM
Hi Brad,

Thank you for the additional information. If I understand the scenario properly you want to have a form through which the client can add/edit the data items shown in a grid below it. If so - yes, you will need to handle the updating of the data in the grid with the input data on your own. As a base for your implementation you can use the logic given in the following demo (the form is added to a pop-up window appearing then the Add/Edit buttons are clicked):
http://demos.telerik.com/aspnet-mvc/grid/editing-popup

Regards,
Vessy
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Brad
Top achievements
Rank 1
answered on 16 Mar 2016, 05:51 PM

Vessy,

Sorry I was not clear on this - I should have given an example due to varying terminology.

Imagine an invoice screen. You have the invoice form up top that has customer name, invoice number, date, terms, note and such.

Then below you have a grid with the line items that apply to that invoice.

The Invoice form has next/prev buttons so you can move to the next invoice or the previous invoice for that customer. Entering or editing the form's data would happen in place.

The grid part I have figure out and is pretty easy.

It's the databound form that allows you to navigate through the table that is a bit trickier to set up. I can wire everything together using Angular and Angular-xeditable and ASP.Net MVC.with some moderately creative Linq.

But does the Telerik MVC UI framework have a control set or something that make this noticeably easier to do?

- Brad

 

 

 

0
Vessy
Telerik team
answered on 18 Mar 2016, 03:37 PM
Hi Brad,

Unless you are not using the Grid's built in edit forms, but and external one you will need to handle the data management with your own logic. I am afraid that we do not have such an already prepared example.

Regards,
Vessy
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Brad
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Brad
Top achievements
Rank 1
Share this question
or