Telerik Forums
UI for WinForms Forum
1 answer
25 views

Hi, I'm using a RadDataFilter to filter data on a RaGridView.

For datetime columns I've noticed some problems.

First, in the control the date is displayed in english format (see first attached image). When I try to change the value a datetimepicker appears and in this case the date is in italian format (according to my pc settings).

Second, I've noticed when the radDataFilter.Expression is generated the date is in english format, including time, and it is inside a couple of #, i.e the expression generated is like:

[myDate] >= #11/20/2023 14:55:07# 

I would like to have only the date without time, is it possible?
And  how can manage this expression to generate the SQL expression, cause the # is not accepted.

 

Thank you in advance for any help.

Nadya | Tech Support Engineer
Telerik team
 answered on 23 Nov 2023
3 answers
69 views

Hi, I'm using a RadDataFilter connected to a RaGridView.

For the string column by default is available the "Is in list" filter.

But, if I try to use it, a single textbox is showed and when the filter is applied, and the generated filter expressioin is like "[FieldName] IN 1234" where 1234 is the exaxt text I digited, without quotes.
I think I've not understand how to use this filter, so can anyone suggest to me the correct way to use it?

Alternatively, how can I remove/hide this kind of filter (I do not really need to use this filter)?



Thank you

 

Nadya | Tech Support Engineer
Telerik team
 answered on 23 Nov 2023
1 answer
55 views

I have a customer that when adding new records to my data grid doesn't want the records to disappear until the grid is refreshed.

For example, in the screen shot, the user has filtered the rows to State Program = "AK FFS" and NDC = "42543-003-01".  The user want to see the existing values while creating the new record i.e.,  NDC 42543-003-02.  When the user enters all the fields and the record gets added it disappears because of the current filters applied.  Is there a way to by-pass the filters on the newly added rows?

Appreciate any advise.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Jul 2023
3 answers
67 views

Hi Everyone,

I use a RadTreeView control on my form. I have a client table and a project table. Both tables have a DeletionStatus boolean field/property.

This is how I set the control up:

this.tvProjectClient.DataSource = clientBindingSource; this.tvProjectClient.DisplayMember = "FullName"; this.tvProjectClient.ValueMember = "ClientId"; this.tvProjectClient.RadContextMenu = this.rcmProject; this.tvProjectClient.RelationBindings.Clear(); this.tvProjectClient.RelationBindings.Add(new RelationBinding(this.projectBindingSource, "Name", "ClientId", "ClientId", "ProjectId"));

 

Now i want to create a FilterDescriptor to filter DeletionStatus to false on the Client table to be like:

      FilterDescriptor filterDescriptor = new FilterDescriptor();

      filterDescriptor.Value = "False";
      filterDescriptor.Operator = FilterOperator.IsEqualTo;
      filterDescriptor.PropertyName = "DeletionStatus";

My question is, how to I change the property name to reference the client (or project) table for DeletionStatus? I have tried Client.DeletionStatus and ClientRow.DeletionStatus but the control does not register it.

Any ideas? I do not want to change field names if possible.

Many thanks, JB

James
Top achievements
Rank 1
Iron
 answered on 21 Apr 2023
1 answer
61 views

hello guys,

 

I am using Radscheduler to develop employee Timesheet program, I use codeless data binding (link below)

Codeless data binding - WinForms Scheduler Control - Telerik UI for WinForms

 

I am face with a data filter problem. Each employee is from different location (Employee Table have their own ID(primary key) ,location ID, StartTime, EndTime), so for each location when they use this app, I want they only can view their own timesheet.

So into my

private void Form_Load(object sender, EventArgs e)
        {
            this.tS_TimeSheetTableAdapter.Fill(this.XXX_XXDataSet.TS_TimeSheet);

       }

 

How should I filter data by location ID before it fill the tableadapter?

Plz help me out.

Thanks,

Mike

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Jan 2023
1 answer
99 views
I'm wondering whether it is possible to apply a filter expression created by a Winforms RadFilterDialog on a specific object programmatically.
It should return a bool value depending the filter is true or false for the object and execute different code depending on the result.  The idea is to implement a simple rule engine.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Oct 2021
6 answers
72 views

I would like to remove the Group option from the DataFilterAddNodeElement dropdown list when I'm adding to an existing group. Basically I only want to allow adding expressions to groups and prevent nested groups from being created. However, I still want to allow adding groups to the root node, just not to other groups. Is there a way to hide or disable the Group option in this scenario?

Thanks

Ole
Top achievements
Rank 1
 answered on 26 Apr 2021
2 answers
83 views

When user manually types the filter value (only date) in RadDateTimeEditor adds current time, so the filter value becomes -  %data %current time.

And filtering gives the empty table, because of values in datetime columns have 00:00:00 time.

How to set time to 00:00:00 instead of using current?

 

P.S. If user chooses value with DateTimePicker then filter value is %data 00:00:00 and filtering works fine.

Marseille
Top achievements
Rank 1
 answered on 09 Feb 2021
4 answers
73 views

I am attempting to filter results in a RadGrid.

What I am looking for is the programmatic equivalent of selecting the all but (blanks) or not (blanks) option from the filtering area.

I will apply filters of " " and "" but still will get results of "   " or varying amounts of whitespace that I don't want in the results. I cannot do this with a composite filter as I cannot capture all of cases of whitespace, but removing (blanks) achieves the correct results.

Thanks

Dimitar
Telerik team
 answered on 19 Sep 2019
1 answer
124 views

Is there any easy way to convert RadDataFilter.Expression to FilterDescriptorCollection, so ill be able add it do CompositeFilterDescriptor of the RadGridView.FilterDescriptors.

RadGridView.FilterDescriptors.Add(new CompositeFilterDescriptor() { FilterDescriptors = RadDataFilter.Expression? });

Dimitar
Telerik team
 answered on 28 Jan 2019
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
Buttons, RadioButton, CheckBox, etc
DropDownList
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?