Hi everyone,
I am obviously not seeing something here. I have a simple grid instance with its the necessary ajaxsettings declared:
Ajax Setting for grid:
Grid instance: (allowsort and allowpaging both = true)
Assignment of data:
And from the documentation, it says the OnNeedDataSource event will fire after a page or sort event, so I have a handler:
The ajax call is happening, the event handler is being hit, but nothing happens. No sort, no paging.
Feedback would be appreciated. Version of control suite: v2010.2.929.40
Cheers,
Derek
I am obviously not seeing something here. I have a simple grid instance with its the necessary ajaxsettings declared:
Ajax Setting for grid:
<
telerik:RadAjaxManager
runat
=
"Server"
ID
=
"RadAjaxManager1"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"UserView"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"UserView"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
Grid instance: (allowsort and allowpaging both = true)
<
telerik:RadGrid
ID
=
"UserView"
GridLines
=
"None"
runat
=
"server"
AllowPaging
=
"True"
AutoGenerateColumns
=
"False"
Skin
=
"Windows7"
AllowSorting
=
"true"
Width
=
"722"
OnNeedDataSource
=
"UserViewNeedDataSource"
PageSize
=
"20"
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
/>
<
MasterTableView
Width
=
"722"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"FullName"
HeaderText
=
"Name"
SortExpression
=
"FullName"
UniqueName
=
"FullNameColumn"
/>
<
telerik:GridBoundColumn
DataField
=
"UserName"
HeaderText
=
"User Name"
SortExpression
=
"UserName"
UniqueName
=
"AdUserNameColumn"
/>
<
telerik:GridBoundColumn
DataField
=
"Domain"
HeaderText
=
"Domain"
SortExpression
=
"Domain"
UniqueName
=
"AdDomainColumn"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Assignment of data:
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!IsPostBack)
{
GetUsers();
}
}
private
void
GetUsers()
{
UserView.DataSource = _client.GetUsers(
null
);
}
And from the documentation, it says the OnNeedDataSource event will fire after a page or sort event, so I have a handler:
protected
void
UserViewNeedDataSource(
object
sender, GridNeedDataSourceEventArgs e)
{
GetUsers();
}
The ajax call is happening, the event handler is being hit, but nothing happens. No sort, no paging.
Feedback would be appreciated. Version of control suite: v2010.2.929.40
Cheers,
Derek