Telerik Forums
UI for WPF Forum
4 answers
125 views

Hi,
I need some help on an issue with the RadGridView.

In my grid I have a status column and some text columns.

The status column has a binding to an enum with 4 values and a cellstyle to get displayed a status image.

When I have the FilteringMode set to FilterRow and the filter field of the text column contains some text I get a System.FormatException while dragging the status column over this text column saying that the value from the filter field is not a valid value for the status column.
But why will try the grid to set filter values from one column to another?
Any suggestions how to get this fixed?
Many thanks for all tips.

Cheers,

  Thomas

Stefan Nenchev
Telerik team
 answered on 22 Nov 2016
1 answer
193 views
Following the example here: http://docs.telerik.com/devtools/wpf/controls/raddatapager/how-to/change-page-size-dynamically

but on an unbound DataPager.

The two way binding of the combo box to the PageSize seems to work, as the number of pages is changed to reflect the selected value.  However, there is no event that allows me to set the items on the grid view, which is normally done in the PageIndexChanged event handler.

Currently, I am adding a SelectionChanged event handler to the combo box from which I call the same implementation as in the DataPager's PageIndexChanged handler, but this seems like it should be unnecessary.

Am I missing something?

Dilyan Traykov
Telerik team
 answered on 22 Nov 2016
3 answers
379 views
Hello,
how i can cancel edit cell (reset value) when validation is failed?

Masha
Stefan
Telerik team
 answered on 22 Nov 2016
1 answer
271 views

First part of this question: is this control still supported?  I ask because according to http://docs.telerik.com/devtools/wpf/controls/radentityframeworkdatasource/entityframework-changes there hasn't been an update since 2013, yet Entity Framework itself has been updated multiple times since then.

 

The real question is: how to use this with Entity Framework 6.1?

When trying to use this control, I get this at runtime:

Exception thrown: 'System.MissingMethodException' in Telerik.Windows.Controls.EntityFramework.dll
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>Log Manager.vshost.exe</AppDomain><Exception><ExceptionType>System.MissingMethodException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Method not found: 'System.Data.Objects.ObjectContext System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()'.</Message><StackTrace>   at Telerik.Windows.Controls.RadEntityFrameworkDataSource.get_EffectiveObjectContext()

I'm setting the DbContext like this: this.logsSource.DbContext = this.context;

According to http://www.telerik.com/forums/objectcontext-vs-dbcontext the DbContext property just calls ((System.Data.Entity.Infrastructure.IObjectContextAdapter)this.DbContext).ObjectContext;

But I don't think that's correct, as I've tried doing the same thing myself and setting the ObjectContext property, but that property insists that ObjectContext come from System.Data.Objects, so the above line would never work.

 So I'm confused, and looking for suggestions, please. 

Dilyan Traykov
Telerik team
 answered on 22 Nov 2016
1 answer
259 views
We have an application with certain behaviors that require modifying the document model directly. Doing this clears the undo stack. Is there any way that we can hook into the document undo stack so that we can support undoing our custom actions to the document?
Mihail
Telerik team
 answered on 22 Nov 2016
3 answers
141 views

I can't seem to get my WPF application to compile properly. Telerik Version 2016.3.914.45

I had the 'SelectionChanged' event set on a RadGridView, and I needed to change it to 'SelectionChanging'. Now I can't run the application as the compiler is telling me :
"The member "SelectionChanging" is not recognized or is not accessible."

"The property 'SelectionChanging' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'."

 

The same property is set in other files and compiles correctly.

 

Also on just one RadComboBox I'm getting:

"The property 'SelectionChanging' was not found in type 'RadComboBox'. "

 

What is up with this property? I have tried cleaning my solution, rebooting my computer, removing the Telerik.Windows.Controls.GridView reference and re-adding it. What else can I try to get this property to work correctly?

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 21 Nov 2016
2 answers
381 views

Hello Telerik,

 

I have carefully read the examples you provided here and this one in particular seems to be the one I need

[C#] Example 4: A custom FilterDescriptor
// Give me all people that are with first name John.
var fd = new FilterDescriptor();
fd.Member = "FirstName";
fd.Operator = FilterOperator.IsEqualTo;
fd.Value = "John";
fd.IsCaseSensitive = true;
 
// In most cases the data engine will discover this automatically so you do not need to set it.
fd.MemberType = typeof(string);

 

It works. The grid starts filtered as expected, however it is not possible for the user to revert that initial filter.

Is there anything missing? I tried to find a running example for those filterdescriptors, but i couldn't. If there is one, can you please provide it?

 

Thank you!

Dilyan Traykov
Telerik team
 answered on 21 Nov 2016
9 answers
451 views

Hi to all,

I would to "sync" two GridView, my goal is allow the user to compare two lists, when he moves by scrollbar, both lists are moved in the same way.

Does anyone have any idea?

Dario Concilio
Top achievements
Rank 2
 answered on 21 Nov 2016
1 answer
203 views

I am looking for a wpf datagrid (teleriks wpf RadGridView) that supports, all of the following at the same time
• (1) column header filtering, sorting,
• (2) multi cell/row editing,
• (3) data virtualization (lazy data loading as you scroll),
• (4) and data via OData V4 (which does not support the DateTime data type, but rather supported is the DateTimeOffset data type)

Does the Telerik WPF RadDataView – allow this??

I looked at the features of your data grid here:
But it is hard to see if it is supporting requirements (1) – (4) listed above at the same time.
Also no mention of DateTimeOffset columns or OData V3 (or !) V4 are mentioned in your features listing.
The DataGrid we are looking for must not internally convert a DateTimeOffset Column (eg while filterng) to DateTime as this causes the request sent to the backend to fail (as with OData V4 we do not support the DateTime type for properties of our data objects).
Regards,
Paul

Stefan
Telerik team
 answered on 21 Nov 2016
0 answers
205 views

Hi all,

 

I thought a PivotGrid would be the perfect control to show a square matrix which values can beSelected dynamically using the RadPivotFieldList. But I'm unable to understand how I should model my data to leverage the PivotGrid builtin capabilities (like filtering). I can build the model I want. What I have now is a list of object that have the following fields:

 

Title1   Title2     X    Y       Z

A          A          x1    y1    z1

A          B          x2    y2    z2

A          C          x3    y3    z3

B          A          x4    y4    z4

B          B          x5    y5    z5

B          C          x6    y6    z6

C          A          x7    y7    z7

C          B          x8    y8    z8

C          C          x9    y9    z9

 

 

The UI result I'm looking for is a 3x3 matrix/grid

 

           A        B        C

A        x1       x2      x3

B        x4      x5      x6

C        x7      x8       x9

 

Where the xi can be changed to yi and zi using the RadPivotFieldList control.

This example has only 3 different values {A, B, C} but this list is much bigger in reality, hence the filtering feature need.

  1. Can the Pivot Grid achieve any of this?
  2. If not, what is the best way to display a matrix (GridView view code behind Column management seems a bit hacky, doesn't it?)

Thanks for your help

 

Nicolas
Top achievements
Rank 1
 asked on 21 Nov 2016
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?