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

Child cell element not theming.

4 Answers 118 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 14 Oct 2010, 07:54 PM
I have a a derived version of GridViewMultiComboBoxColumn, which is exposing a default editor type that is a CustomRadMultiColumnComboBoxElement (derived from RadMultiColumnComboBoxElement).  The derived class is overriding ThemeEffectiveType and returning RadMultiColumnComboBoxElement, however, it's not themed when it moves into edit mode.  How do I get it to theme properly?  

An image of what I'm talking about is here: 

http://img40.imageshack.us/img40/2418/themed.png

The button is gray, but should be blue to match with the rest of the UI.  Also, the textbox shouldn't have the border around it like it does.  How do I fix this issue?

4 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 14 Oct 2010, 08:01 PM
Hello David,

Please try this:
protected override Type ThemeEffectiveType
{
    get
    {
        return typeof(RadComboBoxElement);
    }
}

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
0
David
Top achievements
Rank 1
answered on 14 Oct 2010, 08:19 PM
Emmanuel, 

Thanks again!  You're extremely fast on the draw, and I appreciate that.  

One other question, not sure if this is possible or not, but why is there a border on the TextBoxElement?  Shouldn't it be white?  Other filters, such as text filters on the same grid, have a white background, and not the bordered background like this one.  

Thanks, 

David Morton (C# MVP)
0
Emanuel Varga
Top achievements
Rank 1
answered on 14 Oct 2010, 08:29 PM
Hello again,

This is the default theming for the ComboBox, but you always have 2 options to change this, one should be through Visual Style Builder, if I'm not mistaken, but an easier thing to try would be setting the TextBoxElement's BorderTickness to 0.

Please let me know how it turned up, if it's not working the way you hoped, or you need any more help please let me know and i will try to come up with a solution.

Best Regards,
Emanuel Varga
0
Emanuel Varga
Top achievements
Rank 1
answered on 14 Oct 2010, 08:54 PM
.. or you can also try setting the .EditorElement.BorderThickness to 0, but in my opinion it gives a strange look to the ComboBox.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
David
Top achievements
Rank 1
Share this question
or