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
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
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
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
hii Dilyan Traykov how do i get this event ?
regards,
Ranees Ras
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
hii Dilyan Traykov i can't access that event because i am using RadMultiColumnComboBox as GridViewColumn CellTemplate
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
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