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

DataGrid Filtering issue on Mobile app

2 Answers 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Walid
Top achievements
Rank 1
Walid asked on 04 Dec 2013, 04:43 PM
Hello,

Let's take the following example (3 views: one view with 2 buttons that when clicked redirects the app to the other views, each of them containing a grid):

<body>
    <div id="mainPage" class="k-content" data-role="view">
        <a data-role="button" href="#example1">Test 1</a>
        <a data-role="button" href="#example2">Test 2</a>
    </div>
 
     <div id="example1" class="k-content" data-role="view">
            <div id="grid1"></div>
            ....
    </div>
 
     <div id="example2" class="k-content" data-role="view">
            <div id="grid2"></div>
             .....
    </div>
 
    <script>
        var app = new kendo.mobile.Application(document.body);
    </script>
 
</body>
After pressing one of the 2 buttons in the top the app will navigate to one of those 2 views that have a grid inside (The scripts to create the grids and other data is omitted). When trying to filter a grid's column the app will navigate to a new view that contains the filter view ( or the column menu, depending on the settings of the grid). After pressing one of the buttons in the Filter view (Clear, Filter, Cancel)  the app is redirected to the initial view when the app started which is: "mainPage" view. Why is this happening? Why doesn't it redirect me to the previously view (the view with the grid that triggered this filtering) ?
My application is much more complex than that, but I've reduced the problem to this simple example.
Can I override this behavior of the grid's filtering on Mobile applications, and set the normal web one with dropdown ? 

Thanks,
Walid

2 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 06 Dec 2013, 01:46 PM
Hello Walid,

I tried to reproduce the behaviour in a sample page but to no avail. Could you please check my sample and let me know what I am missing?
Does the problem occurs in the test page? If yes, on which device and OS system?

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Walid
Top achievements
Rank 1
answered on 09 Dec 2013, 02:58 PM
Hello Alexander,

After making a diff between your example and mine, I've seen that the "mobile" property on the grid did the trick. Even if set to <true>, same issue, not to mention that the styles of the filtering view is broken. I've modified to "tablet" and everything works fine.

Pretty annoying that a small property makes such a difference. 

Thanks,
Walid
Tags
Grid
Asked by
Walid
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Walid
Top achievements
Rank 1
Share this question
or