I haven't seen anything else. Is there a good, extensible workaround? Will this be added in the future?
10 Answers, 1 is accepted
Can you clarify what is NullDisplayText?
Regards,Vlad
the Telerik team
Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.
I know the GridView handles "DataFormatString" but it doesn't seem to handle NullDisplayText.
This will be added for our upcoming Q3 2012 release (after three weeks).
Greetings,Vlad
the Telerik team
Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.
It is working in my WPF test project. You can find it attached. However, if you have applied DataFormatString of the column, the NullDisplayText attribute will not be respected.
Regards,
Yoan
Telerik
I have a column of weights, but for some rows, the weight is unknown (not 0, but really unknown). I would like it to say "4 kg" in the cell that belongs to a row with a weight that is 4 kg, and "" (the empty string) in the cell that belongs to a row with an unknown weight.
This functionality exist with plain bindings (via TargetNullValue) for ordinary TextBoxes. Syncfusion SfDataGrid (a competitors alternative to RadGridView) supports this. I am fine with needing to do things different with Telerik controls, but surprised that such a simple feature is missing.
Maybe I am missing something, but the TargetNullValue is working as expected. I have attached a modified version of my previous attached project. I have used the TargetNullValue property in the DataMemberBinding of the column and it is respected.
Regards,
Yoan
Telerik
I just wanted to update the forum thread that the behavior is logged as a bug in our Feedback and Ideas Portal at the following page - StringFormat in DataMemberBinding does not respect TargetNullValue property. We have investigated it in the ticket you have raised and confirmed the undesired effects.
Regards,
Stefan Nenchev
Telerik