Hi ,
I am binding treenodes using webmethod and having following clientitemtemplate
I am showing/hiding input control using javascript.
When I am editing the name in input control it is not accepting space bar (blank space)
I have also tried following solution provided in your forums
OnClientLoad="clientLoad"
function clientLoad(sender) {
$telerik.$("input", sender.get_element()).on('keydown', function (e) {
if (!e) var e = window.event;
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
});
}
Please help for the same
Thanks ,
Somnath
I am binding treenodes using webmethod and having following clientitemtemplate
<
ClientNodeTemplate
>
<
span
id
=
"#=Value#_span"
>#=Text#</
span
>
<
input
type
=
"text"
value
=
"#=Text#"
style
=
"display:none;width:100px;"
id
=
"#=Value#_txtEdit"
></
input
>
</
ClientNodeTemplate
>
I am showing/hiding input control using javascript.
When I am editing the name in input control it is not accepting space bar (blank space)
I have also tried following solution provided in your forums
OnClientLoad="clientLoad"
function clientLoad(sender) {
$telerik.$("input", sender.get_element()).on('keydown', function (e) {
if (!e) var e = window.event;
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
});
}
Please help for the same
Thanks ,
Somnath