Hello !
I'm trying to ajaxify the filter textboxes of my grid, and only them, so I don't want to use the following option :
Ideally, I would like to use the solution below, but the filter textboxes don't have a defined Id, so this is not an option either :
The only option I found is this one :
But for some reason it's not working, when I set a filter on my "MyfirstColumn" the entire page is reloaded, the ajaxsetting seems to be completely ignored by the process.
Any idea of what could be the reason ?
Thanks for your help !
I'm trying to ajaxify the filter textboxes of my grid, and only them, so I don't want to use the following option :
<
telerik:AjaxSetting
AjaxControlID
=
"Grid"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"Grid"
LoadingPanelID
=
"LoadingPanel2"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
Ideally, I would like to use the solution below, but the filter textboxes don't have a defined Id, so this is not an option either :
<telerik:AjaxSetting AjaxControlID=
"FilterTextBoxId"
>
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID=
"Grid"
LoadingPanelID=
"LoadingPanel2"
/>
</UpdatedControls>
</telerik:AjaxSetting>
The only option I found is this one :
protected
void
GridOnItemCreated(
object
sender, Telerik.Web.UI.GridItemEventArgs e)
{
if
(e.Item
is
GridFilteringItem)
{
GridFilteringItem dataItem = e.Item
as
GridFilteringItem;
TextBox filterBox = dataItem[
"MyfirstColumn"
].Controls[0]
as
TextBox;
AjaxManager.AjaxSettings.AddAjaxSetting(filterBox, Grid, LoadingPanel2);
}
}
But for some reason it's not working, when I set a filter on my "MyfirstColumn" the entire page is reloaded, the ajaxsetting seems to be completely ignored by the process.
Any idea of what could be the reason ?
Thanks for your help !