Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何将自定义属性添加到TelerikColumnSeries的控件属性中?RadHtmlChart
ColumnSeries
RadHtmlChart
然后我想在 asp.net 页面后面的代码中访问这个属性来设置,Value但我没有在 asp.net 页面上显示 to 的CustomeAttribute值RadHtmlChart。
Value
CustomeAttribute
<telerik:ColumnSeries CustomeAttribute=""></telerik:ColumnSeries>
你不能。服务器属性在控件的类中严格定义,添加代码无法识别的您自己的属性可能会导致服务器错误。如果您需要有关客户端的信息,您可以将其存储在隐藏字段、隐藏面板或通过 ScriptManager.RegisterStartupScript() 方法从服务器注入自定义 JavaScript 对象。