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

Barcode with razor engine

3 Answers 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kris
Top achievements
Rank 1
Kris asked on 29 Nov 2012, 10:09 PM
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 

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 30 Nov 2012, 08:04 AM
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!
0
Kris
Top achievements
Rank 1
answered on 30 Nov 2012, 06:32 PM
Atanas, 

An example would be greatly appreciated

Thanks


0
Atanas Korchev
Telerik team
answered on 03 Dec 2012, 07:40 AM
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!
Tags
General Discussions
Asked by
Kris
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Kris
Top achievements
Rank 1
Share this question
or