Edit this page

Serialize/Deserialize Filters

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

private void radButton1_Click(object sender, EventArgs e)
{
    radDataFilter1.SaveXML("Test.xml");
}

Private Sub radButton1_Click(ByVal sender As Object, ByVal e As EventArgs)
    RadDataFilter1.SaveXML("Test.xml")
End Sub

LoadXML

private void radButton2_Click(object sender, EventArgs e)
{
    radDataFilter1.LoadXML("Test.xml");
}

Private Sub radButton2_Click(ByVal sender As Object, ByVal e As EventArgs)
    RadDataFilter1.LoadXML("Test.xml")
End Sub