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

Image Optimisation

3 Answers 104 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 13 Oct 2010, 06:45 PM
I know that you guys have been using sprites in skins for an age now, but I stumbled across the Sprite and Image Optimization FrameWork on CodePlex and wondered if anyone from telerik towers wanted to comment on its usability with controls like RadToobBar and RadTreeView where the developer may well be requesting a number of images for the control in question.

-- 
Stuart

3 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 19 Oct 2010, 09:55 AM
Hi Stuart,

We didn't test this Image Optimization Framework with our RadControls but two things that would probably be incompatible are:

- CSS Minifying: this would remove comments in the stylesheet and we need to use some IE hacks that are relying on comments. Its okay for external skins that don't have such hacks.
- IMG tags: Our controls currently don't support sprites for their ImageUrl attributes and while we are working in this direction, it seems the Image Optimization Framework requires the usage of a specific ASP.NET control - namely SpriteImage - which we don't have support for. This can be worked around by specifying the classes and background positions manually after their generation, but this kind of defeats the purpose of the framework.

So to summarize: It is possible, but the gains would be negligible if you need to do half of the work manually. Let me know if I'm missing something (I only checked the framework documentation).

Best wishes,
Kamen Bundev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Stuart Hemming
Top achievements
Rank 2
answered on 29 Oct 2010, 11:18 AM
Kamen,

I have to say that I was thinking of this more in terms of the developer using these techniques rather than trying to suggest the telerik should be doing it.

If I, as a developer, were to implement the "SpriteImage" control on my pages with a view to using sprites for my ImageUrl values, could you foresee a problem that would get in the way of the control, let's say the RadToolBar as an example, doing that which is supposed to?

-- 
Stuart
0
Kamen Bundev
Telerik team
answered on 04 Nov 2010, 02:32 PM
Hello Stuart,

We do not use SpriteImage control for the images in RadToolBar buttons and RadTreeView nodes since it is an external framework, but I don't see a problem If you use templates and implement the item images yourself with that SpriteImage control instead of a normal Image control.

Sincerely yours,
Kamen Bundev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Kamen Bundev
Telerik team
Stuart Hemming
Top achievements
Rank 2
Share this question
or