or
<
EditFormSettings
EditFormType
=
"Template"
>
<
FormTemplate
>
<telerik:RadButton
ID
=
"btnIcon"
runat
=
"server"
OnClick
=
"btn_Click"
OnClientClicking
=
"OnClientClicking"
Text
="Start"
</
telerik:RadButton
>
</
FormTemplate
>
</
EditFormSettings
>
Hi,
Above only example which releated to my scenario.
I have RadButton in <EditFormSettings> . I tried to find control using FinControl in Item_DataBound by following code and disable RadButton.
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
{
GridEditableItem item = (GridEditableItem)e.Item;
RadButton btnStart
= (FileUpload)item.FindControl(
"btnStart"
);
btnStart.Enabled = false;
}
when i debug even it is not entering (if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
) . I think i am missing some thing.
Could you please let me know , how to find control in code behind and disable control.
Thanks,
Ravikiran
<
telerik:RadMaskedTextBox
ID
=
"txtbox"
class
=
"numeric"
PromptChar
=
""
SelectionOnFocus
=
"SelectAll"
runat
=
"server"
Width
=
"44px"
MaxLength
=
"4"
Mask
=
"####"
DisplayMask
=
"****"
DisplayText
=
""
TabIndex
=
"4"
HideOnBlur
=
"True"
AutoCompleteType
=
"Disabled"
></
telerik:RadMaskedTextBox
>
var
treeView = $find(RadTreeViewClientId);
var
nodes = treeView.get_selectedNodes();
for
(
var
i = 0; i < nodes.length; i++) {
console.log(
"SelectedNode "
+ i +
": "
+ nodes[i].get_text());
}