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

[Solved] Popup Edit form

3 Answers 149 Views
Grid
This is a migrated thread and some comments may be shown as answers.
PNuT
Top achievements
Rank 2
PNuT asked on 05 May 2008, 10:01 PM
I am using the popup edit form for inserts and updates. The issue I am experiencing is that in the case of Insert, the popup does not close following the insertion but it does in the case of Edit. Same form. Different result. Is there an extra setting I need somewhere to make this happen?

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 May 2008, 07:38 AM
Hi PNut,

Try the following line of code to close the Insert form after performing the insert operation.

CS:
  e.Item.OwnerTableView.IsItemInserted = false; 


Thanks
Princy.
0
PNuT
Top achievements
Rank 2
answered on 06 May 2008, 04:27 PM
Thanks for the reply Princy however this did not fix my issue. The popup immediatley closes and reopens a new, blank popup.
0
Sebastian
Telerik team
answered on 07 May 2008, 10:14 AM
Hi PNuT,

Can you please provide a live url where this problem can be observed? Or better yet, we will appreciate if you isolate a stripped working version of your project, demonstrating the issue, and send it attached to a formal support ticket. We will examine your complete code logic and will advice you further.

Just a shot in the dark - can it be that you enabled automatic insert for the grid (AllowAutomaticInserts = true) and do not have data source control assigned? This may cause the insertion form to remain open.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
PNuT
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
PNuT
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or