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

FormTemplate edit modal does not work.

3 Answers 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
smdk
Top achievements
Rank 1
smdk asked on 30 Nov 2010, 04:26 PM

I'm using a FormTemplate for editing, and if I set the PopUpSettings-Modal="true", the entire browser is disabled and nothing can be done.

On you demo page, can the second example work the same way as the first example modal popup?
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/popupeditform/defaultcs.aspx

Right now in the second example I can click on stuff on the parent page which is not what i was expecting.

thanks

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Dec 2010, 08:36 AM
Hello,


I am not quite sure about your requirement. If you want to set the pop-up form to be modal, then set the PopUpSettings-Modal="true" like set in first grid.

Also you need to set the MasterTableView EditMode as "PopUp" to work this.


-Shinu.
0
smdk
Top achievements
Rank 1
answered on 01 Dec 2010, 12:48 PM
Shinu,
That is exactly what i did and it disables the whole page. Please look at the attachment.

Master table settings:

<MasterTableView IsFilterItemExpanded="false" DataSourceID="SqlDataSource1" DataKeyNames="asdff"
        AllowMultiColumnSorting="True" HierarchyLoadMode="Client" Width="100%"
            CommandItemDisplay="TopAndBottom" EditMode="PopUp"
    <PagerStyle Mode="NextPrevNumericAndAdvanced" />

Edit Form Settings

<EditFormSettings InsertCaption="Add New" CaptionFormatString="ID: {0}"
        CaptionDataField="asfsdf" EditFormType="Template"  PopUpSettings-Width="1000px"
        PopUpSettings-CloseButtonToolTip="Cancel" FormStyle-BorderStyle="Solid" FormStyle-BorderWidth="2" FormStyle-BorderColor="DarkBlue"
        PopUpSettings-Height="550"
        PopUpSettings-Modal="true" >

Thanks for looking into this.
0
Veli
Telerik team
answered on 01 Dec 2010, 02:24 PM
Hi smdk,

This behavior (the popup form falling behind the semi-transparent modal mask) is observed in IE due to a rendering bug in the browser. It happens if RadGrid is inside a container with absolute or relative positioning or is itself positioned this way. It may also happen if you are using grouping with scrolling & static headers. This behavior cannot be avoided. If you cannot remove the prerequisites for this issue, you need to disable the modal mask by setting PopUpSettings-Modal='false'.

Greetings,
Veli
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
smdk
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
smdk
Top achievements
Rank 1
Veli
Telerik team
Share this question
or