Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
WebDataTree ignoring custom CSS
posted

I have custom style that I want to apply to a WebDataTree control: normalText and TreeView.

 

The ASP source is as follows:

        <ig:WebDataTree ID="wdtTemplateStructure" runat="server"
            Width="100%" Height="500px"
            InitialDataBindDepth="0" InitialExpandDepth="0"
            onnodepopulate="wdtTemplateStructure_NodePopulate" CssClass="normalText TreeView"
            CheckBoxMode="Off" SelectionType="Multiple">

All of my style are ignored, though.  If I use the developer toolbar in IE 8 to examine the control's rendered source at runtime I see that there are two automatically generated classes as well:-

<div class="ig_Control igdt_Control normalText TreeView" id="wdtTemplateStructure" style="width: 100%; height: 500px; visibility: visible; overflow: auto;" _events="[object Object]" control="[object Object]" name="wdtTemplateStructure" _address="main">

If I use developer tools to turn off ig_Control and igdt_Control, my styles are displayed.

How can I stop the automatic styles overriding my own?

Parents
No Data
Reply Children
No Data