AJAX documentation for Device Detection Framework

6 posts, 0 answers
  1. Tim Runyan
    Tim Runyan avatar
    18 posts
    Member since:
    Apr 2007

    Posted 27 Nov 2014 Link to this post

    In the final example showing the use of custom ranges, ExtraLarge is defined twice. Shouldn't one of those lines be defining Large instead?
  2. Dimitar
    Admin
    Dimitar avatar
    281 posts

    Posted 28 Nov 2014 Link to this post

    Hello,

    Your remark is correct. The customScreenRanges defined in the article should be as follows:

    customScreenRanges.SmallScreenSizeRange = new ScreenRange(0, 100);
    customScreenRanges.MediumScreenSizeRange = new ScreenRange(101, 200);
    customScreenRanges.LargeScreenSizeRange = new ScreenRange(201, 300);
    customScreenRanges.ExtraLargeScreenSizeRange = new ScreenRange(301, 400);

    The article will be updated accordingly.

    Regards,
    Dimitar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 05 Aug 2015 in reply to Dimitar Link to this post

    It still has not been updated!

    http://docs.telerik.com/devtools/aspnet-ajax/controls/raddevicedetectionframework

    I have 2 questions/comments on this.

    1. Where is XS?  "customScreenRanges.ExtraSmallScreenSizeRange = new ScreenRange(0, 360);"

    2. How can I set a range with an open top end? Like customScreenRanges.ExtraLargeScreenSizeRange = new ScreenRange(1281);

     

     

  5. Dimitar
    Admin
    Dimitar avatar
    281 posts

    Posted 06 Aug 2015 Link to this post

    Hello,

    I apologize that this issue has not been fixed yet. It has now been fixed and the update will go live with the next documentation update. As a side note, we have recently released public GitHub repository of our documentation, which could be modified by everyone. And as pointed in the blog post on that topic "all valuable contributions will be rewarded with Telerik points–just make sure you are using the same email for your GitHub and Telerik.com accounts."

    As for the first question posed, I guess that the first one comes after comparing the RadPageLayout breakpoints and the RadDeviceDetectionFramework ranges. The RadPageLayout has different viewport breakpoints than the ones used for RadDeviceDetectionFramework due to its different purpose. The RadPageLayout is used for setting up layout, not for enabling render mode. Thus, it needs one more level for enabling different layout for different cases. In addition, the RadDeviceDetectionFramework provides the opportunity to define your own custom ranges, if the default ones does not fit your case. That is why there is no ExtraSmallScreenSizeRange for RadDeviceDetectionFramework.

    And for your second question, the answer is that you cannot set a range with open top end. You could define it with a greater number as a top border, but it cannot be empty.

    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 07 Aug 2015 in reply to Dimitar Link to this post

    Dimitar, Thanks.

    I do not want to sound angry or upset, but I do not want to have to update the docs myself.  I pay for my Telerik subscription and I expect a professionally maintained product and not something I can update myself. While I appreciate the opportunity to earn points from time to time I think 9 months is too long to expect a simple document change.

    As far as my questions regarding the commonality between PageLayout and DeviceDetection I would think it would be beneficial if they did have the same breakpoints. I think Ivan is even recommending using one to work with the other in this post.

    http://www.telerik.com/forums/radpagelayout-detects-wrong-screensize-and-viewport

    Marty

  7. Dimitar
    Admin
    Dimitar avatar
    281 posts

    Posted 10 Aug 2015 Link to this post

    Hello Marty,

    I sincerely apologize if the information about the new opportunity for contributing to our documentation seems as an urge to fix the error by yourself. I just wanted to present you this new feature we released recently with our GitHub hosted documentation.

    As far as the breakpoints inconsistency is concerned, we will update the documentation once that story is complete. Until then, you could define custom ranges as I mentioned in my previous reply. Since the custom ranges part in the help article is exactly the one that contains the repeated ExtraLarge mistake, I did not provide a link to it specifically. Please excuse me if that has caused you spend extra time searching.

    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017