Why doesn't RadBarcode support .RegisterWithScriptManager?

7 posts, 0 answers
  1. John
    John avatar
    16 posts
    Member since:
    Sep 2011

    Posted 07 Aug 2014 Link to this post

    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..
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 08 Aug 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. John
    John avatar
    16 posts
    Member since:
    Sep 2011

    Posted 08 Aug 2014 in reply to Vasil Link to this post

    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.
  5. John
    John avatar
    16 posts
    Member since:
    Sep 2011

    Posted 08 Aug 2014 Link to this post

    Found that our 2012 Q3 version does support PNG, but switching to OutputType="EmbeddedPNG" makes no difference with respect to the rendering error.
  6. John
    John avatar
    16 posts
    Member since:
    Sep 2011

    Posted 08 Aug 2014 Link to this post

    Also found by searching that the EnableAriaSupport seems to a property only of a RadWindow or RadWindowManager, neither of which we are using here.
  7. John
    John avatar
    16 posts
    Member since:
    Sep 2011

    Posted 08 Aug 2014 Link to this post

    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.
  8. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 12 Aug 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017