Hello,
We have a responsive web design targeting with first. I am currently using the bootstrap 3 carousel control for images, however, we would like to move to the Kendo Mobile ScrollView to use the swipe actions when on mobile.
I have been trying to integrate the mobile ScrollView into the page using MVC wrappers without luck. I'm not looking for syntax help, I just need to know if it can be done, if so, a sample would be great.
I'm fairly new to the Kendo widgets, I noticed there is no MVC wrapper demo for databinding the mobile scrollview? I was hoping to use that as my starting point to learn the syntax.
I have been messing with this in all sorts of configurations trying to get it to work unsuccessfully, I think I'm missing some core guidance.
Thank you.
My script bundle:
My style bundle:
My layout page:
On my view page:
And I have tried with and without this at the bottom of the page:
Thank you,
Richard
We have a responsive web design targeting with first. I am currently using the bootstrap 3 carousel control for images, however, we would like to move to the Kendo Mobile ScrollView to use the swipe actions when on mobile.
I have been trying to integrate the mobile ScrollView into the page using MVC wrappers without luck. I'm not looking for syntax help, I just need to know if it can be done, if so, a sample would be great.
I'm fairly new to the Kendo widgets, I noticed there is no MVC wrapper demo for databinding the mobile scrollview? I was hoping to use that as my starting point to learn the syntax.
I have been messing with this in all sorts of configurations trying to get it to work unsuccessfully, I think I'm missing some core guidance.
Thank you.
My script bundle:
bundles.Add(new ScriptBundle("~/bundles/kendo").Include( "~/Scripts/kendo/kendo.all.min.js", "~/Scripts/kendo/kendo.mobile.min.js", "~/Scripts/kendo/kendo.aspnetmvc.min.js"));My style bundle:
bundles.Add(new StyleBundle("~/Content/kendo/css").Include( "~/Content/kendo/kendo.mobile.all.min.css", "~/Content/kendo/kendo.common-bootstrap.min.css", "~/Content/kendo/kendo.bootstrap.min.css"));My layout page:
@Styles.Render("~/Content/css")@Styles.Render("~/Content/kendo/css")@Scripts.Render("~/bundles/modernizr")@Scripts.Render("~/bundles/jquery")@Scripts.Render("~/bundles/bootstrap")@Scripts.Render("~/bundles/kendo")On my view page:
<div class="row"> <div class="col-xs-12 col-lg-8 col-centered" style="max-width:600px;"> <div data-role="view"> @(Html.Kendo().MobileScrollView() .Name("adRotator") .DataSource(ds => ds.Read("GetAdRotatorImages", "Ads", new{id = Model.AdId})) ) </div> </div></div>And I have tried with and without this at the bottom of the page:
<script> var app = new kendo.mobile.Application();</script>Thank you,
Richard