Ticket T337065
Visible to All Users

How to change icon in Row Indicator Panel for warnings in wpf gridcontrol

created 9 years ago (modified 9 years ago)

Hi,

I want to display warning icon in place of Error icon in Row Indicator Panel based on a condition.Please let me know how I can achieve this functionality.

Note: I am using WPF gridcontrol with tableview.

Thanks,
Sharmila

Comments (3)
DevExpress Support Team 9 years ago

    Hi Sharmila,

    Your requirements are not entirely clear to me. Would you please describe them in greater detail?

    A general approach of placing custom controls into the Row Indicator Panel is to define a custom RowIndicatorContentTemplate. Does this solution fit your needs?

    Thanks,
    Alex

    SK SK
    Sharmila Kalaimani 1 9 years ago

      Hi Alexander,
                         Thanks for the response. I want to achieve similar functionality mentioned in below ticket.The difference is I want to Implement it in WPF Tableview.
                         https://www.devexpress.com/Support/Center/Question/Details/A2841

      I want to display warning icon and error icon in the Row indicator panel based on the validation of the row.

      SK SK
      Sharmila Kalaimani 1 9 years ago

        example scenario :
        I have n number of rows in my tableview.In which a column will be editable. I want to display error icon in Row Indicator Panel if the value entered is 0 and display warning if the value entered is less than 5.

        Answers approved by DevExpress Support

        created 9 years ago

        Hi Sharmila,

        Do you mean that the icon should show the user input validation information? If so, override the "{dxgt:RowIndicatorThemeKey ResourceKey=FocusedErrorIconTemplate}" template in the following manner:

        XAML
        <DataTemplate x:Key="{dxgt:RowIndicatorThemeKey ResourceKey=FocusedErrorIconTemplate, IsThemeIndependent=True}"> <dxe:ErrorControl Content="{Binding Path=(dxe:BaseEdit.ValidationError)}" /> </DataTemplate>

        If you mean that the icon should be shown without validation, override RowIndicatorContentTemplate. You can find the default template using the instructions provided in the How to modify DX themes in WPF article.

        Regards,
        Alex

          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.