usercontrol loaded in page view

4 posts, 0 answers
  1. Webster Velasco
    Webster Velasco avatar
    114 posts
    Member since:
    Jun 2012

    Posted 26 Jan 2010 Link to this post

    hi

    is it possible to do edit, insert and delete in data grid from a usercontrol which is loaded in a pageview?

    because when i tried to edit after doing the post back my usercontrol which contain the data grid was gone

    thanks a lot

    regards
    webster
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 27 Jan 2010 Link to this post

    Hello Webster,

    Dynamically added controls are not preserved and should be added on every postback in Page_Load event.

    Kind regards,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Poul Henningsen
    Poul Henningsen avatar
    194 posts
    Member since:
    May 2006

    Posted 27 Jan 2010 Link to this post

    hey, Webster, I think I've alreeady replied your question in this forum... Or maybe you don't wanna listen :) well, you should know then - you cannot neglect the page life cycle :).

    BTW, the demo I have already pointed to, shows the usage of the multipage RageViewCreated method. The UserControls should be added in this method
  5. Webster Velasco
    Webster Velasco avatar
    114 posts
    Member since:
    Jun 2012

    Posted 28 Jan 2010 Link to this post

    that demo isnt what im looking for..

    because on that radgrid, there is no edit or insert command

    and since im not good in telerik

    i dnt have any idea how to do so..

    anyway how can i preserved the usercontrol?

    i need a the code plz
Back to Top