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

[Solved] Hide Combo Dropdown Arrow

4 Answers 988 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Zach
Top achievements
Rank 1
Zach asked on 09 May 2008, 08:54 PM
Here's an example of hiding the drop down arrow for a specific combobox.

 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Combo Example</title> 
   
 <style type="text/css">  
      .HideArrow .rcbInputCell{border-right:solid 1pt black !important;}  
      .HideArrow .rcbArrowCell{display:none !important;}  
 </style> 
      
      
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <div>Normal</div> 
    <div> 
        <telerik:RadComboBox ID="RadComboBox1" runat="server">  
            <Items> 
                <telerik:RadComboBoxItem Text="One" /> 
                <telerik:RadComboBoxItem Text="Two" /> 
                <telerik:RadComboBoxItem Text="Three" /> 
            </Items> 
        </telerik:RadComboBox> 
    </div> 
      <div>No Arrow</div> 
    <div> 
        <telerik:RadComboBox ID="RadComboBox2" runat="server" CssClass="HideArrow">  
            <Items> 
                <telerik:RadComboBoxItem Text="One" /> 
                <telerik:RadComboBoxItem Text="Two" /> 
                <telerik:RadComboBoxItem Text="Three" /> 
            </Items> 
        </telerik:RadComboBox> 
    </div> 
    </form> 
</body> 
</html> 

4 Answers, 1 is accepted

Sort by
0
Poul Henningsen
Top achievements
Rank 1
answered on 10 May 2008, 02:20 PM
Thanks for the example, Zach.

But don't you think it would be easier if you just set the ShowToggleImage property of the combobox to false?

Cheers,
Poul
0
Zach
Top achievements
Rank 1
answered on 10 May 2008, 09:20 PM
Hi Poul,

Thanks for pointing that out, using the property is definitely easier, I had not noticed it before. Although, it does not seem to work in the 2008.1.415 version. It does work in a hotfix build (2008.1.508), but still leaves the right border of the box missing. Have you observed the same?

Thanks,
Zach
0
Paul
Telerik team
answered on 13 May 2008, 08:51 AM
Hello Zach,

Please find attached the latest internal build of the control that addresses the issue. Give it a try and let us know how it goes on your side.

Best wishes,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Zach
Top achievements
Rank 1
answered on 14 May 2008, 04:53 AM
Thanks Simon, the ShowToggleImage property is now working and looking as expected.
Tags
ComboBox
Asked by
Zach
Top achievements
Rank 1
Answers by
Poul Henningsen
Top achievements
Rank 1
Zach
Top achievements
Rank 1
Paul
Telerik team
Share this question
or