Wrong FilterDescriptor Property Value logic #1937

Closed
opened 2026-01-29 18:15:51 +00:00 by claunia · 1 comment
Owner

Originally created by @Hamid-kadkhoda on GitHub (Dec 20, 2025).

Image Image

that two conditional lines create confusing and wrong logic. why not just writing:

Property = !string.IsNullOrEmpty(c.FilterProperty) ? c.FilterProperty : c.Property;

Originally created by @Hamid-kadkhoda on GitHub (Dec 20, 2025). <img width="1119" height="508" alt="Image" src="https://github.com/user-attachments/assets/082dc569-7db9-49b4-aa23-e526ee12048b" /> <img width="569" height="284" alt="Image" src="https://github.com/user-attachments/assets/6cf04193-1c2a-48d4-8578-260d5c7af12d" /> that two conditional lines create confusing and wrong logic. why not just writing: Property = !string.IsNullOrEmpty(c.FilterProperty) ? c.FilterProperty : c.Property;
Author
Owner

@enchev commented on GitHub (Dec 20, 2025):

Let us know what’s the problem and how to reproduce it. You can use our demos for reference.

@enchev commented on GitHub (Dec 20, 2025): Let us know what’s the problem and how to reproduce it. You can use our demos for reference.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1937