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

Update ONLY one control in Sharepoint Webpart

2 Answers 109 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 21 Jan 2011, 02:32 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetoslav
Telerik team
answered on 26 Jan 2011, 09:02 AM
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.
0
Jan
Top achievements
Rank 1
answered on 26 Jan 2011, 04:46 PM
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
Tags
Ajax
Asked by
Jan
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Jan
Top achievements
Rank 1
Share this question
or