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

Closing edit popup causes a postback

3 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 30 Jan 2013, 07:55 AM
Hi,
When closing the edit popup in grid, you should just close it, not cause a postback. Or is there a reason why it causes a postback?

Regards,
Mattias

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 01 Feb 2013, 05:31 AM
Hello Mattias,

A postback will be made if you are using server binding because the Grid needs to be rendered again. If you wish to avoid it then you should use server binding.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mattias
Top achievements
Rank 1
answered on 01 Feb 2013, 07:45 AM
You mean I shouldn't use server binding?
But that doesn't make sens, the grid is rendered in the background so it doesn't need to be rendered again.
If I click save button in the popup, then it make sens. But I mean clicking on cancel button or cross icon in title bar.

/Mattias
0
Daniel
Telerik team
answered on 04 Feb 2013, 08:27 PM
Hello Mattias,

Yes, the Grid is rendered in the background but the mode parameter that is used by the Grid to determine if it should be rendered in edit mode, will also be added to the links used for the navigation. Thus the postback is needed so that the links are rendered again with the correct URL.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Mattias
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Mattias
Top achievements
Rank 1
Share this question
or