This is a migrated thread and some comments may be shown as answers.

Why doesn't RadBarcode support .RegisterWithScriptManager?

6 Answers 66 Views
Barcode
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 08 Aug 2014, 01:12 AM
Other telerik controls that implement IScriptControl support this method.  We use it quite a bit when rendering controls for pdf generation, as it seems to prevent the dreaded "Script control 'xyz' is not a registered script control" when set to false. Since we're generating pdf's, we have no use for the generated scripts anyway.

Can anyone clue me in to why RadBarcode seems does not support RegisterWithScriptManager?  Is it because RadBarcode for some reason *requires* client script activity to function?

We are using the 2012 Q3 version of the telerik tools..

6 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 08 Aug 2014, 08:12 AM
Hello John,

The RadBarcode registers scripts in case EnableAriaSupport is set to true.
Or when OutputType is BarcodeOutputType.SVG_VML and the browser is IE.

If the Aria support is disabled and the output is PNG the barcode does not require script manager in your page.

Regards,
Vasil
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
John
Top achievements
Rank 1
answered on 08 Aug 2014, 11:45 AM
I'm not following this reply.

RadBarcode documention does not mention any EnableAriaSupport attribute, and including it on the tag anyway does nothing. So not understanding how I can set things up so that "Aria support is disabled".

As I mentioned, we are using 2012 Q3 version, and it does not support PNG image output.

We are using  .RenderControl to generate html for converstion to pdf. All telerik controls on the page gave us the "not a registered script control" error until we set their .RegisterWithScriptManager = false which eliminated all problems. Still not understanding why RadBarcode does not allow this.
0
John
Top achievements
Rank 1
answered on 08 Aug 2014, 11:53 AM
Found that our 2012 Q3 version does support PNG, but switching to OutputType="EmbeddedPNG" makes no difference with respect to the rendering error.
0
John
Top achievements
Rank 1
answered on 08 Aug 2014, 12:00 PM
Also found by searching that the EnableAriaSupport seems to a property only of a RadWindow or RadWindowManager, neither of which we are using here.
0
John
Top achievements
Rank 1
answered on 08 Aug 2014, 12:30 PM
Apologies for the stream of replies, but not sure when anyone will read them, and getting all facts on the table.

So then tried doing away with the RadBarcode tag on the page entirely, and tried using it in server-side code instead as detailed at http://www.telerik.com/help/aspnet-ajax/barcode-outputtype.html.  Added a RadBinaryImage tag in its place.  Then server code creates an instance of RadBarCode and attempts to use  GetImage() to save it to a stream which is applied to the RadBinaryImage.dataValue property.  But the 2012 Q3 version of RadBarcode has no GetImage() method, so this is a wash too.  Can you tell me the earliest version that DOES support GetImage()?  We are unable to upgrade all the way to the 2014 version as there are numerious site breaking issues for us that we don't have time to resolve at this time.
0
Vasil
Telerik team
answered on 12 Aug 2014, 02:16 PM
Hello John,

The GetImage() method of RadBarcode is added in 2012.11.09, and it is available in Q1 2013.

Indeed the RadBarcode does not have RegisterWithScriptManager property, I have logged this as bug, and we will fix it in future.

Regards,
Vasil
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Barcode
Asked by
John
Top achievements
Rank 1
Answers by
Vasil
Telerik team
John
Top achievements
Rank 1
Share this question
or