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

RadGrid Popup Edit Form with RadWindow Issue

2 Answers 152 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Asa'ad
Top achievements
Rank 1
Asa'ad asked on 28 Jun 2011, 07:37 AM
Hi All,
I have a page in which i am using the RadGrid to get data from database using the Advanced Databinding and custome edit form shown as popup for inserting and updating the data.

The update and insert are done using the UpdateCommand and InsertCommand events.

Everything is  ok...

BUT

While Updating any record or inserting a new one, and before completing the update or insert, i need to show a message for the user depending on database check for some conditions....
 
I used the RadWindowManager on the page that holds the grid...

The window is shown correctly depending on the conditions...BUT i need to keep the popup edit form open after showing and  closing this message window... in my page the popup is closed directly  when showing the Window message....


i searched the forums and i found the this can be done if i set the  

 

e.Item.IsInEditMode =

 

true

 

in the ItemUpdated event of the grid; but this event will not fire in my case...since i knew that this event will fire only in case of automatic operations is enabled.


so my question is how to keep the popup edit form open while updating???

any comment will be helpfull...

thanks in advanced...

Asa'ad...



2 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 01 Jul 2011, 12:28 PM
Hello Asa'ad,

You can try setting e.Canceled to true in UpdateCommand event handler to keep the edit form open. Give this suggestion a try and let me know how it goes.

Best wishes,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start 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.

0
Asa'ad
Top achievements
Rank 1
answered on 03 Jul 2011, 08:08 AM
Hi Telerik Admin...

Thanks for the reply...
The e.Canceled = true has solved my problem....the popup form template is still open while showing the message during the update command...

Thank you again for your help...

Asa'ad...
Tags
Grid
Asked by
Asa'ad
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Asa'ad
Top achievements
Rank 1
Share this question
or