Please try with the below code snippet.
- If your grid ajaxify with Telerik Ajax manager.
JS
<script type="text/javascript">
function onRequestStart(sender, args) {
if (args.get_eventTarget().indexOf("filenamelinkbutton") >= 0) {
args.set_enableAjax(false);
}
}
</script>
ASPX
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="onRequestStart">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
- If your grid ajaxify with update panel.
ASPX
<triggers>
<asp:PostBackTrigger ControlID="filenamelinkbutton" />
</triggers>
OR
C#
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridNestedViewItem)
{
GridNestedViewItem nestedItem = (GridNestedViewItem)e.Item;
LinkButton filenamelinkbutton = (LinkButton)nestedItem.FindControl("filenamelinkbutton");
ScriptManager.GetCurrent(Page).RegisterPostBackControl(filenamelinkbutton);
}
}