Ken Falk - Software Developer

Login
  My Approach     Services     Contact     Experience     Resume     Blog    
 

Telerik Controls Inside Update Panel - 5/10/2010

Today I modified an existing page that had several Telerik controls. I put the controls inside an UpdatePanel and set them to be Visible = "False". I was setting the controls to be Visible on client side postback (using the UpdatePanel). After making this change, the controls lost their formatting and looked terrible.

As always, the internet supplied the answer. It seems that the standard Update Panel is not totally compatible with Telerik controls. When the controls become visible on client side post back, the controls are not able to modify the head tag to register the scripts and styles propertly.

One simple work around to this problem is to just stick one of the Telerik controls outside the UpdatePanel and set it to style="display:none" so that the script and style references stay in place. This worked great.