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

What happened with RadMulticolumnComboBox

13 Answers 308 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Norman Giovanni
Top achievements
Rank 1
Norman Giovanni asked on 17 Aug 2010, 08:21 PM
Hi!

I was very pleased using radmulticolumncombobox in winforms and now using WPF there is not such component. I would like to know why isn't into? and we could expect further release? or is it possible make a custom control? so, I appreciate so much your guide about it.

thanks

13 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 18 Aug 2010, 12:30 PM
Hello Norman,

Thank you for contacting us.

You can use the ItemTemplate property of the ComboBox to create a template that will fit your requirements. You can find an example in this online demo.

Hope this helps. If you need further assistance please let us know.

Kind regards,
Konstantina
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
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 22 May 2019, 06:44 AM
hiii...how to filter RadMulticolumnComboBox specific column ? in the attached image i want to filter that second column...how it can be possible ?
0
Dinko | Tech Support Engineer
Telerik team
answered on 27 May 2019, 05:51 AM
Hi raneesras,

Thank you for the provided image.

Searching in a specific column is not supported out of the box. Basically, the default mode of the search behavior is StartsWith, so when you type "F" only the cell which starts with this letter will be highlighted. To change this behavior you can use the SearchStateManager property to change the AutoCompleteMode to Search.

public MainWindow()
{
    InitializeComponent();
    this.mccb.SearchStateManager.AutoCompleteMode = SearchAutoCompleteMode.Search;
}

Hope this will work on your side.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 28 May 2019, 05:11 AM
Thank You....!!!
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 07 Aug 2019, 07:07 AM
hello...see the attached picture...how to remove this default selection in  RadMulticolumnComboBox 
0
Dilyan Traykov
Telerik team
answered on 09 Aug 2019, 04:00 PM
Hello raneesras,

Thank you for the provided image.

The item you've highlighted is not actually selected but is set as the CurrentItem of the RadGridView control inside of the popup of the RadMultiColumnComboBox. You can either set the CurrentItem of the grid to null once the dropdown opens or hide the row indicator element completely via the RowIndicatorVisibility property. You can do so in the PreparedCellForEdit event of the parent RadGridView:

private void Grid_PreparedCellForEdit(object sender, GridViewPreparingCellForEditEventArgs e)
{
    var combo = e.EditingElement as RadMultiColumnComboBox;
    if (combo != null)
    {
        combo.AddHandler(RadDropDownButton.DropDownOpenedEvent, new RoutedEventHandler((s, a) =>
        {
            Dispatcher.BeginInvoke(new Action(() =>
            {
                (combo.DropDownContentManager.DropDownElement as RadGridView).CurrentItem = null;
                (combo.DropDownContentManager.DropDownElement as RadGridView).RowIndicatorVisibility = Visibility.Collapsed;
            }));
        }));
    }
}

Please let me know whether such an approach would work for you.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 10 Aug 2019, 10:04 AM

hii Dilyan Traykov  how do i get this event ?

regards,

Ranees Ras

0
Dilyan Traykov
Telerik team
answered on 12 Aug 2019, 12:43 PM
Hi raneesras,

I've prepared a small sample project to demonstrate how to handle the PreparedCellForEdit event. You can edit the values in the Captain column to see that the row indicator is collapsed.

Please let me know whether you're able to apply this method at your end.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 14 Aug 2019, 04:54 AM

hii Dilyan Traykov   i can't access that event because i am using RadMultiColumnComboBox as GridViewColumn CellTemplate 

 

0
Dilyan Traykov
Telerik team
answered on 14 Aug 2019, 03:04 PM
Hi raneesras,

Thank you for the clarification.

In such case, you can use the CellLoaded event of the control in a similar fashion:

private void Grid_CellLoaded(object sender, Telerik.Windows.Controls.GridView.CellEventArgs e)
{
    var combo = e.Cell.Content as RadMultiColumnComboBox;
    if (combo != null)
    {
        combo.AddHandler(RadDropDownButton.DropDownOpenedEvent, new RoutedEventHandler((s, a) =>
        {
            Dispatcher.BeginInvoke(new Action(() =>
            {
                (combo.DropDownContentManager.DropDownElement as RadGridView).CurrentItem = null;
                (combo.DropDownContentManager.DropDownElement as RadGridView).RowIndicatorVisibility = Visibility.Collapsed;
            }));
        }));
    }
}

I've updated the sample project to demonstrate this. Alternatively, you can set the CellEditTemplate instead and use the approach suggested in my previous reply for handling the PreparedCellForEdit event.

I hope any of these approaches works for you.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 19 Aug 2019, 05:06 AM
Thnak you Dilyan Traykov...........its worked
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 23 Oct 2019, 05:52 AM
hii i want to make RadMulticolumnComboBox  item editable...when i am trying to press BackSpace button....the whole text getting clear....i want to make it editable...can you please give me a solution for this ?? please check my attached file 
0
Dilyan Traykov
Telerik team
answered on 23 Oct 2019, 03:13 PM

Hi ranees,

I just responded to the other forum thread you posted this inquiry on. In the future, please be so kind as to refrain from creating duplicate posts on the same topic. I'm also pasting my reply here for your convenience.

"To achieve the desired result, you can define a custom SelectionBoxTemplate and define a TextBox bound to the displayed property. Please note that in this case you would need to focus the TextBox when hitting the backspace button to edit the item itself and not remove it.

I've prepared a small sample project in order to demonstrate the approach I have in mind. I hope you find it helpful."

Regards,
Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Norman Giovanni
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
Dinko | Tech Support Engineer
Telerik team
Dilyan Traykov
Telerik team
Share this question
or