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
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
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.
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
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.
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.