We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AutoComplete - Set History Parameters

Thread ID:





42194 Mar 22,2006 10:37 AM UTC Mar 22,2006 02:13 PM UTC WinForms 1
Tags: Tools
Badri Rajani Kanth
Asked On March 22, 2006 10:37 AM UTC

HI, We are using V AutoComplete control. We havent asscociated any external datasource to AutoComplete control. Just storing where ever the control stores(I guess windows folders/registry) Can you plz tell me 1. Where and how exactly is the history storage in windows? If it is a file, can I change the location? 2. What is the max no/size of history items per AutoComplete control? 3. By default, how long(duration) each history item is stored? History items are to be reset mannualy only or will be reset automatically using any timer event? Rgds Rajani Kanth

Anupama Roy [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon