Ticket Q226991
Visible to All Users
Duplicate

ASPxGridView - A check box does not display a custom image in GridViewDataCheckColumn

created 14 years ago

Just discovered a similar problem. Inside my grids I have custom images for checkboxes:
                    <dxwgv:GridViewDataCheckColumn
                        Caption="Cert. Staff"
                        FieldName="isRightToSignAsCertifyingStaff"
                        ShowInCustomizationForm="False"
                        Visible="true" width="100px"
                        VisibleIndex="20"
                        ToolTip="Right to sign as Certifying Staff">
                        <PropertiesCheckEdit DisplayImageChecked-Url="…/…/Images/CheckBoxNoBorderOn.gif" DisplayImageUnchecked-Url="…/…/Images/CheckBoxNoBorderOff.gif"/>
                        <CellStyle HorizontalAlign="Center"></CellStyle>
                        <EditFormSettings Visible="False"/>
                        <PropertiesCheckEdit ValueChecked="true" ValueUnchecked="false"></PropertiesCheckEdit>
                    </dxwgv:GridViewDataCheckColumn>
This has worked fine until this last version. Now all my checkboxes seemed to dissapear. But if I set width and height explicit on them the custom checkbox is again visible. So the size for the checkbox image has suddenly become 0?
Can this be fixed in my CSS file so I do not have to set W/H on every checkbox control inside a grid?
This has worked fine until latest version.

Comments (1)
DevExpress Support Team 14 years ago

    Hello Odd-Inge,
    It is possible to specify the CheckBoxProperties.CheckBoxStyle.CssClass property (a CSS class, which specifies dimensions) instead of setting DisplayImageChecked.Width and DisplayImageChecked.Height properties.
    It is also possible to override an internal CSS class. I do not suggest you use this approach because this class is applied to all ASPxCheckBoxes on the page if you want to use CSS styles to implement a previous solution.

    CSS
    .dxICheckBox{ height: 20px; width: 20px; }

    Please take a look at the GridViewDataCheckColumn does not display images defined via the DisplayImageChecked/DisplayImageUnchecked/DisplayImageGrayed property report where we have discussed a similar problem.
    Thanks,
    Jenny

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.