Closing edit popup causes a postback

4 posts, 0 answers
  1. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 30 Jan 2013 Link to this post

    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
  2. Daniel
    Admin
    Daniel avatar
    2230 posts

    Posted 31 Jan 2013 Link to this post

    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!
  3. Mattias
    Mattias avatar
    263 posts
    Member since:
    Aug 2012

    Posted 01 Feb 2013 Link to this post

    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
  4. Daniel
    Admin
    Daniel avatar
    2230 posts

    Posted 04 Feb 2013 Link to this post

    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!
Back to Top