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

DropDown/Select list work as tabstrip

1 Answer 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Veteran
Marcin asked on 21 Mar 2013, 12:23 PM
I have problem with making drop down or select list in the same way as tabstrip, so after change value it refreshes view with proper param.

Tried folowing code, but this is not causing view refresh:
<select name="weekChooser" onchange="javascript:handleSelect(this);">
<option id="choose0" value="#chartView?period=13">CW13 - 26/03/2012</option>
<option id="choose1" value="#chartView?period=14">CW14 - 02/04/2012</option>
</select>
 
<script type="text/javascript">
function handleSelect(elm)
{
window.location = elm.value;
}
</script>
where view is defined like :
<div data-role="view" id="chartView" data-title="Some Title" data-layout="databinding" data-init="initChart" data-show="refreshChart">
<div>
</div>
</div>
Can anybody help with this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 25 Mar 2013, 09:23 AM
Hello Marcin,

Thank you for contacting us.

Changing the window.location is not recommended as it will force the page to reload. Instead, please consider using the navigate method of the mobile application. In case you would like the remote View to be reloaded from the server, please set its reload option to true. Note that this option was added in Q1 release (v.2013.1.319).

I hope this will help.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Marcin
Top achievements
Rank 1
Veteran
Answers by
Alexander Valchev
Telerik team
Share this question
or