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

Is it possible to specify image dimensions for IconURL?

1 Answer 45 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 2
Sean asked on 21 Jul 2011, 08:57 PM
Hi all,

I am working on optimizing my page load time. I ran my page through Google Chrome's Network Utilization Audit. One of the suggestions it makes is to specify image dimensions.

"A width and height should be specified for all images in order to speed up page display. The following image(s) are missing a width and/or height:"

but I am referencing my images like so:

<telerik:RadSlidingPane ID="RadSlidingPane2" Runat="server" IconUrl="~/Content/Dashboard/Icons/chart.png" TabView="ImageOnly" BackColor="#ECF4FD" MinWidth="160" Scrolling="Y" Title="Custom Widgets" Width="160px" EnableDock="False">
    <telerik:RadListBox ID="lstBxCustom" runat="server" EnableDragAndDrop="True" onclientdragging="OnClientDragging" OnClientDropping="OnClientDropping" Skin="Web20" Sort="Ascending" Width="100%" />
</telerik:RadSlidingPane>

Is there a simple way to fulfill this?

Sean

1 Answer, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 26 Jul 2011, 02:52 PM
Hi Sean,

It is not possible to predefine the size of the icon of the sliding pane's tab in the declaration. However, you can fulfill this requirement using CSS, e.g:
.rspPaneTabIcon
{
    width: 16px;
    height: 16px;
}


Best wishes,
Dobromir
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Splitter
Asked by
Sean
Top achievements
Rank 2
Answers by
Dobromir
Telerik team
Share this question
or