Hi,
I am trying to use the below code to focus on a RadNumericTextBox contained within the item template of a panel bar item when the item expands.
The javascript finds the control correctly but the focus call does nothing. Can anyone please give me any info on why the focus does not land in the control?
Thanks
Gavin.
function
OnItemExpand(sender, args)
{
var
itm = args.get_item();
if
(itm.get_value() ==
"9"
)
{
var
ctrl = itm.findControl(
"txtEpiID"
);
if
(ctrl !=
null
)
{
ctrl.focus();
}
}
}