Enhance SplitPropertyPath to conditionally handle parentheses in prop… #16054
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does the pull request do?
Parenthesis encircles the property type in front of properties in a property path. Example
(Contact).Name
. TheSplitPropertyPath
method from ReflectionHelper could not handle this, making datagrid cells automatically uneditable when there is a cast of property type in the path. Now, I am conditionally handling that, and the issue is resolved by removing the property type cast from the property path.What is the current behavior?
property casting happens in a property path and automatically makes the datagrid cell uneditable when it is there.
What is the updated/expected behavior with this PR?
If there is a cast of a property type with parenthesis on the property path, it is removed from the path, and there is no making it uneditable because of that issue
Fixed issues
Fixes #15865