Hi,
I am new to mobile development, in my company we are trying kendo ui complete for mobile app development. So far I was able to develop some screens without any issues for the app. However, now I am running into problems with a specific view or screen.
In our app a user logins in a picks a task on the second screen then he is sent to a screen that contains 2 drawers (left and right). The left drawer contains a treeview that is bound to a view model and the right drawer has some text. So, the problem is I get uncaught type error: cannot call method 'tolowercase' on undefined inside kendo.all.min.js
My code looks something like this, this is a screen that is called from my second screen when a user picks a particular task:
I have not attached the styles.
Is this because I have not initialized the treeview as kendotreeview in my view model? If that is the case, can i do that in my init function?
Thanks for the help !!
I am new to mobile development, in my company we are trying kendo ui complete for mobile app development. So far I was able to develop some screens without any issues for the app. However, now I am running into problems with a specific view or screen.
In our app a user logins in a picks a task on the second screen then he is sent to a screen that contains 2 drawers (left and right). The left drawer contains a treeview that is bound to a view model and the right drawer has some text. So, the problem is I get uncaught type error: cannot call method 'tolowercase' on undefined inside kendo.all.min.js
My code looks something like this, this is a screen that is called from my second screen when a user picks a particular task:
<
div
data-role
=
"view"
id
=
"two-drawer-home"
data-title
=
"Default Report"
>
<
header
data-role
=
"header"
>
<
div
data-role
=
"navbar"
>
<
a
data-role
=
"backbutton"
id
=
"back-button"
class
=
"nav-button"
data-align
=
"left"
>Back</
a
>
<
span
data-role
=
"view-title"
></
span
>
<
a
data-role
=
"button"
data-rel
=
"drawer"
href
=
"#right-drawer"
data-icon
=
"share"
data-align
=
"right"
></
a
>
</
div
>
</
header
>
<
a
class
=
"left-btn"
data-role
=
"button"
data-rel
=
"drawer"
href
=
"#left-drawer"
data-icon
=
"nav"
></
a
>
<
div
data-role
=
"content"
>
Main Content Goes Here
</
div
>
</
div
>
<
div
data-model
=
"app.Menus"
data-init
=
"app.Menus.init"
data-role
=
"drawer"
id
=
"left-drawer"
style
=
"width: 270px"
data-title
=
"Select a Report"
data-views
=
"['two-drawer-home']"
>
<
header
data-role
=
"header"
>
<
div
data-role
=
"navbar"
>
<
span
data-role
=
"view-title"
></
span
>
</
div
>
</
header
>
<
div
id
=
"zones"
class
=
"k-content"
>
<
div
class
=
"configuration-horizontal"
>
<
div
class
=
"config-section"
>
<
div
data-role
=
"treeview"
data-drag-and-drop
=
"false"
data-text-field
=
"Name"
data-bind="visible: isVisible,
source: zones,
events: { select: onSelect }"></
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
data-role
=
"drawer"
id
=
"right-drawer"
style
=
"width: 80px"
data-title
=
"Share"
data-position
=
"right"
data-views
=
"['two-drawer-home', '/kendo-ui/mobile/m/drawer/two-way-drawers.html']"
>
<
header
data-role
=
"header"
>
<
div
data-role
=
"navbar"
>
<
span
data-role
=
"view-title"
></
span
>
</
div
>
</
header
>
Filters will appear here
</
div
>
I have not attached the styles.
Is this because I have not initialized the treeview as kendotreeview in my view model? If that is the case, can i do that in my init function?
Thanks for the help !!