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

Backgroundworker causes Carousel items to vanish

3 Answers 59 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Jonah
Top achievements
Rank 1
Jonah asked on 05 Mar 2013, 08:38 PM
So I run a background worker to update a progress bar on a certain part of my window, in another part I have a Carousel filled with items. as soon as I change the values of one of the properties bound to the progress bar, the Carousel items vanish. If I go set my selected item to null then set it back to its former value then it will show them again along with the animation of selecting a new item.
Going to post below a screenshot with and without the carousel items.

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 06 Mar 2013, 08:02 AM
Hi Jonah,

Will it be possible to share a bit more information on what you are doing ? Which property do you change ?
Generally, any code-snippets showing what you do would be helpful. 

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Jonah
Top achievements
Rank 1
answered on 06 Mar 2013, 03:05 PM
Ok so I was wrong on what property gets change that causes the carousel to vanish. I call an update method where the selecteditem of the carousel is passed in as a parameter

foreach (var item in SelectedStyleGroup.OrdProducts)

{

ModUpdate.Update_Mods_From_Style_Group_Change(SelectedStyleGroup, item, oe, cn);

Get_Cabinet_Cost(item, SelectedStyleGroup);

CurrentProgress++;

}

ModUpdate is a static class that updates child items of the selected item. The items vanish as soon as the call is made, before any code in the class is run. SelectedStyleGroup is the selecteditem.

0
Maya
Telerik team
answered on 06 Mar 2013, 05:03 PM
Hello Johan,

Will it be possible to provide enough information so that I can recreate the scenario on my side ? Or perhaps open a support ticket and attach a sample project there ?  

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Carousel
Asked by
Jonah
Top achievements
Rank 1
Answers by
Maya
Telerik team
Jonah
Top achievements
Rank 1
Share this question
or