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

Barcode in a mobile app

3 Answers 11 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Libor
Top achievements
Rank 1
Libor asked on 04 Feb 2014, 12:38 PM
Hello,

Can I display a barcode (Kendo UI DataViz) in a mobile application (Kendo UI Mobile)?

Libor

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 04 Feb 2014, 02:03 PM
Hello Libor,

This should be possible as long as you initialize the barcode (DataViz widgets respectively) in the init event of the mobile view. For more general questions concerning Kendo UI Mobile you can refer to this public FAQ.

Best regards,
Sebastian
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

0
Libor
Top achievements
Rank 1
answered on 11 Feb 2014, 02:11 PM
Hello again,

thanks for reply. I understand what I have to do, but i don't know how. Where do I insert a barcode widget in my script? Can you give me any example please?

There's my view:
...
<
div class="center" id="home" data-role="view" data-layout="default" data-init="init">
        <input>
        <div id="barcode"></div>
</div>
...

And there's my script:
var app = new kendo.mobile.Application($(document.body), { transition: "slide" });
 
function init(e) {
    console.log('init');
}
 
$(document).ready(function() {
    $("#barcode").kendoBarcode({
        value:"FOO"
    });
});

‚Äč
0
Alexander Valchev
Telerik team
answered on 13 Feb 2014, 09:24 AM
Hi Libor,

As my colleague Stefan replied, you should place the barcode initialization script inside the init event handler.

var app = new kendo.mobile.Application($(document.body), { transition: "slide" });
  
function init(e) {
    $("#barcode").kendoBarcode({
        value:"FOO"
    });
}


Regards,
Alexander Valchev
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
General Discussions
Asked by
Libor
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Libor
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or