We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Conditional styling doesn't when editing a row

Thread ID:

Created:

Updated:

Platform:

Replies:

144889 May 27,2019 07:46 PM UTC May 29,2019 05:03 AM UTC UWP 3
loading
Tags: SfDataGrid
François Mouchati
Asked On May 27, 2019 07:46 PM UTC

How can I trigger the condtional styling to be evaluated when I edit a row of a SfDataGrid?

Jagadeesan Pichaimuthu [Syncfusion]
Replied On May 28, 2019 08:58 AM UTC

Hi Francois, 
  
Thanks for using Syncfusion product. 
  
We analyzed your query regarding conditional styling to be evaluated on editing and your requirement can be achieved by styling with Converter. Please find the example below, 
  
<Style x:Key="rowStyle" TargetType="syncfusion:VirtualizingCellsControl"> 
    <Setter Property="utils:SetterValueBindingHelper.PropertyBinding"> 
        <Setter.Value> 
            <utils:SetterValueBindingHelper Property="Background" Binding="{Binding Column1,Converter={StaticResource converter}}"/> 
        </Setter.Value> 
    </Setter> 
</Style> 
  
Please find sample from the link below, 
  
Please refer to the UG link below for more details on conditional styling, 
  
Please let us know if you need further assistance. 
  
Regards, 
Jagadeesan

François Mouchati
Replied On May 28, 2019 10:18 AM UTC

Thank you for your reply.
I do use the converter as per the doc. Yet it doesn't work once you edit the viewmodel. As if the binding was "OneTime".

Dinesh Babu Yadav [Syncfusion]
Replied On May 29, 2019 05:03 AM UTC

Hi Francois, 
 
We analyzed the reported issue by changing the value in ViewModel. But we are unable to reproduce the aforementioned issue. Please find the test sample from the link below. 
 
 
If you are still facing the same issue, please revert us with the code example on how to edit the value and brief replication / video illustration. If possible, revert us with the modified sample. It will help us to further investigate and provide earlier prompt solution. 
 
Regards, 
Dinesh Babu Yadav 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon