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.
Unfortunately, activation email could not send to your email. Please try again.

autocomplete view all

Thread ID:

Created:

Updated:

Platform:

Replies:

127739 Dec 6,2016 03:09 AM Dec 8,2016 07:08 AM JavaScript 1
loading
Tags: ejAutoCompleteTextBox
issam
Asked On December 6, 2016 03:09 AM

hi,
i am using the autocomplete widget with an ajax call that return the top 10 products from the server .

is there a way to add a button or a link at the bottom of the Autocomplete popoup to redirect to another page to view all the items ?

thanks and good day .

Rekha J [Syncfusion]
Replied On December 8, 2016 07:08 AM

Hi Issam,   
  
Thanks for contacting Syncfusion Support.   
  
Query1:i am using the autocomplete widget with an ajax call that return the top 10 products from the server .   
Please use “create” event of autocomplete to achieve this. In create event, define Ajax GET method to get the top 10 items from the server on clicking the popup button.   
   
Query2:is there a way to add a button or a link at the bottom of the Autocomplete popup to redirect to another page to view all the items?   
Currently, there is no built-in support for this. So, we suggest that you append the link or button in “open” event of Autocomplete. In open event, you need to get Autocomplete instance and append new “li” item to the suggestion list for adding button at the bottom of Autocomplete. Using AJAX GET returns all the items from the server and redirects to a new page by using window.open method by passing the items in an array.   
  
For your reference, we have created a simple demo available in:   
 
We would like to ensure whether the above sample fulfils your requirement. If not, please share your requirement in detail. We would be happy to assist you further.   
  
Regards,   
Rekha.   
 


CONFIRMATION

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.

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.

;