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
620
CellBinding to IsEnabled property
posted

Hi,

We are evaluating 15.1.  The CellBinding feature is a feature that we would really like to use, but I am running into an interesting issue.  I have the following code.  In the UI, the disabled cells show up gray and the enabled cells show up white, as expected.  However, I'm still able to edit and change the value of the disabled cells.  Is this a known issue, or am I doing something wrong?

<igdp:CurrencyField Name="Salary">

     <igdp:CurrencyField.CellBindings>

          <igdp:CellBinding Property="IsEnabled" Target="Editor" Binding="{Binding Path=DataItem.CanEditSalary}"/>

     </igdp:CurrencyField.CellBindings>

</igdp:CurrencyField>

I'm pretty sure the binding is setup correctly, because as I noted, I do see the disabled cells being grayed out.

If I change the code as follows, all cells show up gray, as expected.  However, this time I am not able to edit the cells, which is the behavior I would expect to see.

<igdp:CurrencyField Name="Salary" IsEnabled="False" />

I can attach a sample project that shows this issue if need be.