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

Object #<Object> has no method 'appLevelNativeScrolling'

25 Answers 202 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Don
Top achievements
Rank 1
Don asked on 22 Mar 2014, 11:56 PM
Whenever I scroll a listview I now get this error "Object #<Object> has no method 'appLevelNativeScrolling' ".  It happens on every listview I have, whether it be with endlessScroll on or off.  It happens in both emulator and on devices, on all platforms.  The app still appears to scroll despite the error, however, ***the "click" event of listview no longer fires after the error occurs***.  This error only started occurring after I updated my application to use the latest version of the Kendo UI Mobile files available to AppBuilder.  

I followed the directions here:  http://docs.telerik.com/platform/appbuilder/creating-your-project/update-project-libraries#update-the-code-libraries-in-the-appbuilder-windows-client.  The article doesn't specify which files need to be overwritten/upgraded, so I just did everything in /kendo.  So, my app is currently using v2013.3.1507 of kendo.mobile.min.js and v1.9.1 of jQuery which is what all new AppBuilder projects now use.

The reason I upgrade was because the previous version of kendo mobile had a bug that prevented scrollView from working properly with a dataSource that is localData (array), so I can't go back to the old version.

It seems as though with every step I take forward with Icenium/AppBuilder I find a bug or two that sets me back.  I have been working with Icenium/AppBuilder for over a year and I am regretting my decision to use it.  But I am too far committed now.

Please tell me how to work around/fix this bug.

25 Answers, 1 is accepted

Sort by
0
Don
Top achievements
Rank 1
answered on 23 Mar 2014, 12:21 AM
UPDATE:  I've put in a hack into kendo.mobile.min.js that seems to make the problem go away.  If you search for the line:

g.mobile.appLevelNativeScrolling()

And replace it with

((typeof g.mobile.appLevelNativeScrolling==='function')&&g.mobile.appLevelNativeScrolling())

the problem seems to go away.  Of course, editing kendo.mobile.min.js is hardly ideal.  So, the original bug/question still stands.  In addition:

1)  Do you forsee any problems with this hack?
2)  Is there a better fix/hack?
3)  Is there something I could do to prevent this event error from occurring in the first place?

Thx.
0
Iva Koevska
Telerik team
answered on 24 Mar 2014, 09:40 AM
Hello Donald,

The error you're reporting is related to a regression which we introduced briefly in this particular internal Kendo UI Mobile build (1507). The solution is to upgrade to a later Q3 internal build. Alternatively, you may also check the Q1 2014 release, published last week. 

To update, you can either create a new project based on those templates to use the framework or update the framework files in your existing projects.

Alternatively, you can download the Kendo UI Mobile/DataViz framework files you need from your available downloads or from the trial section of Kendo, add them to your AppBuilder project, and reference them in your code to use them.

You can continue using your code workaround, if it suits and does not introduce further problems with your code. However, the recommendation is to update your Kendo UI Mobile/DataViz framework files.

Thank you for your understanding! We will update the framework files that we're shipping in a future release and will update this thread as needed.

Regards,
Iva Koevska
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET. Seats are limited.

 
0
Tyler
Top achievements
Rank 1
answered on 24 Mar 2014, 07:52 PM
Hello,

I'm having the same problem the OP has. I created a brand new project this morning (cloned the weather app) and the error still periodically appears. Some times it works in the debugger and other times it does not.

Is there a real fix to this issue?

Cheers,

Tyler
0
Iva Koevska
Telerik team
answered on 25 Mar 2014, 07:47 AM
Hello Tyler,

The solution at this point is to update to a later version of Kendo UI Mobile manually, as explained in an earlier reply. Just download a newer version of the framework, preferably an official one, and use it to replace the framework files in your project. Make sure to update any references in index.html as needed.

We are very sorry for introducing this regression and understand the frustration and confusion it might be causing. We are working on verifying that Q1 2014 is fully compatible with AppBuilder and hope to introduce an update in the Kendo UI Mobile version we're shipping in one of our next releases.

Regards,
Iva Koevska
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET. Seats are limited.

 
0
siva
Top achievements
Rank 1
answered on 26 Mar 2014, 05:51 PM
Thanks Don it's Really help full for me...............
0
Don
Top achievements
Rank 1
answered on 26 Mar 2014, 07:37 PM
Just FYI, there was another reference to appLevelNativeScrolling in kendo.mobile.min.js that looked like it would also throw the same error, eventually, so I changed that as well.  I replaced:

