The reason which causes the Name
property to return an empty string is that RadButtonElement
does not serialize the Name
property value in the designer. The Name
value that is set is only for its instance name. So you can identify a button by its unique instance name. Please refer to the following snippet:
| this.radButtonElement1.Enabled = false;
| this.radButtonElement2.Enabled = false;
| this.radButtonElement5.Enabled = false;
Serializing the Name
property in the designer will be addressed for one of our future releases.
What I can notice from your last post is that you are using Enabled
properties, but I want to warn you that they are not contrary to each other. This means that when you first set the Visibility
and then set Enabled
, your button will not show. Instead, you should use Enabled
One last thing I would recommend is directly accessing RadButtonElements
instances like shown in the code snippet above.
If you need additional assistance, do not hesitate to contact me.
the Telerik team