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

Radgrid in a modal dialog is not showing update popup

1 Answer 197 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Suzy
Top achievements
Rank 2
Suzy asked on 12 Jan 2015, 07:36 AM
Hi,

I have a problem with the RadGrid and the create/update popup.

The radgrid is in a modal dialog (call with javascript showModalDialog).  

<telerik:RadGrid ID="grdExternalCosts" runat="server" AllowPaging="True" ShowFooter="true" AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="true" OnPreRender="grdExternalCosts_PreRender" OnNeedDataSource="grdExternalCosts_NeedDataSource" OnUpdateCommand="grdExternalCosts_UpdateCommand" OnInsertCommand="grdExternalCosts_InsertCommand" DeleteCommand="grdExternalCosts_DeleteCommand">
<MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="ExternalCostID" EditMode="PopUp">
   <EditFormSettings>
     <PopUpSettings Modal="false" ZIndex="500" />
   </EditFormSettings>
   <Columns>
   ...
  </Columns>
   <EditFormSettings UserControlName="ExternalCostsDetail.ascx" EditFormType="WebUserControl">
      <EditColumn UniqueName="EditCommandColumn1"></EditColumn>
   </EditFormSettings>
</MasterTableView>
</telerik:RadGrid>

The modal screen is showing nicely but when I click the add new record button, I get an error saying 'the session has expired. The window will be closed. Refresh the main page before continuing'.  And when I look at the hyperlink it is the same as the page that I have in the modal dialog, not the user control for inserting a new record. 

What can I do to fix this?

Kind regards

Suzy 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 14 Jan 2015, 02:13 PM
Hello Suzy,

First, I would like to point out that showModalDialog is deprecated from the web standards, as documented in the following article:
Now, regarding the issue, this seems to be related to the ModalDialog in particular and you can take a look at the following forum thread, where you will find additional information on this matter:
Since this issue is to the ModalDialog, I will highly recommend that you use our RadWindow control instead for displaying the RadGrid. You can have a look at our online demo for RadWindow and see if it will fit your exact requirements:
Hope this helps.


Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Suzy
Top achievements
Rank 2
Answers by
Konstantin Dikov
Telerik team
Share this question
or