Icenium Graphite 1.6 simulator - list item a href no navigate

7 posts, 0 answers
  1. juancarlos
    juancarlos avatar
    3 posts
    Member since:
    Jun 2013

    Posted 25 Jun 2013 Link to this post

    In the simulator I'm trying to test navigation in listview does not work.
    In my phone and  google chrome works.

        <!-- Categories -->
        <div id="categories-view" data-role="view" data-title="Categories"
            data-model="app.categoriesView.viewModel" data-transition="slide:left" style="display: none;" >
            <header data-role="header">
                <div data-role="navbar">
                    <span data-role="view-title"></span>
                    <a class="nav-button" data-align="left" data-role="backbutton">Home</a>
                </div>
            </header>
            <ul id="getAllProducts"
                data-role="listview" 
                data-style="inset">
                <li>
                    <a href="products-view">ALL PRODUCTS</a>
                </li>
            </ul>
            <ul id="categories_list"
                data-role="listview"
                data-bind="source: categories"
                data-template="categories-list-template"
                data-style="inset">
            </ul>
        </div>

        <script id="categories-list-template" type="text/x-kendo-template">
            <a href="\#subcategories-view?field=id_category&operator=eq&value=#=id_category#&title=#:encodeURIComponent(category_name).replace("'", "%27")#">#: category_name #</a>
        </script>

  2. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 26 Jun 2013 Link to this post

    edited for incorrectness ;-)
  3. juancarlos
    juancarlos avatar
    3 posts
    Member since:
    Jun 2013

    Posted 26 Jun 2013 Link to this post

    First of all thank you very much for your reply.

    This same code works in any environment least Graphite after update to version 1.6.

    Currently I am using Graphite Mist to finish development.
  4. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 26 Jun 2013 Link to this post

    Okay, I answered to quick. You are correct, click events in a listview are not fired in the simulator for both iOS and Android simulation.

    On the device it is working!

    Btw, this thread should be in a different forum!
  5. juancarlos
    juancarlos avatar
    3 posts
    Member since:
    Jun 2013

    Posted 26 Jun 2013 Link to this post

    The same code works in any environment.
    In "Graphite" has stopped working since last update. Version 1.6

    I'm currently using "Mist" to finish the development.

    I hope that soon to improve the functioning of "graphite"
  6. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 26 Jun 2013 Link to this post

    Yes, I think a quick update is in place. I am sure Icenium is already working on it!
  7. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 26 Jun 2013 Link to this post

    Some progress for me with regard to this. Juan Carlos, if are you using Kendo UI, make sure you replace your Kendo files with the latest versions. Follow these steps:

    1. Make sure to have a backup of your project
    2. Create a (temporary) new project with Kendo UI framework
    3. Copy/paste the contents of the following files over the already existing files: jquery.min.js, kendo.mobile.min.js, kendo.mobile.all.min.css
    4. Remove the temporary project

    Now your click events should work in the listview.

    There seems to be one thing that changed for me and that is that I now see an arrow '>' at the most right position of each <LI>. These were not there before.
Back to Top