Only first row RadButton in RadGrid can fire, please help.
Thanks
In Grid:
In RadAjaxManager:
}
Thanks
In Grid:
<
telerik:GridTemplateColumn
HeaderStyle-Width
=
"20%"
UniqueName
=
"ButtonSet"
>
<
ItemTemplate
>
<
telerik:RadButton
runat
=
"server"
id
=
"Button1"
CommandName
=
"Action1"
AutoPostBack
=
"true"
CausesValidation
=
"false"
OnClientClicked
=
"clientclick"
></
telerik:RadButton
>
<
telerik:RadButton
runat
=
"server"
id
=
"Button2"
CommandName
=
"Action2"
AutoPostBack
=
"true"
></
telerik:RadButton
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
In RadAjaxManager:
<
telerik:AjaxSetting
AjaxControlID
=
"Button1
"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"label"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
if (e.CommandName == "Action1")
{
//do sth
}
else if (e.CommandName == "Action1")
{
//do sth}