I have RadLisBox custom scripts and am putting focus on ClientLoad()
Something like
Function OnClientLoad(sender, eventsArgs)
{
var RadListBox = $find('radlistbox.clientid')
RadListBox.on('focus', function (e) {
var index = $('#' + e.target.closest("li").id).index();
var item = radListControl.get_items().getItem(index);
if (item) {
radListControl.clearSelection();
radListControl._activateItem(item, true);
item.set_selected(true);
}
});
}
item.set_selected(true) give me an error on _updatevalidationfield()
Can I override this code somehow?
Edit: There is custom validator attached to this. Think the error is coming from it
EDIT2: I think I figured it out (maybe?). The items within the control are disappearing after some time - probably postback event from validator. I had sort of singleton in place cause I did not need to update the instance of the control. After removing it at least at this point it seems ok.
What would you like to achieve with the focus? The code is incorrect and is erroring out.