Feb 03, 2011, 10:34 AM
This operation requires an Ajax request
Guys
I have a standard grid setup with a load of filters. The filters can be called without a hitch once the form is loaded from various button etc.
However when I attempt to call the filters in page load from a value in a query string I get the following error "This operation requires an Ajax request".
It fails on the set value
I have a standard grid setup with a load of filters. The filters can be called without a hitch once the form is loaded from various button etc.
However when I attempt to call the filters in page load from a value in a query string I get the following error "This operation requires an Ajax request".
It fails on the set value
private void SetGroupFilter(Boolean _Clear)
{
ListFilter _sfGroup = (ListFilter)GridFilters1.Filters[2];
if (_GroupFilter.Value == "" || _Clear == true)
{
_GroupFilter.Clear();
_sfGroup.SetActive(false);
}
else
{
// Create the key pair
string[] _Values = new string[2];
_Values[0] = _GroupFilter.Value.ToString();
_Values[1] = _GroupFilter.Value.ToString();
_sfGroup.SetValue(_Values);
_sfGroup.SetActive(true);
}
}