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

Grid button to open popup qs....

2 Answers 416 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 14 Jun 2017, 10:21 AM

I'm looking to open a popup from a button on a grid row.

The purpose is not really to edit the row data but rather to take the row id (in this case company id) and load a modal with some dropdowns (for selecting/assigning users) and assign those to the company id passed into the modal view.

Is this kind of thing possible? If so, how might I go about starting to implement it?

Can I do it by opening a popup that contains a partialview?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 16 Jun 2017, 07:38 AM
Hello Terry,

For achieving the desired result you could use a custom command as in the following online demo, where a Window widget is opened when the custom command is clicked:
In the demo you will see how you could get reference to the dataItem within the event from which you can retrieve the id value. 

As for loading a View in the Window, you could refer to the following examples:
Hope this helps.


Regards,
Konstantin Dikov
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.
0
Terry
Top achievements
Rank 1
answered on 16 Jun 2017, 08:16 AM

Hi,

Thanks for reply.

I managed to achieve this myself using kendo window for the modal. All works well except for one issue - which Ive raised as a question here : Modal overlay issue

Basically when clicking the x to close the modal, the overlay remains so the parent is inaccessible.

Any ideas on a solution for that?

Thanks.

Tags
Grid
Asked by
Terry
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Terry
Top achievements
Rank 1
Share this question
or