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

Feature Request

3 Answers 30 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 26 Apr 2011, 02:22 PM
This something the RadButton has that I'd like to see in the Toolbar as well

I don't want each toolbar button to have it's own "ImageURL" so I get more resources downloaded.

Instead what I'd like is the ability to say

ImagePosition="Right" ImageCss="PrevButton"

So the image element for that button would be inserted left or right (depending on the Position set), but have the CssClass applied instead of an image so the css allows me to use a background image sprite.

I know I can probably skirt it by setting CSS to be like "Prev_right" and "Prev_left" but I'd like to make this easier for my devs...the RadButton handles it very elegantly.

PLEASE :)

3 Answers, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 26 Apr 2011, 03:12 PM
This is how I'm doing it now

Would just be nice to append the class to the rtbIcon span directly if possible...

.RadToolBar span.rtbIcon{
    width: 56px;
}
 
.RadToolBar span.rtbIcon, .RadToolBarDropDown span.rtbIcon {
    background-image: url('ToolBar/toolbarsprite.png') !important;
    background-repeat: no-repeat;
    display: inline-block;
    height: 30px !important;
    width: 30px !important;
}
 
.Prev span.rtbIcon{
    background-position: -3px -12px !important;
}
 
.Next span.rtbIcon{
    background-position: -3px -145px !important;
}
0
Kate
Telerik team
answered on 28 Apr 2011, 04:41 PM
Hi Steve,

Thank you very much for your suggestion.

It sounds very reasonable and convenient. I will forward your request to our development team for future consideration.

Regards,
Kate
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Simon
Telerik team
answered on 02 May 2011, 03:16 PM
Hi Steve,

We reviewed your request and will need more information about the actual feature you are suggesting. Can you let me know why the current sprite support and image positioning mechanism does not work for you and explain in more details what is the implementation you would like to be available and why?

Best wishes,
Simon
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ToolBar
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Kate
Telerik team
Simon
Telerik team
Share this question
or