Hello,
I am using a Grid with a custom filter column as described in the demo http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx
The problem I have is that when I turn off the viewstate for the grid the event below does not fire in the event chain.
Is this a bug in the grid, my only solution is to use viewstate but this is a large gird.
I have also notcied that if the viewstate is switched off you can not change page with the page number buttons and can only use the left and right page buttons.
If I turn on view state then it works fine. I have tried setting the selectedvalue in the "protected override void SetupFilterControls(TableCell cell)" method as follows, but all that does is maintain the selectedvalue during postback and does not cause the rcBox_SelectedIndexChangedevent to fire. You can see from the code below I tried to fire the Filter command but it is too early and causes other problems.
I am using a Grid with a custom filter column as described in the demo http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx
The problem I have is that when I turn off the viewstate for the grid the event below does not fire in the event chain.
private
void
rcBox_SelectedIndexChanged(
object
sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
((GridFilteringItem)(((RadComboBox)sender).Parent.Parent)).FireCommandEvent(
"Filter"
,
new
Pair());
}
var formvalue = HttpContext.Current.Request.Form[rcBox.UniqueID];
if
(!
string
.IsNullOrEmpty(formvalue))
{
rcBox.SelectedValue = formvalue;
//((GridFilteringItem)(rcBox.Parent.Parent)).FireCommandEvent("Filter", new Pair());
}
Is this a bug in the grid, my only solution is to use viewstate but this is a large gird.
I have also notcied that if the viewstate is switched off you can not change page with the page number buttons and can only use the left and right page buttons.