SelectedItems MultiLine?

5 posts, 1 answers
  1. Rob
    Rob avatar
    59 posts
    Member since:
    Jan 2012

    Posted 26 Jan 2015 Link to this post

    Hey Guys

    I would like the selectedItems to line wrap when required. Ideally I would like the control to grow in height when the user selects enough items that require a new line. ( the same way as the Telerik MultiSelect Web Controls work)

    See screen Shot.. the top control has the minimum height updated to what I would like to be the maximum height , however the selected items just dis appear off and cannot be seen.

    I have been fiddling with the minimum , maximum sixes etc, but I don't seem to find how to achieve this. ( Maybe it's related to how I add the selected items?)

    Any help most appreciated.

    Rob
  2. Answer
    Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 27 Jan 2015 Link to this post

    Hi Rob,

    Thank you for contacting us. 

    You need to set the Multiline and WordWrap properties of the CheckedDropDownAutoCompleteBoxElement to true. Here is the code snippet: 

    this.radCheckedDropDownList1.AutoSize = true;
    this.radCheckedDropDownList1.CheckedDropDownListElement.AutoCompleteEditableAreaElement.AutoCompleteTextBox.Multiline = true;
    this.radCheckedDropDownList1.CheckedDropDownListElement.AutoCompleteEditableAreaElement.AutoCompleteTextBox.WordWrap = true;

    Please take a look at the attached video (drag and drop over the browser to play) and sample demo which demonstrates you the behavior of the list. 

    I hope this will help. Do not hesitate to write back with further questions.

    Regards,
    Ralitsa
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Rob
    Rob avatar
    59 posts
    Member since:
    Jan 2012

    Posted 27 Jan 2015 Link to this post

    Thanks so much for the video and example Ralitsa

    I updated my project with those set, without any change.  I guessed it was to do with the way I was binding to a custom object , so I built a new project to demonstrate it didn't work..  only to find that the cut down example with the same custom bindings also works..

    I have compared every parameter between the 2 projects and at this point I'm at a loss as to why 1 works and the other doesn't.

    I'll carry on trying to find the issue.

    Thanks again

    Rob

  5. Rob
    Rob avatar
    59 posts
    Member since:
    Jan 2012

    Posted 27 Jan 2015 Link to this post

    *Face Palm*

    I'm updating an old product I wrote years ago.. and forgot I have a whole locale / translation process that re-initializes all the controls when it sets the language. ( sets locale and then translations for every control)

    Of course when I reinitialize all the controls ( to update the locale), I loose any property settings that are set in code.

    All working now as it should.

    Thanks again.

    Rob




  6. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 28 Jan 2015 Link to this post

    Hi Rob,

    Thank you for your reply. 

    In my previous post I attached a sample demo which was created with the RadCheckedDropDownList. The control was introduced in Q3 2014 (version 2014.3.1104). I didn`t know that you were upgrading your project. 

    I am glad that the problem you were facing is now resolved. Do not hesitate to write back with further questions. 

    Have a nice day. 
    Ralitsa
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for WinForms is Visual Studio 2017 Ready