I start a new, Winforms .Net Framework 4.7.2 project.
I add the radBarcode to the form, a sample QR code is shown.
I change the Symbology-property to DataMatrix, the sample picture of the barcode is cleared and no barcode is shown. This is also the case when I change the Symbology-property via the control smart menu/tags
And here comes the point: I always inserted my value for the barcode in the Text-property and not in the Value-property (my fault). After playing around and reading the docu I realised that I need to set the Value property. If I do this via smart menu/tag It works fine.
But why does the Value property get cleared by changing the Symbology-Property? If there could be any conflicts between different barcodes, wouldn't it be better to show some infobox, that the value is incompatible to the selected symbology?
Hello, Mi,
The value which is encoded in RadBarcode is set through the Value property. You can set it both at design time via the smart tag or programmatically. For more information please refer to the following article: https://docs.telerik.com/devtools/winforms/controls/barcode/getting-started
The Symbology property converts the value of this element into a visual barcode representation. Note, any time you set this property to another barcode type the barcode fully recreates itself in order to visualize the specific type. In this case, it is normal the value to be reset. This is the expected behavior.
I will change the status of this bug report to Declined.
Should you have other questions do not hesitate to contact us.
Regards,
Nadya
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.