i.mobile.appLevelNativeScrolling
 
with

((typeof i.mobile.appLevelNativeScrolling==='function')&&i.mobile.appLevelNativeScrolling())

No guarantees on any of this but so far so good.  Good luck.

0
Don
Top achievements
Rank 1
answered on 26 Mar 2014, 07:57 PM
[quote]Iva Koevska said:Hello Donald,

To update, you can either create a new project based on those templates to use the framework or update the framework files in your existing projects.

Alternatively, you can download the Kendo UI Mobile/DataViz framework files you need from your available downloads or from the trial section of Kendo, add them to your AppBuilder project, and reference them in your code to use them.

You can continue using your code workaround, if it suits and does not introduce further problems with your code. However, the recommendation is to update your Kendo UI Mobile/DataViz framework files.

[/quote]

When I log in and go to internal builds, the latest internal build of Kendo UI Mobile is not available to me.  I am a Kendo UI Web license owner and a monthy AppBuilder subscriber, but not a Kendo UI Mobile license holder.

You also said I could also download the latest complete trial version of Kendo and grab kendo.mobile.min.js from there, but I have tried that method in the past and it broke my app.

Also, other posts by other admins confirm that the latest Kendo UI Mobile is not included immediately in AppBuilder because there is a need for "integration and stability testing" (http://www.telerik.com/forums/is-kendo-mobile-current-in-my-icenium-app-) and that we should upgrade at "your own peril" (http://www.telerik.com/forums/updating-kendo-files).  So, do you still recommend to update my Kendo UI Mobile/DataViz framework files?  If so, can I have access to the "Q3 internal build" of kendo.mobile.min.js specifically for AppBuilder?

0
Andrew Galea
Top achievements
Rank 1
answered on 27 Mar 2014, 05:24 AM
I am fully licensed in the entire KendoUI (and Telerik) suite and also a yearly subscriber of Icenium. I have the 2014 Q1 version of KendoUI Mobile installed and my app still crashes with this error...

Iva are you sure the issue has been resolved in the latest build?

Regards,
Andrew
0
Andrew Galea
Top achievements
Rank 1
answered on 27 Mar 2014, 05:31 AM
Actually an update on my previous post. After copying the latest kendo.mobile.min.js (Q1 2014) to my project whenever I select an item in my list view the entire app freezes and becomes unresponsive. This is for both the simulator and my actual iPhone device.

There are obviously some issues that Kendo need to sort out here!

Andrew
0
Marco
Top achievements
Rank 2
answered on 28 Mar 2014, 12:32 PM
Hi there, 

I am running in the same problems.... it is really annoying. Is there a solution? 
I have a listview on my page and when I try to scroll the list, I get Object #<Object> has no method 'appLevelNativeScrolling'
And the simulator freezes and hangs....
0
Marco
Top achievements
Rank 2
answered on 28 Mar 2014, 01:59 PM
To investigate this, I copy n pasted a Telerik example into a new AppBuilder KendoUI Mobile project. So a clean start. The sample I copied was http://demos.telerik.com/kendo-ui/mobile/drawer/index.html. When you do an exact copy of the body html it all works fine. Now I wanted to have the views in remote files (under a views folder in my project), so I copy n past every view in an external file and modified the data-views on the drawer. I checked 10 times now and there are no typos...

But the moment you do this, and do a scroll in the drawer listview; the Object #<Object> has no method 'appLevelNativeScrolling' error turns up in the debug console. Like Don said it has to do with scrolling vertically in the list view.....

0
Marco
Top achievements
Rank 2
answered on 28 Mar 2014, 02:00 PM
To investigate this, I copy n pasted a Telerik example into a new AppBuilder KendoUI Mobile project. So a clean start. The sample I copied was http://demos.telerik.com/kendo-ui/mobile/drawer/index.html. When you do an exact copy of the body html it all works fine. Now I wanted to have the views in remote files (under a views folder in my project), so I copy n past every view in an external file and modified the data-views on the drawer. I checked 10 times now and there are no typos...

But the moment you do this, and do a scroll in the drawer listview; the Object #<Object> has no method 'appLevelNativeScrolling' error turns up in the debug console. Like Don said it has to do with scrolling vertically in the list view.....
0
Marco
Top achievements
Rank 2
answered on 28 Mar 2014, 03:21 PM
Could someone from Telerik explain this to me? I have been emailing with support and posting in the forum in order to get bugs and other issues sorted out..... we (my dev team) have been dealing with so much stuff that simply does not work with the Telerik AppBuilder, we lost 2 weeks. In the end, I noticed this thread and decided to took at the Telerik Visual Studio Template.... Guess what? The Telerik Visual Studio installs an old version of kendo.mobile.min.js and yes that version has serveral bugs and issues.
I linked the cdn version (http://cdn.kendostatic.com/2014.1.318/js/kendo.all.min.js) into my project.... everything I came accross is solved.....
0
Iva Koevska
Telerik team
answered on 28 Mar 2014, 05:13 PM
Hello all,

Please, excuse us for any inconvenience and disruption in your workflow.

As explained earlier in this thread, the currently shipped Kendo UI Mobile/DataViz version carries a regression which causes the error you're seeing. We are working on providing an update to the Kendo UI Mobile/DataViz versions in our next release, which should come in the next couple of weeks.

Meanwhile, the solution to this problem is to manually update the framework files with a later, preferably stable or official version. As Donald mentioned earlier, most of the time we do not recommend this, but in this case this is the only possible solution.

The way to go would be to download Kendo UI Complete Mobile from here. From the archive, from the js folder, get the kendo.mobile.* files that are duplicate to the ones in your project and use them to replace the existing files. From the styles folder, get the css files you need.

If you'd rather, you can remove existing kendo.*.* files from your project, get all kendo.mobile.* files from the archive and place them in your project. In this case, you would also need to update any references in your code.

Again, please, accept our apologies for the regression we have introduced. Thank you!

Regards,
Iva Koevska
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET. Seats are limited.

 
0
Ryan
Top achievements
Rank 1
answered on 30 Mar 2014, 12:10 AM
this is such utter and complete b.s. >.<  I'm absolutely giving up on this tool as of today.  Just about every single release you guys have broken something in my Kendo UI Mobile app.  I honestly wish I'd just taken the time to build separate native versions at this point.  The unholy mix of Telerik Icenium/AppBuilder and Kendo UI Mobile has not only consistently not played well with third party libraries (mobiscroll is a nightmare to keep working) which is not good considering there's not really much in the way of form-level widgets in Kendo UI, but I've seen one breaking change after another throughout my one+ year of working with this platform.  Maybe it's just the general nature of hybrid apps these days, I dunno???  This error has crushed my app for a couple of weeks now.  I was pretty much humiliated demo'n my app for some folks recently because I had no clue that you guys were going to wreck listviews with your latest "update".  I pulled down the update, rebuilt everything, but didn't realize there was a problem since my app will work for a little bit before blowing up.  

I pay good money to use this platform and honestly it's felt like wasted dollars at this point :(  My colleague and I are leaving this platform behind asap.  Whatever short term challenges we face in doing so will be worth it just to have the peace of mind that a simple library update won't bring our app to its knees.  I expect mobile apps to be an unstable affair, but ONLY when it comes to the vendor updating their OS version, not because the core libraries the app was built upon are updated without proper QA processes

0
Ryan
Top achievements
Rank 1
answered on 30 Mar 2014, 12:26 AM
UPDATE: updated my Kendo UI Mobile libraries to the Q1 2014 release, same bug is still there...excellent work guys >.<  l'm just going to roll back to whatever version I had before that actually worked...this is absurd
0
Andrew Galea
Top achievements
Rank 1
answered on 30 Mar 2014, 12:27 AM
For what it is worth Ryan I followed Don's suggested "hack" in this thread and it has fixed my problems 100%. I have not found any side effects as a result of the hack so I am happy to run with that for the time being.

Andrew
0
Ryan
Top achievements
Rank 1
answered on 30 Mar 2014, 12:28 AM
yeah I'm about to give it a shot...not much else I can do :(  I'm glad somebody other than a Telerik employee was able to figure this out *shudders*
0
Ryan
Top achievements
Rank 1
answered on 30 Mar 2014, 12:39 AM
nevermind on that bug existing in Q1 2014 release.  For whatever reason, I updated my kendo libraries, did a provision cloud build, pushed to my iPhone and the ipa file still had an old version of the code.  But I'm used to the cloud build f'n me over so that one doesn't surprise me much anymore
0
Marco
Top achievements
Rank 2
answered on 30 Mar 2014, 07:26 AM
Ryan,I feel your pain.... :)
We have wasted 2 days on just getting a dropdownlist to work, and basically in the end we decided not to use the dropdownlist control at all, just to get things working. We were making Apps with the Xamarin platform and moved over to Telerik, because of similar issues. Building complete native apps, was something we also considered. But..dealing with 3 platforms...with a small dev team...pffffft

With Xamarin developing Android and WindowsUI native Apps worked very good, but moving over to Apple, ment in the end writing your frontend on a dedicated apple machine, with apple software.... that was a pain also.... I guess nothing is perfect...



0
Ryan
Top achievements
Rank 1
answered on 30 Mar 2014, 09:50 AM
yeah but at least with a pure native approach you're basically never boxed in.  You have complete control of the end result.  Even an OS update from the manufacturer is something you can try and plan for.  Granted, the ramp up and learning curve is pretty rough but it's the kind of "tech debt" you can afford to take on methinks.  I just finished up a contract with a Fortune 500 healthcare company here in Nashville that settled on Kony for their mobile needs and it was no walk in the park either, but that had alot more to do with how we deployed their middleware products than the Eclipse based IDE and Kony API's having issues.  But small devs like me can't afford to use something like Kony (they do have a cloud platform out now but the pricing is obscene) 

The cloud builds and LiveSync completely rolling my app here lately is the last straw for me.  I've got a perfectly functioning app in my simulator here that goes absolutely berserk on a couple of views on device??  But then again I'm running the Q1 2014 version of Kendo UI Mobile at "my own peril" thanks to the nasty bug described in this thread :(
0
Ryan
Top achievements
Rank 1
answered on 30 Mar 2014, 11:26 AM
the hits just keep on coming...sigh...

sitting here testing out a new mobiscroll version (always a dangerous exercise), never committed any changes, decided to revert on the js and css files for the mobiscroll library, and AppBuilder just deleted them both???  WTF?? >.<

Can't wait until that happens with one of my views...
0
Rob Lauer
Telerik team
answered on 31 Mar 2014, 05:10 PM
@Ryan, @Marco

I'm really sorry to hear about your struggles with Kendo UI Mobile and AppBuilder. Just so you know, we do listen to all of this feedback and take it to heart to do our best to make this a great set of tools for you.

It might be best for you to create a new forum post (or support ticket) for each of your outstanding issues so we can better triage the problems. As always, specific examples (whether narrative or code samples) help! Otherwise, please feel free to email me directly if you have concerns you can't or don't want to share on the public forum: rob.lauer @ telerik

I'm happy to follow up with you individually to see what we can do to make AppBuilder work for you.

Regards,
Rob Lauer
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET. Seats are limited.

 
0
marcusqueen
Top achievements
Rank 1
answered on 14 Sep 2014, 05:01 PM
I'm having the same problem the OP has. I created a brand new project
this morning (cloned the weather app) and the error still periodically
appears. Some times it works in the debugger and other times it does
not.

Is there a real fix to this issue?
 
0
Zdravko
Telerik team
answered on 17 Sep 2014, 02:51 PM
Hi marcusqueen,

Would you please open a private ticket as described here and provide us the app you are using and the steps we should follow so we could try to reproduce locally?

I am afraid I wasn't able to reproduce it on my own.
Thanks in advance.

Regards,
Zdravko
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Report a bug
Asked by
Don
Top achievements
Rank 1
Answers by
Don
Top achievements
Rank 1
Iva Koevska
Telerik team
Tyler
Top achievements
Rank 1
siva
Top achievements
Rank 1
Andrew Galea
Top achievements
Rank 1
Marco
Top achievements
Rank 2
Ryan
Top achievements
Rank 1
Rob Lauer
Telerik team
marcusqueen
Top achievements
Rank 1
Zdravko
Telerik team
Share this question
or