开发者

Microsoft Chart Controls: how to set chart width to width of surrounding div?

开发者 https://www.devze.com 2023-04-04 22:58 出处:网络
Is it possible that a chart\'s width is inherited from its surrounding div? How to do this (in the C# code behind or the ASP code)开发者_如何学编程?I don\'t believe you can inherit the charts width fr

Is it possible that a chart's width is inherited from its surrounding div? How to do this (in the C# code behind or the ASP code)开发者_如何学编程?


I don't believe you can inherit the charts width from a Div, I'd set both using the codebehind.

You'll only have to wire this up once, per div and chart and then you can be assured that any future width changes will flow through to the chart.

0

精彩评论

暂无评论...
验证码 换一张
取 消