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

[Solved] Call An Action while Edit Button Is Clicked

3 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Naser
Top achievements
Rank 1
Naser asked on 03 May 2012, 07:08 PM
Hi. I have a grid that it's editmode is on Popup and Is Bind to a list of Customers . When I click on edit button a window with Customer Model is Showing  I want to change the model that is passed to the popup window. how can I do this.

It's very important for me please help me.

3 Answers, 1 is accepted

Sort by
0
Pechka
Top achievements
Rank 1
answered on 04 May 2012, 07:32 AM
Hi,

Changing the model passed to the editor template? Then bind the Grid to the collection you want to actually edit.

If you want to change the Popup elements inside (to use different editor template) see this:

http://www.telerik.com/community/code-library/aspnet-mvc/grid/custom-popup-editor-form.aspx 
0
Naser
Top achievements
Rank 1
answered on 04 May 2012, 10:15 AM
Hi.
You know my purpose exactly is Why when I click on edit Button on grid, any action does not get called.I need to call a action before the open popup window.
0
Accepted
Pechka
Top achievements
Rank 1
answered on 04 May 2012, 12:56 PM
Tags
Grid
Asked by
Naser
Top achievements
Rank 1
Answers by
Pechka
Top achievements
Rank 1
Naser
Top achievements
Rank 1
Share this question
or