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

Invoking Edit PopUp from custom button

2 Answers 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John John
Top achievements
Rank 1
John John asked on 16 Mar 2010, 03:50 PM
Hi,
       I am using radgrid, in which i have the options of Edit,Move. I used ItemTemplate  to bind two link buttons as below

                                     <ItemTemplate> 
                                         <asp:LinkButton ID="lnkEdit" CommandName="Edit" Text="Edit" runat="server"></asp:LinkButton> 
                                         <asp:LinkButton ID="lnkMove" Text="Move" runat="server"></asp:LinkButton> 
                                     </ItemTemplate> 

So what is the requirement is I just want to invoke the Edit PopUp window when i clicked the one of the rows Move button with the informatin of the corresponding row.
Simply when i click the move button I need to show Edit popup with the controls values as the same way when the Edit button clicks.

So please let me know the possibilities of the scenario.

-Thanks

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Mar 2010, 06:17 AM

Hello John,

You could set the CommandName for the move button as Edit if you want to popup EditForm when clicking on it.

If you would like to acquaint the user with the structure of this edit form without giving him the option to edit the data in the grid, then you could disable the controls in EditForm from code behind. A similar approach is described here when using user control. I hope this would help you to get started.

-Shnu.

0
John John
Top achievements
Rank 1
answered on 17 Mar 2010, 12:02 PM
Hi Shinu,
               I reviewed your aboved mentioned link. But i have one question is there any way to call EditPopup by clicking the Preview button and also need to control over the binding  the values of the controls inside the Edit PopUp. I am not intended to call any of UserControls presently.
I need to bind certian controls only than ordinrary EditPopup binds when Edit clicks. My purpose is I need to copy or Insert the new record from the available information.So please let me know the possibility

-Thanks
Tags
Grid
Asked by
John John
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
John John
Top achievements
Rank 1
Share this question
or