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

Opening a page on a modal automatically

1 Answer 213 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raulis
Top achievements
Rank 1
Raulis asked on 19 Jul 2016, 09:45 AM

I'm trying to automatically open an appropriate page on a popup modal. My page design is I've got a RADGRID with an edit button for each column. Each row has a unique ID (lets say row 1 is 1, row 2 is 2 and etc.). Each cell has a unique ID number as well. Currently, I've got a popup modal that appears when you click edit on a row in the radgrid. The modal displays all the editable cellsfor that unique row. You then have to click through a cell name/id to fire the "edit" command to code behind that opens up a new page in the modal specific for that cell name/id. The edit button takes in hidden row details of the modal. How can I click on a cell (not a row) and open up the appropriate modal page to edit that cell without having to select the cell on the modal?

 

If this is too confusing or more information is needed I will explain it a bit better.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 21 Jul 2016, 09:25 AM

Hi Raulis,

I suggest you start from the following demo: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window. Here are the similarities:

  • there is a button in a cell that opens a modal dialog with the appropriate page
  • the button comes from the grid template, not from the modal form
  • the form loaded in the dialog has its own data source operations, so you can work with any data you like. For example, you can initiate request to switch to another record.

You can modify it further to fit your needs, for example:

Regards,

Marin Bratanov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
General Discussions
Asked by
Raulis
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or