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

navbar - Uncaught TypeError: Cannot call method 'split' of undefined

1 Answer 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 2
Veteran
Jon asked on 15 Jul 2013, 09:34 AM
Using the layout template where I have the following markup

<div data-role="navbar">
    <a class="nav-button" data-align="left" data-transition="slide:left" data-role="backbutton">Back</a>
    <span data-role="view-title"></span>
    <a data-align="right" data-role="button" data-transition="slide:left" class="nav-button" href="#tabstrip-home">Home</a>
</div>
if you select the back button the first time the page loads you get Uncaught TypeError: Cannot call method 'split' of undefined - I guess as there is nothign to go back to, how can I disable this button until there is something to go back to?

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 17 Jul 2013, 07:36 AM
Hello,

Currently, the mobile button widget does not support enabling/disabling out of the box. The javascript error you experience will be addressed in our upcoming Q2 release. 

Regards,
Petyo
Telerik
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
Jon
Top achievements
Rank 2
Veteran
Answers by
Petyo
Telerik team
Share this question
or