Posted By

Dmix on 04/15/15


Tagged

calendar mobile design scheduler aspnet MVC responsive adaptive


Versions (?)

Making ASP.NET Calendar Responsive For Mobile and Tablets


 / Published in: C#
 

URL: http://blog.scheduler-net.com/post/responsive-net-calendar-mobile-tablets.aspx

Find out how to make your event calenar/scheduler created with DHTMLX Scheduler .NET web control more mobile-friendly and touch-responsive.

  1. function addJS(url, callback) {
  2. var head = document.getElementsByTagName('head')[0];
  3. var script = document.createElement('script');
  4. script.type = 'text/javascript';
  5. script.src = url;
  6. script.onreadystatechange = callback;
  7. script.onload = callback;
  8. head.appendChild(script);
  9. }
  10.  
  11.  
  12. if (/Android|webOS|iPhone|iPad|iPod|IEMobile/i.test(navigator.userAgent)) {
  13. addJS("../Scripts/dhtmlxScheduler/ext/dhtmlxscheduler_quick_info.js", function () {
  14. scheduler.config.touch = "force";
  15. scheduler.xy.menu_width = 0;
  16. });
  17. }

Report this snippet  

You need to login to post a comment.