Sunday, March 11, 2012

Ranking Control does not Print

Anyone?
Can you post your rating control, css, and any images? I'd like to play with this some.

I am using the rating control found in the Atlas Toolkit. You can use the Rating control sample to view the effect. I used the CSS and images from the sample in the project.

I have noted that if you use the advanced IE option of 'Print background images' that the images do print, but this is more of a workaround than a real solution since I cannot demand the users to enable the option.


We plan to actually change the background images and embed the stars in img tags. This is to improve the accessibility of the Rating control in High Contrast. The same applies to Slider and Tabs.

Ah! That's why it is happening. The style sheet:

.savedRatingStar {
background-image:url(Images/SavedStar.png);
}

It uses background images to display the stars. So these are not rendered as <img> tags, and hence they won't be printed unless the background image stuff is activated. Given what I have seen, this seems to be a common problem on the net and the "correct" fix may take a bit of a re-write, or at least a new feature, for the ratings control.


kirtid:

We plan to actually change the background images and embed the stars in img tags. This is to improve the accessibility of the Rating control in High Contrast. The same applies to Slider and Tabs.

Kirti --

Is there an ETA on when the change will be available? I could try to tackle this myself, but I am by no means an expert in the technigues used to build the toolkit.


shanede:

Ah! That's why it is happening. The style sheet:

.savedRatingStar {
background-image:url(Images/SavedStar.png);
}

It uses background images to display the stars. So these are not rendered as <img> tags, and hence they won't be printed unless the background image stuff is activated. Given what I have seen, this seems to be a common problem on the net and the "correct" fix may take a bit of a re-write, or at least a new feature, for the ratings control.

Thanks Shane. This is what I had been afraid of, but I was hoping I was wrong.


Have you tried theToolkit Patch Utility? It would be great to see more fixes coming from the community. We hope that we serve to merely moderate the fixes. We would like to include these fixes in our next release which is targeted around end of May but that is a tentative plan.
I have, but I did not see anything related to this issue.

Here is a link to the bug:http://www.codeplex.com/AtlasControlToolkit/WorkItem/View.aspx?WorkItemId=8220.

You can attach the patch to it with comments. Please make sure the Rating tests pass in FF and IE at least. Let me know if you would like to discuss the fix since it might involve changing quite some code in the Rating control.

No comments:

Post a Comment