Radcombobox dropdownautowidth not working

4 posts, 0 answers
  1. Nahwin
    Nahwin avatar
    22 posts
    Member since:
    Dec 2012

    Posted 20 Aug 2013 Link to this post

    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.
  2. Magdalena
    Admin
    Magdalena avatar
    421 posts

    Posted 23 Aug 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nahwin
    Nahwin avatar
    22 posts
    Member since:
    Dec 2012

    Posted 27 Aug 2013 Link to this post

    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?
  5. Magdalena
    Admin
    Magdalena avatar
    421 posts

    Posted 28 Aug 2013 Link to this post

    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.
Back to Top