Aug 04, 2014, 12:03 PM
[CLOSED] setValue for FilterHeader in code behind
Hi,
In the example https://examples2.ext.net/#/GridPane...ader/Overview/ there is a button where a filter is set.
Is it possible to use setValues in the C# or VB code just like in this javascript code?
I tried somthing like the following code but no success:
Purpose is to apply this in an application where I combined a Gridfilter with Infinite scrolling. Data come from a mySQL database table and is bound in the pageload. But it is also neccesary to insert records. After inserting a record and binding the data again the filter is cleared. So I want to re-apply the filter.
Hans
In the example https://examples2.ext.net/#/GridPane...ader/Overview/ there is a button where a filter is set.
Is it possible to use setValues in the C# or VB code just like in this javascript code?
I tried somthing like the following code but no success:
protected void btnLoadFilter_Click(object sender, EventArgs e)
{
Dictionary<string, object> dict1 = new Dictionary<string, object>();
dict1.Add("Company", "!Inc.");
dict1.Add("Visible",1);
filterheader.SetValue(dict1);
filterheader.ApplyFilter();
}
May be my idea to get this done is too simple? Purpose is to apply this in an application where I combined a Gridfilter with Infinite scrolling. Data come from a mySQL database table and is bound in the pageload. But it is also neccesary to insert records. After inserting a record and binding the data again the filter is cleared. So I want to re-apply the filter.
Hans