Sunday, March 11, 2012

Is it possible to use the roundedCorners extender with a webpart ?

Put the extender right next to the textbox.

<webpart>

<asp:TextBox id="SearchBox1" ... />

<atlasToolkit:RoundedCornersExtender ... >

<atlasToolkit:RoundedCornersExtenderProperties TargetControlID="SearchBox1" .../>

</atlasToolkit:RCE>

</webpart>


Sorry, I meant to control the corners of a webpart i.e. instead of defining a chrome template for the webpart itself, as opposed to the contents.

Paul


I haven't tried this but technically there shouldn't be any reason why this didn't work. There isn't anythiing special about web parts.

However, RoundedCorners is a fairly invasive behavior. If the web-parts code is very specific about how it expects child elements to be present, there could be problems.

In any case, the error you're seeing is because the Extender can't find the control it's extending. Make sure the extender is at the same naming scope level as SearchBox1.


I'm also trying to do something similar with the dropshadowextender.

I would like to be able to do something like this:

<asp:WebPartZone ID="CenterZone" AllowLayoutChange="false" Width="100%" runat="server">
<ZoneTemplate>
<abc:CustomControl ID="CustomControl1" Title="Some Custom Control" runat="server" /
<atlasToolkit:DropShadowExtender ID="DropShadowExtender1" runat="server">
<atlasToolkit:DropShadowProperties ID="DropShadowProperties1" TargetControlID="CustomControl1" Width="5" Rounded="false" Opacity=".75" TrackPosition="false" />
</atlasToolkit:DropShadowExtender
</ZoneTemplate>
</asp:WebPartZone
when i try to test this, i receiveTarget control with ID 'CustomControl1' could not be found for extender 'DropShadowExtender1'.

were you able to get this to work?

thanks,

jared

I have this same problem when trying to apply a collsible panel extender inside a webpart. No controls are found.


I think this has to do with the fact that my Extender is outside my web part zone. I did that so I could group all the properties into one extender. However from what I have been reading on the forums controls that are not a child cannot be found?
Yes that could - what happens when you move your extender inside the zone?
I'm also unable to get this to work, whether the roundedcorners extender is inside or outside the webpartzone. NiftyCorners also doesn't seem to work with web parts, has anyone had any success using any non-image method for rounding the corners of web parts?
bump

No comments:

Post a Comment