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

Drawer with dynamic views

1 Answer 176 Views
Drawer (Mobile)
This is a migrated thread and some comments may be shown as answers.
Ingemar
Top achievements
Rank 1
Ingemar asked on 27 Mar 2014, 09:04 AM
Im using the drawer to display a dynamic number of remote views. A PHP page is used to display the views:

data-views="['drawer-home', 'drawer-settings',  'item.php?id=1',  'item.php?id=2',  'item.php?id=3' ]

Loading the first view with Item 1 works fine, but then when switching to Item 2 the framework seems to think that it is the same page and displays the Item 1 view again.

How can I fix this?

And a second question, is it possible to force and update of a remote view? (Reload)

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 27 Mar 2014, 04:03 PM
Hi Ingemar,

my guess is that you are processing the query string parameters on the server. If this is the case, you should use the remote view data-reload configuration option. The drawer should feature only 'item.php' as an allowed view - you don't need the query string parameters.

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Drawer (Mobile)
Asked by
Ingemar
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or