I have a RadDatePicker where I have a custom attribute
<telerik:RadDatePicker ID="RadDatePicker_MinDate" runat="server" AutoPostBack="false" CssClass="InputDateField" variable="mindate">
<ClientEvents OnPopupOpening="DatePickerOnFocus"
OnDateSelected="RadDatePicker_MinDate_DateSelected" />
<DateInput runat="server"
ClientEvents-OnFocus="DatePickerOnFocus">
</DateInput>
</telerik:RadDatePicker>
The clientside function DatePickerOnFocus:
function DatePickerOnFocus(sender, eventArgs) {
var id = sender.get_element().id + "_wrapper";
var wrapper = $get(id);
var var1 = wrapper.getAttribute("variable");
.......
}
This works fine for the event OnPopupOpening.
For the event ClientEvents-OnFocus (of the DateInput) this doesn't work. I get a null value when reading the custom attribute.
How can I get the custom attribute in the event ClientEvents-OnFocus of the DateInput?
Paul