Hi, I'm stuck with such a problem.
I need to filter data at grid only from code (ShowFilteringRow = false). My filter condition is slightly complex so I use the FilterPredicate just like that - https://docs.telerik.com/devtools/winforms/gridview/filtering/custom-filtering#implementing-filtering-mechanism-using-filterpredicate
I've set EnableCustomFiltering = true and implement the PerformFiltering predicate:
private void ChangeFilter(bool filtering){ tree.BeginEdit(); if (filtering) { tree.MasterTemplate.FilterPredicate = new Predicate<GridViewRowInfo>(PerformFiltering); } else { tree.MasterTemplate.FilterPredicate = null; } tree.EndEdit();}private bool PerformFiltering(GridViewRowInfo row){ return (decimal)row.Cells["UnitPrice"].Value > 30;}But nothing happens when I fire the ChangeFilter() - the data still unfiltered. Do you know please, ehat am I doing wrong, or how can I fire filtering process from code?
M



At you on a forum found an example how to make grouping in a combo which is in date grid.
Applying this method a couple of questions arose.
1) Mouse scrolling does not work.
2) How to make AutoCompleteMode
private void UpdateComboBoxSpeziolist() { var commandServer = new CommandServer(); _radSpeziolist.SelectedItemChanged += new EventHandler(lv_SelectedItemChanged); _radSpeziolist.DisplayMember = "fio"; _radSpeziolist.ValueMember = "fio"; _radSpeziolist.DataSource = commandServer.GetDataGridSet(@"select * from spezialistSurvey()").Tables[0]; _radSpeziolist.EnableGrouping = true; _radSpeziolist.ShowGroups = true; GroupDescriptor group = new GroupDescriptor(new SortDescriptor[] { new SortDescriptor("cat", ListSortDirection.Descending) }); _radSpeziolist.GroupDescriptors.Add(group); _radSpeziolist.AllowEdit = true; _radSpeziolist.CollapseAll(); }private void radGridView2_CellEditorInitialized(object sender, GridViewCellEventArgs e) { if(e.ActiveEditor is RadDropDownListEditor) { RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor; RadDropDownListEditorElement element = editor.EditorElement as RadDropDownListEditorElement; element.DropDownSizingMode = SizingMode.UpDownAndRightBottom; element.Popup.Controls.Add(_radSpeziolist); element.DropDownMinSize = new Size(300, 300); element.PopupOpening += new CancelEventHandler(element_PopupOpening); } }void element_PopupOpening(object sender, CancelEventArgs e) { _radSpeziolist.Size = ((RadDropDownListEditorElement)sender).Popup.Size; _radSpeziolist.AutoScroll = true; } private void lv_SelectedItemChanged(object sender, EventArgs e) { ListViewItemEventArgs args = (ListViewItemEventArgs)e; if (args.Item != null && radGridViewSurvey.CurrentCell != null) { this.radGridViewSurvey.CurrentCell.Value = args.Item.Value; ((DropDownPopupForm)args.ListViewElement.ElementTree.Control.Parent).ClosePopup(RadPopupCloseReason.Mouse); radGridViewSurvey.CancelEdit(); } }
I can't seem to find any working key events for RadDropDownList.DropDownListElement.AutoCompleteSuggest.
What's currently happening:
A user navigates to the desired auto complete suggestion and presses enter on it. They then have to press enter again(to trigger the RadDropDownList.KeyDown event).
What I'd like to happen
A user navigates to the desired auto complete suggestion and presses enter on it. I'm looking for what this event is.
Thanks,
Brandon

How to choose the vertical range of the chart?

Hello,
Is there a way to disble the scroll when using the mouse wheel?
Regards,
Alberto
