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

Radcombobox dropdownautowidth not working

3 Answers 143 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Nahwin
Top achievements
Rank 1
Nahwin asked on 20 Aug 2013, 03:54 PM
Hi there all,

lets get down to business,

so here I am using RadCombobox and as usual i fill the item with data from sharepoint list.

The problem is the DropDownAutoWidth
is not working even though I've set it to "Enabled",

I have RadCombobox using checkboxes and not using checkboxes,
I also have RadCombox which width is specified and one that the width is not specified
with all those radcombobox none of the DropDownAutoWidth
is working, as far as the documentation goes all I need to do is set the DropDownAutoWidth to Enabled

<td class="ms-formbody">
    <telerik:RadComboBox ID="rcbxContinuity" runat="server" AutoPostBack="false" HighlightTemplatedItems="True"
        MarkFirstMatch="true" EmptyMessage="Choose a continuity" Width="175px" Sort="Ascending" DropDownAutoWidth="Enabled">
    </telerik:RadComboBox>
</td>
 
<td class="ms-formbody">
    <telerik:RadComboBox ID="rcbxContinuity" runat="server" CheckBoxes="true" Width="175px"
        Sort="Ascending" EnableCheckAllItemsCheckBox="false" EmptyMessage="Choose continuity"
        DropDownAutoWidth="Enabled">
    </telerik:RadComboBox>
</td>

.ms-formbody
{
    font-family: verdana;
    font-size: 12px;
    vertical-align: top;
    background: #f6f6f6;
    color: #000000 !important;
    border-top: 1px solid #d8d8d8;
    padding: 3px 6px 4px 6px;
}


Help and suggestion will be really appreciated.


Thanks in Advance.

3 Answers, 1 is accepted

Sort by
0
Magdalena
Telerik team
answered on 23 Aug 2013, 12:01 PM
Hello Nahwin,

Thank you for contacting us.

I can't reproduce the issue with the auto-width that you mentioned. After applying the code you sent the drop-down are stretching depending on the length of the items. You can see the behavior in this video. Could you please modify the file in the attachment to reproduce the issue? Please clarify also what browser are you testing with?

I am not sure if your items are wider or narrower as the RadComboBox but please keep in mind that there is a minimal width of the drop-down so if the items are wider the auto-width doesn't apply.

Do not hesitate to contact me if you have other questions.

 
Regards,
Magdalena
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Nahwin
Top achievements
Rank 1
answered on 27 Aug 2013, 06:49 PM
Hi Magdalena, Thank you for your reply and sorry for my late reply. I think i know the source of the problem, Most likely because I havent updated my telerik to latest versio (q3 something i supposed, i'm still using q2 if i'm not mistaken) Anyway i come to this conclussion as the intellisense does not show auggestion for autowidth, But there's come new question why there's no error or warning given when I'm using autowidth property?
0
Magdalena
Telerik team
answered on 28 Aug 2013, 10:16 AM
Hi Nahwin,

Thank you for getting back.

RadComboBox control inherits WebControl which allows to add custom attributes in its markup. That is why an exception is not thrown.

Do not hesitate to contact me if you have other questions.
 

Regards,
Magdalena
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
ComboBox
Asked by
Nahwin
Top achievements
Rank 1
Answers by
Magdalena
Telerik team
Nahwin
Top achievements
Rank 1
Share this question
or