New to Telerik UI for WinForms? Start a free 30-day trial
Serialize/Deserialize Filters
Updated over 6 months ago
You can use the SaveXML and LoadXml methods to save the current expression either in a file or in a stream. The following snippets are showing how you can save or load the current state.
SaveXML
C#
private void radButton1_Click(object sender, EventArgs e)
{
radDataFilter1.SaveXML("Test.xml");
}
LoadXML
C#
private void radButton2_Click(object sender, EventArgs e)
{
radDataFilter1.LoadXML("Test.xml");
}