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

Quick close of Popup Edit From possible?

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Per
Top achievements
Rank 1
Per asked on 19 Oct 2010, 09:23 PM
Hi

I'm using a RadGrid with a Popup Edit Form.
The RadGrid is using AJAX.

When I click the cancel button in the Popup Edit From, the RadGrid does a AJAX refresh that takes about a second to complete.
The problem is that the Popup Edit Form does not close until the AJAX update, of the RadGrid, is complete.

I want the Popup windows close directly when I click the cancel button or the X (in the upper right corner of the popup) and then the RadGrid can refresh (only on insert or update).
Is this possible?

Why does the Radgrid tries to update itself when I click cancel (there no need for a refresh) ?

Regards
Per

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 25 Oct 2010, 09:47 AM
Hello Per,

By design RadGrid requires rebind when its InitInsert, Update and some other commands are fired. The new HTML output is rendered after the command is processed and that is why you see some delay between firing the command and refreshing the grid state.

One option to hide the popup form before the state is refreshed is to use some Javascript. I have attached a small sample that demonstrates this approach. Please give it a try and let me know how it works on your side.

Regards,
Martin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Per
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or