Hi, I was wondering if there was a way to add the radajaxmanager specifically to the sort command of a radgrid. I am pretty sure this has to be done pro grammatically using Vb.net or C#. For example here is an example where I specifically added the radajax functionality to a LinkButton control within a radgrid programmatically
using VB.net.....
Protected Sub Radgrid_AddRemoveProvider_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Radgrid_AddRemoveProvider.PreRender
For Each item As GridDataItem In Radgrid_AddRemoveProvider.MasterTableView.Items
Dim btnAddProvider As LinkButton = DirectCast(item.FindControl("btnAddProvider"), LinkButton)
Dim btnRemoveProvider As LinkButton = DirectCast(item.FindControl("btnRemoveProvider"), LinkButton)
'Add radajax functionality to only specific controls within radgrid
radAjaxManager1.AjaxSettings.AddAjaxSetting(btnAddProvider, Radgrid_AddRemoveProvider)
radAjaxManager1.AjaxSettings.AddAjaxSetting(btnRemoveProvider, Radgrid_AddRemoveProvider)
Next
End Sub
Since the 'Sorting' within a radgrid is not a control, I do not know how to add it to the ajaxmanager. Please Assist...
Protected Sub Radgrid_AddRemoveProvider_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Radgrid_AddRemoveProvider.PreRender
For Each item As GridDataItem In Radgrid_AddRemoveProvider.MasterTableView.Items
Dim btnAddProvider As LinkButton = DirectCast(item.FindControl("btnAddProvider"), LinkButton)
Dim btnRemoveProvider As LinkButton = DirectCast(item.FindControl("btnRemoveProvider"), LinkButton)
'Add radajax functionality to only specific controls within radgrid
radAjaxManager1.AjaxSettings.AddAjaxSetting(btnAddProvider, Radgrid_AddRemoveProvider)
radAjaxManager1.AjaxSettings.AddAjaxSetting(btnRemoveProvider, Radgrid_AddRemoveProvider)
Next
End Sub
Since the 'Sorting' within a radgrid is not a control, I do not know how to add it to the ajaxmanager. Please Assist...