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

How to completely personalize the Edit/Insert template

1 Answer 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Davide
Top achievements
Rank 1
Davide asked on 10 Aug 2017, 04:50 PM

Hello,

I need to show in a grid a ModelView of a complex object, with about 50 different fields.

If editing in inline or popup mode, I would need to scroll to much (horizontally or vertically) so I need to build a completely personalized form to insert/update data.

How is it possible to link to a personalized view from a EDIT/ADD buttons from the asp.net core grid?

And how to pass the mode (Insert or Update) and the ID (for Update operations) to this view?

Have you a sample code?

Thanks a lot,

Davide

1 Answer, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 15 Aug 2017, 10:05 AM
Hi Davide,

Based on the post, I assume that the problem is the fact that the user has to scroll the grid in order to enable the edit mode for a row. Please, correct me if I am wrong.

To overcome this, I would suggest using a Popup editing Grid with the "Edit" button at the beginning of the rows. For example - http://dojo.telerik.com/igabe

Furthermore, to check if it is create or update mode, handle the edit event and use the model isNew method:
For example, check the "Use Different Popup Editors for Create and Update Operations" how to article:
Furthermore, to get the ID, in the edit event handler, get the model.fieldForId. For example, check this Dojo: https://dojo.telerik.com/UjEYa

I hope the above information helps.
 

Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Davide
Top achievements
Rank 1
Answers by
Preslav
Telerik team
Share this question
or