[
)]
{
SNDTextBox()
.Enabled)
))
;
}
Mandatory
get
)
];
s;
else
set
ViewState[
[System.Security.Permissions.
writer)
(Mandatory)
writer.AddAttribute(
);
.AddAttributesToRender(writer);
Hi Sai,
That is correct. Majority of controls in Infragistics.WebUI do not use that feature of WebControl. There are several reasons for that.
Rendering is performed by following call
protected override void Render(HtmlTextWriter output){ ... this.GetRenderer().Render(output);}Where GetRender() returns renderer for specific state of user machine (UpLevel or DownLevel). That renderer renders explicitly to HtmlTextWriter all tags, attributes, scripts, hidden fields, etc..
Those "renderer" classes and members are private, so, extended classes can not modify them and their logic.
Note: custom attributes are rendered by something like
System.Web.UI.AttributeCollection attrs = this.owner.Attributes;foreach(string key in attrs.Keys){ this.w(" "); this.w(key); this.w("=\""); this.w(attrs[key]); this.w("\"");}where w is call to output.Write...
So then how can I add a Property to them?
Gary
Yes. I was loopiing through all Form elements to find it and its not a form element. So i also loop through Table collections and found it.
Thanks Gary
Hi
How about WebCombo. I tried in webcombo and cant seem to get the attributes to work.
Gary,
Would that be an option for you to use WebDropDown instead? Thanks.
WebDropDown does not have the multi-column capability does it? Plus should not any of these controls have the ability to add attributes?
Hello Gary,
I have opened a new customer case for you regarding this.
Thank you for using Infragistics.
1024x768 Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
Sincerely,
Tsvetelina
Developer Support Engineer
Infragistics
www.infragistics.com/support