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

EditMode=PopUp Modal Doesn't Work on GridTableView

2 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Deborah
Top achievements
Rank 1
Deborah asked on 12 Sep 2013, 10:43 PM
ASP .NET AJAX Q3 2012

I have a simple grid with a MasterTableView, some columns at that level, and then a child DetailTable/GridTableView.
I need a modal popup on the child GridTableView. 
I set this on the GridTableView:  EditMode=PopUp and <EditFormSettings EditFormType="AutoGenerated" PopUpSettings-Modal="true"></EditFormSettings>

When I click the edit icon for a row in the GridTableView, the modal popup appears, but the background is NOT greyed-out, and the controls "behind" the popup are available to the user. The popup is NOT modal.

If I instead change things so the MasterTableView has EditMode=PopUp and the EditFormSettings are at the MasterTableView level (just like your demos) the popup opens and displays as it should, modally and with the grey background.

Please validate that this is a bug, how I can get it fixed or if there is a work around or other ways to achieve what I'm trying to do.


2 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 13 Sep 2013, 05:28 AM
Hello,

Please try with the below code snippet.

<MasterTableView CommandItemDisplay="Top" EditMode="InPlace">
           <Columns>
               <telerik:GridBoundColumn DataField="ID" UniqueName="ID" HeaderText="ID">
               </telerik:GridBoundColumn>
               <telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="Name">
               </telerik:GridBoundColumn>
               <telerik:GridEditCommandColumn>
               </telerik:GridEditCommandColumn>
           </Columns>
           <DetailTables>
               <telerik:GridTableView EditMode="PopUp">
                   <Columns>
                       <telerik:GridBoundColumn DataField="ID" UniqueName="ID" HeaderText="ID">
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="Name">
                       </telerik:GridBoundColumn>
                       <telerik:GridEditCommandColumn>
                       </telerik:GridEditCommandColumn>
                   </Columns>
               </telerik:GridTableView>
           </DetailTables>
           <EditFormSettings PopUpSettings-Modal="true">
           </EditFormSettings>
       </MasterTableView>


Thanks,
Jayesh Goyani
0
Deborah
Top achievements
Rank 1
answered on 13 Sep 2013, 02:04 PM
Thank You - It worked!

To clarify for others, the key for this scenario is to specify this at the MasterTableView:

<EditFormSettings PopUpSettings-Modal="true"></EditFormSettings>

And on the GridTableView:

EditMode="PopUp"
Tags
Grid
Asked by
Deborah
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Deborah
Top achievements
Rank 1
Share this question
or