Telerik Forums
UI for WPF Forum
2 answers
217 views
Hi,

I have setup Entity Framework in my WPF application and have used the example, but it keeps telling me that the object Context I am using is not allowed even though I am using the DBContext that the Entity Framework wizard created for me.

Below is my xaml:

<UserControl
...
<xmlns:data="clr-namespace:Stats.Data"
...
<Grid>
<telerik:RadEntityFrameworkDataSource Name="statsDS" QueryName="Client">
<telerik:RadEntityFrameworkDataSource.ObjectContext>
<data:StatsEntities/>
</telerik:RadEntityFrameworkDataSource.ObjectContext>
<telerik:RadEntityFrameworkDataSource>
<telerik:RadGridView itemsSource="{Binding DataView, Elementname=statsDS}"/>
</Grid>
</UserControl>

StatsEntities is the DBContext within my Entity Framework model.
Andrew
Top achievements
Rank 1
 answered on 12 Mar 2013
1 answer
178 views
Hello, is it possible using MVVM to have different data types in a single column? I would want one cell to be string, another to be numeric, and another to be a dropdown etc. Or possibly use 1 datatype(String), but have different editors in each cell. Your new spreadsheet control may be a better solution, but it may be some time before it is done, and if this can work using the GridView, I'd use that.

Thanks
Scott
Ivan Ivanov
Telerik team
 answered on 12 Mar 2013
1 answer
146 views
Please, I am Felipe Lucio Quirino and I`m using a custom RadTreeListView custom control that is almost what I want. 
The problema is that i`m setting the ItemSource of the RadTreeListView, and its cells types and validations are built as the type of the source I was binding to the RadTreeListView, but, I have a column that is an object type and I want to change the cell DataFormatString if possible for datetime, decimal or other type when the application is running.  I did not find a way for doing it. please, help!
I got a project attached in this thread that you could customize, but to try to reprodoce what I want you have to put other property in the File class type defined like an object and when begin editing the RadTreeListView when the app is running , try to set some specific datatype like decimal.

change de extension of the file to .rar.. to extract the project or download by the following link http://www.telerik.com/ClientsFiles/231850_radtreelistviewdraganddropsample-wpf-1.zip

Thanks!



Felipe Lucio
Top achievements
Rank 1
 answered on 11 Mar 2013
1 answer
192 views
Hey there,

I'm currently searching for a way to set the radRichTextBox size to CM or inches.
Something like in the
radRichTextBoxRibbonUi -- Page layout -- Size 
but not with predesigned sizes.

Is there a given way to do that or do I have to calculate the size via ppi?

Thanks for any help! :)
Iva Toteva
Telerik team
 answered on 11 Mar 2013
1 answer
265 views
Hello. I have one problem. When I click button "Close" on RadDocumentPane I see that pane is closed. But when I try to save layout I see that this pane is hidden. I need to disable hidding pane when I click button "Close". How ca I do it? Thanks.
Vladi
Telerik team
 answered on 11 Mar 2013
2 answers
77 views
Hi.
I updated to the newest version of Telerik Dll's and I cannot add to ItemMappingCollection (Witch I could without problem)

code:
private void createSeriesMappings(int count, string value, string stackName)
       {
           for (int i = 0; i < count; i++)
           {
               SeriesMapping seriesMapping                                         = new SeriesMapping();
               seriesMapping.SeriesDefinition                                      = new StackedBarSeriesDefinition(stackName);
               seriesMapping.SeriesDefinition.ShowItemToolTips                     = true;
               seriesMapping.SeriesDefinition.ShowItemLabels                       = false;
               seriesMapping.SeriesDefinition.InteractivitySettings.HoverScope     = InteractivityScope.Series;
               seriesMapping.SeriesDefinition.InteractivitySettings.SelectionScope = InteractivityScope.Series;
               seriesMapping.ItemMappings.Add(new ItemMapping("[" + i + "]." + value, DataPointMember.YValue)); // this gives me the error
               chart.SeriesMappings.Add(seriesMapping);
           }
       }

the error
'Telerik.Windows.Controls.Charting.ItemMappingCollection' does not contain a definition for 'Add' and no extension method 'Add' accepting a first argument of type 'Telerik.Windows.Controls.Charting.ItemMappingCollection' could be found (are you missing a using directive or an assembly reference?)

How can I solve this ?

Best regards
Kristján


Kristjan Einarsson
Top achievements
Rank 1
 answered on 11 Mar 2013
7 answers
496 views
Hi All,


We use Telerik's PersistenceManager capabilities to save user settings to XML in a relational database (as desribed here).
In particular, some of RadGridView's settings are stored this way.
This has worked fine for several months, until we performed an update of our Telerik libraries last week.


The XML the PersistenceManager produces, contains some type information concerning the types that were serialized to XML,
and contains lines like this:

<TI K="-134624143" N="Telerik.Windows.Controls.GridView.GridViewLengthConverter, Telerik.Windows.Controls.GridView, Version=2011.2.712.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" />

After the Telerik libraries update, this causes an exception because we now use Telerik.Windows.Controls.GridView v2012... 
When PersistenceManager.LoadFromXml is called, the PersistenceFramework tries to load the Type,
resulting in a TypeLoadException:

Could not load file or assembly 'Telerik.Windows.Controls.GridView,
Version=2011.2.712.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one
of its dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040)


What is the best option to avoid this on Telerik updates?
Can we tell the Serializer not to Save the fully qualified type name to XML?


Thanks for your time,
Koen




Zarko
Telerik team
 answered on 11 Mar 2013
3 answers
358 views
Is there a way to provide a different style for the grid generated in a hierarchy. E.g. Can the parent grid use one style, while the child grid uses another?

Cheers

Justin
Nedyalko Nikolov
Telerik team
 answered on 11 Mar 2013
3 answers
371 views
The RadGridView removes the ColumnSortDescriptor when there is no data to display. The result is that when there is data again, it isn't sorted any more.

My specific case is as follows: I have two grids. The second grid shows the items from a List<> property of the selected item in the first grid. When the second grid is sorted (either because I added a ColumnSortDescriptor in the constructor or because the column was clicked in the GUI) and in the first grid a row is selected that doesn't have any items in the List, then the second grid shows no items (correctly) and the sorting arrow disappears. After a row is selected that does have items in the List, the second grid shows these items, but the sorting is gone.

Is there a way to make this sorting more persistent?

Thanks in advance,
  Herre

[WPF2012Q3]
Rossen Hristov
Telerik team
 answered on 11 Mar 2013
1 answer
179 views
Hi!
I want to hide the black border that appears, by default, on a selected cell of a RadGridView.

I don't know exactly wich style of the RadGridView I have to override.

Thanks in advance.
Goran
Top achievements
Rank 1
 answered on 11 Mar 2013
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?