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

Slider not recognizing colspan

1 Answer 39 Views
Slider
This is a migrated thread and some comments may be shown as answers.
carol
Top achievements
Rank 1
carol asked on 06 Sep 2011, 07:05 PM
We have a slider with a colspan specification.  If we make the width="100%", it only makes it as wide as the first column.  If we do a width="400px", we run into problems with column widths as we don't know how wide the four columns will be. 

I expect the "100%" to make it as wide as the four columns.  How can we make it 100% or is a code fix needed as to me, it appears to be a bug in the control.  Here is the code snippet:

<tr>
        <td>Off</td>
        <td colspan="4">
            <telerik:RadSlider ID="RunAssetRS" runat="server"  width="100%" OnClientValueChanged="RunAssetRS_OnValueChanged" OnClientLoad="RunAssetRS_OnValueChanged" ShowDecreaseHandle="false" ShowIncreaseHandle="false" ></telerik:RadSlider>
        </td>
        <td>990</td>
</tr>


1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 08 Sep 2011, 04:03 PM
Hi Carol,

RadSlider does not support percentages because this is not a control that defines layout (such as RadSplitter) and it is not expected the controls to support that feature. Also if you look at Slider demos you will not find one with width set with percentages. You should use pixels to define control width and / or renosider using tables for your layout.

Regards,
Bojo
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Slider
Asked by
carol
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or