Hi,
I have added an attribute to a rad button on a rad toolbar.
rtbButton.Attributes.Add("ObjectId", dr("ObjectId").ToString)
I am trying to get the value of this client side on the OnClientButtonClicked event of the toolbar using the following code
var objectId = args.get_item().get_attributes().getAttribute('ObjectId');
alert(objectId);
but the objectId keeps returning undefined.
How can I get a reference to the attribute of the button client side.
Thank You
Tracy
I have added an attribute to a rad button on a rad toolbar.
rtbButton.Attributes.Add("ObjectId", dr("ObjectId").ToString)
I am trying to get the value of this client side on the OnClientButtonClicked event of the toolbar using the following code
var objectId = args.get_item().get_attributes().getAttribute('ObjectId');
alert(objectId);
but the objectId keeps returning undefined.
How can I get a reference to the attribute of the button client side.
Thank You
Tracy