8 Answers, 1 is accepted
The following example:
http://demos.telerik.com/silverlight/#Barcode/Configurator
demonstrates one such option. I hope it gets you started properly.
Regards,
Yavor
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
As mentioned in the other thread, in order to make sure that we are on the same page, please open a formal support ticket and send us the problematic code, which demonstrates your approach, along with the unwanted behavior. We will review it locally, and advise you further.
Regards,
Yavor
Telerik
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Got this to work now by adding the following after setting the .Text and before saving to a byte array:
Dispatcher.Invoke((Action)(() => qrValue = rbcSalesOrder.Text));
Dispatcher.Invoke(new Action(() => Thread.Sleep(1000)), DispatcherPriority.Background);
I have tested this behavior on my side but wasn't able to reproduce it. What I have tried is to change the Text property run time on MouseDoubleClick event. The RadBarcodeQR is updated after that. Can you elaborate more on your scenario? Also, is the RadBarcodeQR bound to a custom property in your application?
Regards,
Dinko
Progress Telerik
With my application I have one RadBarcodeQR being displayed. I am creating a report that needs to print multiple unique QR images. These are later scanned by another application used to record production data. The value scanned allows us to track production data based on that scanned value. At generation time, the user can select to print one or any number of unique QR codes. I update the Text of the RadBarcodeQR in the code-behind. Since I only have one RadBarcodeQR being displayed I have to use my solution above in order for the UI to update, thus updating the RadBarcodeQR and then generate an image for that value for the report.
If the method to update the graphical part of the RadBarcodeQR (after Text change) was exposed, I would think I could use it instead of using the Dispatcher.Invoke.
Hope that helps explain my situation.
Thank you for elaborating your scenario. Still I not able to reproduce this behavior. I am attaching a sample project which I used to test your case. Can you take a look at this project and let me know if my approach of changing the Text of the barcode is different from yours? Maybe I am missing an additional step from your implementation.
As a side note, I am happy to hear that you have a workaround which you can use in your application so you can continue its development.
Regards,
Dinko
Progress Telerik