IsReadOnly not propagate to the payload request when the DataObjects collection changed

Grids for WPF Forum

Posted 6 years ago by Julien Audran
Version: 18.1.0673
Avatar

Hello,

 

We encountered a problem with IsReadOnly and the collection changed event in the DataObjects.

Repro steps:

  • Bind an ObservableCollection to the DataObjects with an object within and IsReadOnly set to false (Default value).
  • Change IsReadOnly to true
  • Remove/Add an object in the ObservableCollection
  • The property grid refreshes but the request payload still has IsReadOnly set to false since the collection changed event does not trigger an update of IsReadonly in the request or invalidate it.

We did manage to fix the problem (after looking at the code) by listening to any collection changed in the DataObjects and using reflection to call the private InvalidateRequestPayload of the PropertyGrid to rebuild it with the correct IsReadOnly value.

Indeed the OnDataObjectsCollectionChanged called only RequestRefresh.

 

Thanks, 

 

Julien Audran

Comments (2)

Answer - Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Julien,

Thanks for reporting this.  I believe we fixed it last week for the next maintenance release, with this release note:

Fixed a bug where new collection items in PropertyGrid might not appear read-only when the PropertyGrid.IsReadOnly property is set to true.

We hope to have the next maintenance release out later this month.


Actipro Software Support

Posted 6 years ago by Julien Audran
Avatar

Hello,

 

Thanks very much, we will have a look when it's released.


Thanks,

 

Julien

The latest build of this product (v24.1.3) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.