Update ONLY one control in Sharepoint Webpart

3 posts, 1 answers
  1. Jan
    Jan avatar
    9 posts
    Member since:
    Nov 2010

    Posted 21 Jan 2011 Link to this post

    Hello Guys,
    Ich read several articles and coded a lot but there is one question which nobody wants to answer i believe!
    I hope someone can help me!

    I have a sharepoint webpart like the one in the Telerik tutorial. When i click a button, the page do not postback completely BUT, every time when i click into any webpart of the page, all webparts will start a new lifecycle. That means every webpart calls its OnInit - CreateChildControl - OnLoad .... method. And AFTER that  the event-handler of the control is called which were clicked. Is there a way that ONLY the handler of the control is called and ONLY the control is updated instead of calling every time all webparts OnInit ..... .?

    Please help me and hopefully answer with NO it is not possible to update only one control IN a webpart or YES it is possible and then please show me how!

    Thank you guys!

  2. Answer
    Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 26 Jan 2011 Link to this post

    Hi Jan,

    SharePoint is a web-form based CMS and, therefore, all the pages hosted within it and all the controls on those pages go through the page life cycle - this is just the way ASP.NET works . So there is NO way to avoid that.

    Hope it helps.

    Best wishes,
    Tsvetoslav
    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.
  3. Jan
    Jan avatar
    9 posts
    Member since:
    Nov 2010

    Posted 26 Jan 2011 Link to this post

    Hi Tsvetoslav ,
    Thank you for your answer. It helps me. Now I'm sure that my kind of using the webparts is the right one.

    kind regards,

    Jan
Back to Top