AR
Anupama Roy
Syncfusion Team
March 22, 2006 02:13 PM UTC
Hi Rajani Kanth,
Q1 :For normal state storage and retrieval it is advisable to use the AutoComplete.SaveCurrentState() and AutoComplete.LoadCurrentState() methods
and if you do not specify any parameter in SaveCurrentState(),then the values are getting saved in Registry,in Software\\Syncfusion\\AutoComplete .
However,If you specify a category name,then the values will be stored under that name.
Also,in SaveCurrentState() ,you can write the history information to the persistence medium specified by the "mode" parameter and at the path specified by the "persistpath" parameter.
For eg:
using Syncfusion.Runtime.Serialization; // For AppStateSerializer
using Microsoft.Win32; // For RegistryKey
RegistryKey regKey = Registry.CurrentUser;
regKey = regKey.CreateSubKey("Software\\TestAutoFolder");
serializer =new AppStateSerializer (SerializeMode.WindowsRegistry,regKey);
this.autoComplete2.SaveCurrentState(serializer);
Console.WriteLine (serializer.SerializationPath);
Q2: Other than Windows registry we have different modes like XMLFile,binaryFile etc to save values as history and defenitly the size and number of items to be saved is not a point here.
Q3: Inorder to reset History,you can call ResetHistory method of AutoComplete.
Please let me know if need furthur assistance.
Thanks,
Anu.