This is a migrated thread and some comments may be shown as answers.

Reset RadDataBoundListBox

1 Answer 36 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Davut
Top achievements
Rank 1
Davut asked on 08 Jun 2014, 08:34 PM
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;
            }

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 11 Jun 2014, 07:00 AM
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.

 
Tags
DataBoundListBox
Asked by
Davut
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or