Reset RadDataBoundListBox

2 posts, 0 answers
  1. Davut
    Davut avatar
    2 posts
    Member since:
    Jun 2014

    Posted 08 Jun 2014 Link to this post

    hi, this is my code

    when i click button to load different url or data into RadDataBoundListBox but  every time it is load same data

    i wan to reset  or delete old data

    i searched and visited  every page Telerik forum  but i could not find

    i am new to C# windows phone 8

    please can some one give me some sample  or can tell me how can i reset or delete old data when click button please

    thank you



    public void getMainData()
            {

                string mainUrlData = "http://www.mydomain.com/app.json";

                WebClient wc = new WebClient();
                wc.DownloadStringCompleted += wc_DownloadStringCompleted;
                wc.DownloadStringAsync(new Uri(mainUrlData));
               }


            void wc_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
            {
                try
                {
                    string result = e.Result.ToString();
                    JsonConvert.PopulateObject(result, PopulateData);
                    NewsList.ItemsSource = PopulateData;
                }
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 11 Jun 2014 Link to this post

    Hi Davut,

    I have attached a small example, showing this.

    Best regards,
    Ves
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
Back to Top