when I want to use the BusyIndicator like this:
RadBusyIndicator busyIndicator = new RadBusyIndicator();
But it doesn't work,an exception will be thrown。
So i want to ask that how to Set the Content Dynamically??
2 Answers, 1 is accepted
answered on 22 Aug 2011, 12:21 PM
In order to make it work, you will have to add the BusyIndicator to the visual tree, so I can suggest you to set for a Content of the BusyIndicator another grid, and to set the Content of the LayoutRoot to be the BusyIndicator, for example like so:
RadBusyIndicator busy = newRadBusyIndicator();
this.Content = busy;
Grid grid = newGrid();
busy.Content = grid;
Hope this helps.
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
You can try a workaround I posted in my blog, I had the same problem and I solved it with this