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

AJAX documentation for Device Detection Framework

5 Answers 117 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
Tim Runyan
Top achievements
Rank 1
Tim Runyan asked on 27 Nov 2014, 10:30 PM
In the final example showing the use of custom ranges, ExtraLarge is defined twice. Shouldn't one of those lines be defining Large instead?

5 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 28 Nov 2014, 08:28 AM
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.

 
0
moegal
Top achievements
Rank 1
answered on 05 Aug 2015, 12:36 PM

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);

 

 

0
Dimitar
Telerik team
answered on 06 Aug 2015, 02:35 PM
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
0
moegal
Top achievements
Rank 1
answered on 07 Aug 2015, 01:06 PM

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

0
Dimitar
Telerik team
answered on 10 Aug 2015, 11:07 AM
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
Tags
Documentation and Tutorials
Asked by
Tim Runyan
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
moegal
Top achievements
Rank 1
Share this question
or