Problem with multicolumn combobox Licensed version

10 posts, 0 answers
  1. Prasad
    Prasad avatar
    27 posts
    Member since:
    Oct 2009

    Posted 30 Nov 2009 Link to this post

    Hi there,

    I have developed a windows applications in which am using Telerik RAD multicolumn combobox.

    FYI. I have used the below code to bind the multicolumn combobox.

           Dim dt As New DataTable
           dt = BindData()
           RadMultiColCombobox.DataSource = dt
           RadMultiColCombobox.DisplayMember = "REG_NUM"
           RadMultiColCombobox.ValueMember = "FORM_ID"
           For i As Integer = 0 To dt.Columns.Count - 1
                   RadMultiColCombobox.MultiColumnComboBoxElement.Columns(i).BestFit()
           Next
           RadMultiColCombobox.SelectedIndex = -1

    Using the free trail version, the code worked properly for Columns.BestFit() and Selected Index.

    But when i have installed the Licensed version of Telerik, same code doesnt work properly. All the columns are getting overlapped and also the SelectedIndex is not showing proper data. Please suggest how can i get the columns bestfit size and also assign proper SeletedIndex value.

    Thanks,

    Prasad

  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 01 Dec 2009 Link to this post

    Hello Prasad,

    Yes, I confirm that this issue appears in our latest official release. Thank you for reporting it. I logged it in our bug tracking system and it will be addressed in one of our upcoming releases. Your Telerik points are updated accordingly.

    You can work around the issue by calling LoadElementTree method before setting the DataSource property:

    RadMultiColCombobox.EditorControl.LoadElementTree()
    Dim dt As New DataTable
    dt = BindData()
    RadMultiColCombobox.DataSource = dt
    RadMultiColCombobox.DisplayMember = "REG_NUM"
    RadMultiColCombobox.ValueMember = "FORM_ID"
    For i As Integer = 0 To dt.Columns.Count - 1
        RadMultiColCombobox.MultiColumnComboBoxElement.Columns(i).BestFit()
    Next
    RadMultiColCombobox.SelectedIndex = -1

    I hope this helps.

    Sincerely yours,
    Jack
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Prasad
    Prasad avatar
    27 posts
    Member since:
    Oct 2009

    Posted 01 Dec 2009 Link to this post

    Hi Jack,

    Thanks for ur response. By calling LoadElementTree method solves the issue regarding the columns bestfit.
    But i am unable to set the Dropdown width. The dropdown is taking the exact width of the RadMultiColumnCombobox.
    Using the trail version the following code works fine.

    RadMultiColCombobox.MultiColumnComboBoxElement.DropDownWidth = 450 

    Also am still stuck with the SelectedIndex issue. When the form having the RadMulticolumnCombobox is loaded, i want the
    RadMulticolumnCombobox to be empty. And upon selection from the Dropdown, the column value to be selected. But again by
    default the SelectedIndex is getting set to 0 even though if we explictly set the selection index to -1 in form load as mentioned below.

    RadMultiColCombobox.SelectedIndex = -1 

    Upon selection of a row from the DropDown the corresponding value is not getting populated in the RadMultiColumnCombobox.

    Also i have observed that when  DisplayMember and ValueMember properties are removed from the code , upon selection of a row in the Drop down the corresponding value is getting populated in the RadMultiColumnCombobox. Is this the functionality or an issue with the Licensed Version?

    FYI:   
     
    RadMultiColCombobox.EditorControl.LoadElementTree()  
    Dim dt As New DataTable  
    dt = BindData()  
    RadMultiColCombobox.DataSource = dt 
    For i As Integer = 0 To dt.Columns.Count - 1  
        RadMultiColCombobox.MultiColumnComboBoxElement.Columns(i).BestFit()  
    Next  
     
    RadMultiColCombobox.MultiColumnComboBoxElement.DropDownWidth = 450 
    RadMultiColCombobox.MultiColumnComboBoxElement.DropDownHeight = 250 
    RadMultiColCombobox.SelectedIndex = -1  
     

    I absolutely had no problems when i used the trail version(RadControls for WinForms Q2 2009 SP1) and the application worked fine. But upon installing the Licensed Version(RadControls for WinForms Q3 2009) I am facing these issues. Please let me know how this can be fixed.

    Regards,
    Prasad.

     

  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 03 Dec 2009 Link to this post

    Deyan
  6. Jay
    Jay avatar
    6 posts
    Member since:
    Apr 2009

    Posted 03 Dec 2009 Link to this post

    I'm glad I'm not the only one.  I'm having the exact same issues.  I'll keep tuned in for an answer.
  7. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 04 Dec 2009 Link to this post

    Hi Krishna,

    Thanks for writing back and for the provided details.

    I would like to mention that the differences you encountered are mostly based on the fact that you have used Q2 2009 SP1 trial and after that Q3 2009 version.

    Basically, there are not any functionality differences between the corresponding dev and trial versions (Q2 2009 SP1 Trial and Q2 2009 SP1 Dev work in the same way).

    No back on the issues.

    1. The first issue is indeed present in Q3 2009 and unfortunately a fix for it will not be available in Q3 2009 SP1. However, there is a quick and easy way to circumvent the problem by using DropDownOpening event of RadMultiColumnComboBox and setting the width of the drop down there:

    Me.RadMultiColumnComboBox1.MultiColumnComboBoxElement.MultiColumnPopupForm.Width = 500

    I would also like to inform you that we are going to add this issue in our TODO list for the next major release.

    2. I am happy to inform you that a fix for this issue is available in Q3 2009 SP1. In other words, setting the SelectedIndex property to -1 will clear the text in the control as expected.

    3. The default behavior of the control is to use the first column as a DisplayMember if not explicitly defined by the user. This is not a bug and will be present in the new release also.

    I hope this is helpful. You can write back anytime you need further assistance.

    Best wishes,

    Deyan
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

  8. Prasad
    Prasad avatar
    27 posts
    Member since:
    Oct 2009

    Posted 11 Dec 2009 Link to this post

    Hi Jack,
    In your previous posts you mentioned that my Telerik points are updated. I checked my account and it shows 0 Telerik Points.
    Can you please look into it.
    Thanks,
    Prasad


  9. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 11 Dec 2009 Link to this post

    Hi Prasad,

    Yes, I forgot to update your Telerik points. Now they are updated.

    Regards,

    Jack
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  10. Levente Mihály
    Levente Mihály avatar
    18 posts
    Member since:
    Jul 2008

    Posted 01 Mar 2010 Link to this post

    Hi,

    I'm setting the DropDownWidth in DropDownOpening event, but nothing happens, the dropsown stays as wide as the combobox. Using 2009 Q3 SP1.

    Thanks,
    Levente
  11. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 01 Mar 2010 Link to this post

    Hello Levente,

    Thanks for writing.I would like to inform you that we are aware of this issue and we have already fixed it. The fix will be available in the upcoming Q1 2010 release of RadControls for WinForms which is scheduled for the next week. Do not hesitate to write back if you need further assistance.

    Greetings,
    Deyan
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for WinForms is Visual Studio 2017 Ready