Telerik Forums
UI for WinForms Forum
9 answers
575 views

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

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Apr 2018
7 answers
198 views
Hi Telerik,

I have a nested grid and would like to apply different theme for each child grid. Is it possible to do such thing?
For example:

- the first grid uses Aqua theme
    - the 1st child grid uses Desert
        - the 2nd child uses Office 2010
          
Another option is to have different color for each grid.

Regards,

Alep
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Apr 2018
2 answers
171 views
I am working on a screen that uses the scheduler.  I only want to show the month view and place the different tasks on the calendar.  I have this working the main issue I am having is I would like to color the background based on our own internal status.  As of right now I have been able to use the AppointmentFormatting to change the colors and have it display the way I would like.  I also see that I could add AppointmentBackgroundInfo so for Status Id's that already exist are no issue.  Is there a way to override the existing status backcolor and gradientstyle?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Apr 2018
0 answers
101 views

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();
            }
        }
Вадим
Top achievements
Rank 1
Iron
Iron
 asked on 01 Apr 2018
9 answers
480 views
Hi,

I'm trying to use FilterDescriptors.Expression in radgrid, but everytime i put any wildcard here, it always wraps that wildcard into brackets (name like 'a%' became name like 'a[%]') and grid gets fully filtered, because there is no matching line. I've tried diferent types of wildcards (*, %, ?) but it always gets me the same result. Am I missing something? 

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Mar 2018
2 answers
414 views

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

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Mar 2018
3 answers
113 views

 

How to choose the vertical range of the chart?

Dimitar
Telerik team
 answered on 30 Mar 2018
2 answers
163 views

Hello,

Is there a way to disble the scroll when using the mouse wheel?

 

Regards,

Alberto

Amige
Top achievements
Rank 1
Veteran
 answered on 29 Mar 2018
2 answers
118 views
I have a hierarchical (rows + children rows) RadGridView. I'm already using the ViewCellFormatting event in order to display my own [+] and [-] images.

Is there a way to know if a "parent" row has no children rows the event handler, so I can set an empty image in the first place? That way the user has a visual clue that the row doesn't need to be expanded.


Fanie
Top achievements
Rank 1
 answered on 29 Mar 2018
16 answers
697 views
Hi,

I found a bug when adding a few input controls like textboxes etc on a form, in combination with the raddropdownlist (DropDownStyle = DropDownList). When pressing the tab key to focus the next control, everything works normally with the textboxes, but when the dropdownlist gets focus, there is no visual feedback to see which control has the focus. After manually clicking the dropdownlist, the tab key focus works as it should do.

Tested with the winforms product, version 2013.1 321 (mar. 21, 2013) on a Windows 7 machine 64 bit, with the VisualStudio2012Light theme.

PS, I wanted to add this bug in your tracking system, but the RadDropDownList is not in the selection where you should choose the bug-related control. This list could also be sorted alphabetically, which makes finding the right control much easier ;)
Hristo
Telerik team
 answered on 29 Mar 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?