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

[Solved] Popup Window Remains after Update

2 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
hubert
Top achievements
Rank 1
hubert asked on 29 Jun 2009, 05:23 PM
I am evaluating Teletik controls for a new project.

The issue is that after Update button clicked, the popup window comes up again(expect the popup is closed). Appreciate any comments.

<

 

telerik:RadGrid ID="grdLeaseDetails" runat="server" GridLines="None" AllowMultiRowSelection="true"

 

 

AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False"

 

 

ShowStatusBar="true" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"

 

 

AllowAutomaticUpdates="True" HorizontalAlign="NotSet">

 

 

<mastertableview CommandItemDisplay="Top" GridLines="Horizontal" DataKeyNames="ID"

 

 

EditMode="PopUp">

 

 

<Columns>

 

 

<telerik:GridBoundColumn HeaderText="Co" DataField="Company" UniqueName="Company"

 

 

SortExpression="Company" HeaderStyle-Width="110px" FilterControlWidth="90px"

 

 

AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="true" />

 

 

...
<
telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" EditImageUrl="~/Images/open.gif">

 

 

</telerik:GridEditCommandColumn>

 

 

</Columns>

 

 

<EditFormSettings UserControlName="UserControl\EditLeaseDetailControl.ascx" EditFormType="WebUserControl"

 

 

FormStyle-BackColor="LightYellow" FormStyle-Width="100%" FormStyle-Height="100%"

 

 

CaptionFormatString="Edit Detail: {0}" CaptionDataField="ID" PopUpSettings-Modal="true" >

 

 

<EditColumn UniqueName="EditCommandColumn">

 

 

</EditColumn>

 

 

</EditFormSettings>

 

 

</mastertableview>

 

 

<ClientSettings>

 

 

<ClientEvents OnRowDblClick="RowDblClick" OnPopUpShowing="PopUpShowing" />

 

 

<Selecting AllowRowSelect="True" EnableDragToSelectRows="False" />

 

 

</ClientSettings>

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 30 Jun 2009, 04:37 AM
Hello,

Are you perfroming the Update/insert operation manually or automatically? If you are performing the operation in code behind(manually), then set the AllowAutomaticInserts/Updates to false and check if it helps close the edit popup form.

You may also test whether setting explicitly e.Item.Edit = false from within the UpdateCommand handler makes a difference, when using custom update code.

Thanks
Princy.
0
hubert
Top achievements
Rank 1
answered on 30 Jun 2009, 01:44 PM

Thanks so much Princy...it works!

Hubert

 

 

 

Tags
Grid
Asked by
hubert
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
hubert
Top achievements
Rank 1
Share this question
or