public
partial
class
MainPage : UserControl
{
private
RadWindow _window;
private
RadGridView _gridView;
public
MainPage()
{
InitializeComponent();
_gridView =
new
RadGridView()
{
ItemsSource = Enumerable.Range(1, 100)
};
_gridView.Loaded += GridView_Loaded;
_window =
new
RadWindow()
{
Content = _gridView
};
_window.Show();
}
void
GridView_Loaded(
object
sender, RoutedEventArgs e)
{
StyleManager.SetTheme(_gridView,
new
Office_BlueTheme());
}
}
7 Answers, 1 is accepted
You can set the RadGridView theme earlier as setting it in the Loaded event is a bit late.
See the code bellow.
public MainPage()
{
InitializeComponent();
_gridView = new RadGridView()
{
ItemsSource = Player.GetPlayers()
};
StyleManager.SetTheme(_gridView, new Office_BlueTheme());
_window = new RadWindow()
{
Content = _gridView
};
_window.Show();
}
Regards,
Vera
the Telerik team
Setting the theme earlier won't work for my application because we have a user preference that isn't loaded until later in the control's lifecycle which tells us what theme to use.
We have investigated this scenario and it seems that this is bug from our side. I have logged this in our PITS system where you can track its progress. The fix will be included in our next internal build (next Monday).
Please excuse us for the inconvenience caused.
P.S. I have updated your telerik points accordingly.
Tsvyatko
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 >>
Is it possible to darg and drop the groups in rad gridview?if it is possible, how?
i have written "OnGroupsChanging" Event..but wtill help less it is
RadGridView does not offer such functionality out-of-the-box. ( dragging groups ).
Kind regards,
Pavel Pavlov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Thanq for your fast response, you saved my time...