Posted 22 Jun 2013 Link to this post
<
telerik:GridTemplateColumn
UniqueName
=
"tcAxis"
HeaderText
"Axis"
>
ItemTemplate
asp:Label
ID
"lblAxis"
runat
"server"
></
</
EditItemTemplate
asp:DropDownList
"ddlAxis"
asp:ListItem
Text
"--Select--"
Value
"PrimaryB"
"PrimaryT"
"SecondaryT"
"SecondaryB"
asp:RequiredFieldValidator
"rfvAxis"
ErrorMessage
"*"
ControlToValidate
InitialValue
"tcIsSameAxis"
"Is Same Axis"
asp:CheckBox
"cbIsSameAxisDisplay"
Enabled
"false"
/>
"cbIsSameAxis"
Posted 24 Jun 2013 Link to this post
telerik:RadGrid
"RadGrid1"
OnItemCreated
"RadGrid1_ItemCreated"
MasterTableView
Columns
"DropDownList1"
"CheckBox1"
protected
void
RadGrid1_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
GridEditableItem item = e.Item
as
GridEditableItem;
DropDownList ddl = (DropDownList)item.FindControl(
);
CheckBox ck = (CheckBox)item.FindControl(
RadGrid1.Controls.Add(
new
LiteralControl(
"<script type='text/javascript'>window['NameId'] = '"
+ ddl.ClientID +
"';window['NameId2']= '"
+ ck.ClientID +
"';</script>"
));
ddl.Attributes.Add(
"onChange"
,
"return OnSelectedIndexChange();"
}
<script type=
"text/javascript"
function
OnSelectedIndexChange()
var
Names = document.getElementById(window[
'NameId'
]);
Names2 = document.getElementById(window[
'NameId2'
(Names.value ==
)
Names2.disabled =
true
;
return
false
</script>
Posted 19 Sep 2017 Link to this post
Hi All,
I have a scenario in which we have drop down list which is outside of rad grid and inside rag grid we have many controls.
on select index change of this drop down list which is outside of rag grid i want to refresh the data source of one control which is inside rad grid without losing the data of other controls of rag grid.
Can you please suggest how this can be achieved?