Object #<Object> has no method 'appLevelNativeScrolling'

26 posts, 0 answers
  1. Don
    Don avatar
    66 posts
    Member since:
    Jun 2012

    Posted 22 Mar 2014 Link to this post

    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.
  2. Don
    Don avatar
    66 posts
    Member since:
    Jun 2012

    Posted 22 Mar 2014 in reply to Don Link to this post

    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.
  3. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 24 Mar 2014 Link to this post

    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.

     
  4. Tyler
    Tyler avatar
    6 posts
    Member since:
    Mar 2012

    Posted 24 Mar 2014 in reply to Iva Koevska Link to this post

    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
  5. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 25 Mar 2014 Link to this post

    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.

     
  6. siva
    siva avatar
    1 posts
    Member since:
    Mar 2014

    Posted 26 Mar 2014 in reply to Don Link to this post

    Thanks Don it's Really help full for me...............
  7. Don
    Don avatar
    66 posts
    Member since:
    Jun 2012

    Posted 26 Mar 2014 in reply to siva Link to this post

    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.

  8. Don
    Don avatar
    66 posts
    Member since:
    Jun 2012

    Posted 26 Mar 2014 in reply to Iva Koevska Link to this post

    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.



    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?

  9. Andrew Galea
    Andrew Galea avatar
    22 posts
    Member since:
    Nov 2009

    Posted 27 Mar 2014 in reply to Don Link to this post

    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
  10. Andrew Galea
    Andrew Galea avatar
    22 posts
    Member since:
    Nov 2009

    Posted 27 Mar 2014 in reply to Andrew Galea Link to this post

    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
  11. Marco
    Marco avatar
    20 posts
    Member since:
    May 2011

    Posted 28 Mar 2014 in reply to Andrew Galea Link to this post

    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....
  12. Marco
    Marco avatar
    20 posts
    Member since:
    May 2011

    Posted 28 Mar 2014 in reply to Marco Link to this post

    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.....

  13. Marco
    Marco avatar
    20 posts
    Member since:
    May 2011

    Posted 28 Mar 2014 in reply to Marco Link to this post

    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.....
  14. Marco
    Marco avatar
    20 posts
    Member since:
    May 2011

    Posted 28 Mar 2014 in reply to Marco Link to this post

    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.....
  15. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 28 Mar 2014 Link to this post

    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.

     
  16. Ryan
    Ryan avatar
    43 posts
    Member since:
    Mar 2012

    Posted 29 Mar 2014 Link to this post

    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

  17. Ryan
    Ryan avatar
    43 posts
    Member since:
    Mar 2012

    Posted 29 Mar 2014 in reply to Ryan Link to this post

    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
  18. Andrew Galea
    Andrew Galea avatar
    22 posts
    Member since:
    Nov 2009

    Posted 29 Mar 2014 Link to this post

    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
  19. Ryan
    Ryan avatar
    43 posts
    Member since:
    Mar 2012

    Posted 29 Mar 2014 in reply to Andrew Galea Link to this post

    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*
  20. Ryan
    Ryan avatar
    43 posts
    Member since:
    Mar 2012

    Posted 29 Mar 2014 in reply to Andrew Galea Link to this post

    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
  21. Marco
    Marco avatar
    20 posts
    Member since:
    May 2011

    Posted 30 Mar 2014 in reply to Ryan Link to this post

    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...



  22. Ryan
    Ryan avatar
    43 posts
    Member since:
    Mar 2012

    Posted 30 Mar 2014 in reply to Marco Link to this post

    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 :(
  23. Ryan
    Ryan avatar
    43 posts
    Member since:
    Mar 2012

    Posted 30 Mar 2014 Link to this post

    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...
  24. Rob Lauer
    Admin
    Rob Lauer avatar
    18 posts

    Posted 31 Mar 2014 Link to this post

    @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.

     
  25. marcusqueen
    marcusqueen avatar
    2 posts
    Member since:
    Sep 2014

    Posted 14 Sep 2014 Link to this post

    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?
     
  26. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 17 Sep 2014 Link to this post

    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.

     
Back to Top