Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Closed Issue: Issue setting corners when creating RoundedCornersExtender Dynamically [11165]

$
0
0
When I create the RoundedCornersExtender dynamicaly it doesn't seem to be possible to set the corners to anything other than All. In the below example, the panel just disappears.

Panel pnl = new Panel();
pnl.ID = "pnl";
pnl.Attributes["width"] = "100%";
pnl.CssClass = "controlHeader";
pnl.Controls.Add(new LiteralControl("TESTING"));

form1.Controls.Add(pnl);

AjaxControlToolkit.RoundedCornersExtender rce = new AjaxControlToolkit.RoundedCornersExtender();
rce.ID = "rce";
rce.TargetControlID = "pnl";
//rce.Corners = AjaxControlToolkit.BoxCorners.All; - this works!
rce.Corners = AjaxControlToolkit.BoxCorners.Top;
form1.Controls.Add(rce);
Comments: Workaround found, see comments.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>