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

Edit form template will not show up as popup!

4 Answers 217 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vithiya
Top achievements
Rank 1
Vithiya asked on 28 Aug 2008, 08:51 PM
I have a radgrid with form template edit enabled and that works perfectly when the template opens up within the grid. But I want the form template to open up as a popup instead. I set the radgrid's editmode=popup and under the mastertableview settings also I set the editmode=popup. But nothing seems to make a difference. The edit form always shows up inside the grid. How do I get the edit form to popup?

Thank you!
vithiya

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Aug 2008, 04:09 AM
Hi Vithiya,

PopUp EditMode is supported only by RadGrid for asp.net AJAX version. I tried this on my end and it is working as expected.

Here is my aspx :
 <MasterTableView DataSourceID="SqlDataSource1" EditMode="PopUp"  CommandItemDisplay="Top"  > 
               
                <EditFormSettings EditFormType="Template"   > 
                    <PopUpSettings ScrollBars="None" /> 
                   <FormTemplate> 
                       <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 
                       <asp:LinkButton ID="LinkButton1" Text="Update" runat="server"></asp:LinkButton> 
                       <asp:LinkButton ID="LinkButton2" runat="server" Text="Cancel" ></asp:LinkButton> 
                   </FormTemplate> 
                 </EditFormSettings> 


Thanks
Shinu.
0
Vithiya
Top achievements
Rank 1
answered on 02 Sep 2008, 01:19 PM
Thank you for the response Shinu. I tried to set the eidt mode via the designer and it never worked. But when I typed it in the source view, it worked. Very weird! But at least now the form pops up for editing.

Thanks again!
vithiya
0
Vithiya
Top achievements
Rank 1
answered on 02 Sep 2008, 05:54 PM
Here is another issue with the popup edit mode. The context menu does not show up on the popup window. Instead, it shows up on the main window. My popup form has a text field that shows a context menu on right click. It worked as expected when I had it as in-form editing. After I switched to popup, the code works except the popup menu shows on the parent window behind the popup screen. How can I correct this so that the popup menu shows up on the popup screen itself?

Also, I tried to replace the default toolbar (with 'Add New Record' and 'Refresh' buttons) with a radtoolbar. I set the commad names matching to the default ones. The New button on the radtoolbarbutton brings up the new edit form correctly. But the Edit button on the toolbar does not do anything. I see that the e.item has different value based on where it comes from. How can I get my edit button on the toolbar to bring up the edit form.

Thank you!
vithiya
0
Yavor
Telerik team
answered on 03 Sep 2008, 05:29 AM
Hi Vithiya,

One possible solution would be to try and set the z-index for the menu, to a value like 10000. This should ensure that it is properly positioned. Let me know if this helps. Also, with respect to the toolbar, what is the command name that you assign to the button in question?

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Vithiya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Vithiya
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or