DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > RadAutoCompleteBox with Telerik RadControls for Windows Phone

RadAutoCompleteBox with Telerik RadControls for Windows Phone

Senthil Kumar user avatar by
Senthil Kumar
·
Apr. 05, 12 · Mobile Zone · Interview
Like (0)
Save
Tweet
5.95K Views

Join the DZone community and get the full member experience.

Join For Free

RadAutoCompleteBox is an Autocomplete textbox that is part of the RadControls for Windows Phone. The RadAutoCompleteBox provides a textbox along with the additional functionality of providing the suggestion based on the characters the user types in the textbox.

To add the RadAutoCompleteBox to your Windows Phone App , you need to include the following dll’s to your project:

  • Telerik.Windows.Core.dll
  • Telerik.Windows.Controls.Input.dll

To add the RadAutoCompleteBox to your Windows Phone Page, you can add the following XAML code to your Windows Phone page:

<telerikInput:RadAutoCompleteBox Height="79" Name="radAutoCompleteBox1" Text="TextBox" Width="414" />

If you want to add the RadAutoCompleteBox via Code behind, you can create and instance of RadAutoCompleteBox like the one below:

RadAutoCompleteBox radAutoCompleteBox1 = new RadAutoCompleteBox();

You should also add the following namespace in your codebehind file:

using Telerik.Windows.Controls;

Now comes the important aspect of the RadAutoCompleteBox – Providing Suggestions.

Once you have added the RadAutoCompleteBox to the Windows Phone Page , you need to set the SuggestionsSource property so that the related suggestions are displayed when the user enters the characters in the textbox.

private ListGetSuggestions()
{
   List MobilePhoneModel = new List();
   MobilePhoneModel.Add("HTC Mozart");
   MobilePhoneModel.Add("HTC HD7");
   MobilePhoneModel.Add("Nokia Lumia 800");
   MobilePhoneModel.Add("Nokia Lumia 710");
   MobilePhoneModel.Add("Nokia Lumia");
   return MobilePhoneModel;
}

radAutoCompleteBox1.SuggestionsSource = GetSuggestions();

 

Windows Phone

Published at DZone with permission of Senthil Kumar, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • 3 Predictions About How Technology Businesses Will Change In 10 Years
  • Upsert in SQL: What Is an Upsert, and When Should You Use One?
  • Why to Implement GitOps into Your Kubernetes CI/CD Pipelines
  • What Is Lean Software Development

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo