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

[Solved] changing skin causes skin not to render

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John Haines
Top achievements
Rank 1
John Haines asked on 13 Oct 2009, 05:16 PM
When I change my skin from Office2007 to Sunset in my c# code-behind, it causes my skin not to render.
Here's the code that caused the error...

    protected void MPL_Proposals_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) 
    { 
        if (MPL_Proposals.SelectedItem != null) 
        { 
            var propId = Convert.ToInt64(MPL_Proposals.SelectedValue); 
            var filter = string.Empty; 
            PopulateMpl(propId, filter); 
            RadGrid_MPL.Rebind(); 
 
            RadGrid_MPL.Skin = myProposalId != propId ? "Sunset" : "Office2007"; 
        } 
    } 
 

My grid is "RadGrid_MPL". As long as I don't change its default skin it looks great. But if I try to change it, it removes its style.

Thoughts?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Oct 2009, 09:00 AM
Hello John,

Please rebind the RadGrid after changing the skin, not before that.

Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
John Haines
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or