Barcode with razor engine

4 posts, 0 answers
  1. Kris
    Kris avatar
    2 posts
    Member since:
    Mar 2011

    Posted 29 Nov 2012 Link to this post

    hello,

    i'm looking to render a Barcode like 

    <telerik:radbarcode runat="server" Height="112px" ShowChecksum="False" ShowText="False" Text="DccPGDqsRRMA" Type="Code128A" Width="463px"></telerik:radbarcode>

    is there a way to use the radbarcode in the razor engine?

    using MVC 4 with Kendo complete for MVVC

    Thanks 

  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 30 Nov 2012 Link to this post

    Hello Dana,

     RadBarCode is an ASP.NET web control and can only be used with the WebForms view engine. You can however create a partial view (ASCX) which can then be included in any razor view.

    Regards,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Kris
    Kris avatar
    2 posts
    Member since:
    Mar 2011

    Posted 30 Nov 2012 Link to this post

    Atanas, 

    An example would be greatly appreciated

    Thanks


  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 03 Dec 2012 Link to this post

    Hi Dana,

    Do you need assistance with creating a partial view? This should be relatively simple if you are using the visual studio wizard. You just need to create an ASPX partial view (see attached screenshot). Then in your razor view use Html.RenderPartial("MyBarcodePartialView") as you would normally do to render a partial view.

    Regards,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready