Telerik Forums
UI for WPF Forum
1 answer
80 views
Hi,

We're just implementing Telerik controls in our WPF (PRISM) application and having some problems with the DataFilter control.
We have a radgrid and can bind the control to the grid and filter without any problems. However, the requirement is display 3 filterable fields when the screen loads and for only 3 fields out of a possible 8 of the grid view.

So we're trying to go down the FilterDescriptions route and define our 3 filters programatically

                var companyFilter = new FilterDescriptor("Receiver Company", FilterOperator.Contains, "", true);
            radDataFilter.FilterDescriptors.Add(companyFilter);
 
            var addressFilter = new FilterDescriptor("Address Line 1", FilterOperator.Contains, "", true);
            radDataFilter.FilterDescriptors.Add(addressFilter);
 
            //// DateTime filter.
            var dateFilter = new FilterDescriptor("Created Date", FilterOperator.IsGreaterThan,
                                                 new DateTime(2007, 5, 1));
            radDataFilter.FilterDescriptors.Add(dateFilter);

However when we do this it throws an error saying the source isn't IEnumerable. The source in this instance is defined in the XAML as the radgrid, which has loaded an IList<Receiver> object, which last time I checked was IEnumerable.

Even if I set the Datasource programatically to a List<Receiver> still get the same error.

I'm not sure where to turn and thinking maybe Data annotations are an option.

Any views?

Thanks.


Rossen Hristov
Telerik team
 answered on 17 Mar 2011
3 answers
341 views
Hello Telerik Team,
                             I have one clarification in my latest WPF project.Here I am  having one radcombo box.Its contains 3 values.
<telerik:RadComboBox HorizontalAlignment="Left" SelectedIndex="{Binding xx}"  Margin="114,207,0,0" Name="radComboBox2" VerticalAlignment="Top" Width="205">
            <telerik:RadComboBoxItem Content="Item 1" />
            <telerik:RadComboBoxItem Content="Item 2" />
            <telerik:RadComboBoxItem Content="Item 3" />
        </telerik:RadComboBox>
When window loading time i want to display item3 in radcombobox.After window loading client can change the value and storing into database.
So i am binding into selectedindex in XAML.
codebehind sample
public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            this.radComboBox2.SelectedIndex = 2;
        }
    }
 But it display empty Combobox?
why?
pls give me any suggestions
Konstantina
Telerik team
 answered on 17 Mar 2011
2 answers
67 views
When entering a date in the RadDatePicker, where the century is not specified (e.g. 6/20/76), is there a way to instruct the parser to deliver 1976 instead of 2076, short of reimplementing it?
Even if SelectableDateEnd and DisplayDateEnd are set to DateTime.Now, the parser still selects the future date.

Alternatively, is there a way to call your builtin parser (which works like a charm except for this small issue) from a custom Parse... event handler in order to tweak its result a bit?

Thanks
Phil
Philip
Top achievements
Rank 1
 answered on 17 Mar 2011
19 answers
178 views
Hi!

I'm currently using the GridView component. But I see that the text above(Drag a column header and drop it here to group by that column) doesn't seems to change depending of the current localisation.

I've to do a fully multilanguage interface, how can I change this text?

Thank you :)
Maya
Telerik team
 answered on 17 Mar 2011
2 answers
278 views
Hello,

I have a RadGridView control with flow direction set from right to left.
Inside the grid I have a MaskedTextBoxColumn that is used to display and edit a DateTime object.

I want to have only this column with flow direction from left to right so the date is displayed to the left of the time.
I don't see FlowDirection Property on this column or on any other column.
If I'm setting the FrameworkElement.FlowDirection property it is being ignored.

Is it possible?

Thanks,
Evgeny
Evgeny
Top achievements
Rank 1
 answered on 17 Mar 2011
7 answers
174 views
We have installed the new version of the GridView and some bug/issues occurs.

1. If setting the items source before columns created (throw code), the list wont display the cell content (rows are empty)...
    (We fix this issus will setting the itemssource after...)

2. the sort is not woking... (wont change the result) (this is not fixed for us..)

Version working : 2010.3.1110.35
Not working : 2010.3.1314.40

We have put back the old version and its working..

Any clues...

Yavor Georgiev
Telerik team
 answered on 17 Mar 2011
3 answers
70 views
I trying to bind a "weakly-typed" data list into RadGridView, I considered IList<>, ObservableCollection<> but I think they not suit my scenario because I need to define type of element in those collections.

I found RadDataPager later but I do not need paging feature.

I wonder whether WPF RadGridView can bind to something like "DataTable" like in WinForm, but I asking it for WPF in case there is any ready component in Telerik WPF.

Anyway this is my scenario, single RadGridView is use and ready to receive data collection which may consist of different data type.

Please advise, thanks
tzuhsun
Top achievements
Rank 1
 answered on 17 Mar 2011
11 answers
612 views
Hello all,

I am new to WPF and RadControls and I am trying to use the RadGridView right now (reauirements of a new customer).

I bound my RadGridView to a simple collection of object. Displaying properties of objects works like a charm.
Anyway, I wasn't able to find how to create a calculated column based on on or several properties of the objetcs in the bound collection!

I searched the forum, the documentation and found nothing (even for the classic MS DataGrid)!

Is there any known working solution to create calculated data columns?
(be aware that it will not be possible for me to add the calclated field directly in the objects of the collection)

Thank you,
Best regards,

Daniel
Yavor Georgiev
Telerik team
 answered on 16 Mar 2011
2 answers
156 views
Hi there,

If im using 100% the Width of the Grid  <telerik:GridViewDataColumn Header="FirstName" Width="*" /> and wrapping with the scroll bar. Why the column goes out of the frame horizontally. but if i takeout the scroll bar everything seems perfect. And I want the scroll bar to be there.

Example:
<ScrollViewer BorderBrush="Transparent" BorderThickness="0" HorizontalScrollBarVisibility="Auto" >
         <telerik:RadGridView Grid.Row="1" ScrollMode="Deferred"    ShowGroupPanel="False"  AutoGenerateColumns="False">
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn Header="First Name" Width="200" />
                        <telerik:GridViewDataColumn Header="Last Name" Width="*" />
                        <telerik:GridViewDataColumn Header="Title" Width="200" />
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>
            </Grid>
</ScrollViewer>
sam Aryan
Top achievements
Rank 1
 answered on 16 Mar 2011
3 answers
181 views
Hi there,

Currently the Rad Pie Chart (seems) to start at the 3 o'clock position, and draws each slice in a counter-clockwise direction.

Is it possible to change the direction to clockwise?

Is it possible to start at the 12 o'clock position?

Some background:  We are displaying data in our application, and representing it in a Telerik Rad PieChart, and then exporting the data to Microsoft Excel 2010 via OpenXml, and creating a pie chart in Excel.  Because Excel starts drawing its pie chart at the 12 o'clock position (which can be changed by adjusting the angle of the first slice), and draws the slices clockwise, it looks different than the Telerik Rad PieChart in our application, which isn't a very good user experience.  So, we're hoping we can change the direction that the Telerik Rad PieChart draws its pie slices, and where it starts drawing its first slice.

Thanks!
Sia
Telerik team
 answered on 16 Mar 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?