Telerik Forums
UI for WPF Forum
1 answer
132 views

Greetings!  I have been in SQL world for the last few years,  When I last worked with on a Windows project, I used WInForms with Grids, DataSources, DataAdapters, etc.  Working with a grid was easy - there was a design-time "wizard" interface to select columns from the data source, set the size, styles, and other attributes and upon exiting the design interface it emitted the code on the form. 


Now, I am in VS2012, with a WPF project.  I have RadControls for WPF v2013.3.1204.45.  The data is SQL CE 4.0 and I have created an EF model for it.  On my first window, I added a RadGridView and cannot figure out how to connect it to my data at design time.  I can go into the code-behind and set ItemsSource to a LINQ query - so at runt-time I get a grid (with all columns, not well styled).



1. Is there such a design-time interface in RadControls for WPF (specifically the GridView)?  I can't believe everyone is really doing all of this by hand (either in designer or code-behind) - there are so many attributes that can be set (who wants to memorize all the row style properties)?



2. How do I bind the data source so I can see the schema (and maybe sample data?!) at design time?  I tried a RadEntityFrameworkDataSource but just couldn't figure out the syntax (yes, I looked at the demos - they assume a lot of knowledge).  I know have a lot to learn with EF, but I thought I would have an easy time with the controls...



Best,

Scott



Yoan
Telerik team
 answered on 24 Dec 2013
5 answers
210 views

I have a RadCartesianChart and want to register for ContextMenuOpening. When I do it in XAML my event handler gets called. If I do in code (e.g. MainWindow_Loaded: Chart.ContextMenuOpening += Chart_ContextMenuOpening) it is not called.


I got a small repro too.



Markus

Petar Marchev
Telerik team
 answered on 24 Dec 2013
1 answer
154 views
Here i have mentioned implementation of code. i created a custom control 'VSRadCartesianChart' and implemented some dependency control in  it and generate the X,Y axis and line series are dynamically.

i applied Zoom&Par bar visible to both axis and applied style that that it only visible when zoom & par when applied.(other wise in normal case, it does it show).

Also , I have implemented 'CartesianGrid' in it and applied Y axis line visibility.


problem which are facing:
1. setting which applied in cartesian grid is not shown. it doesn't apply any style in it. (see the attached image)
2. Y-axis zoombar is not shown. 
3. TargetType="chartView:PanZoomBar" style setting is not applied (controlling the visiblity of panzoombar based in property in viewmodel)


could you please give your feedback. it is urgent requirement.





<local:VSRadCartesianChart x:Name="Chart1"    Zoom="{Binding Zoom }" PanOffset="{Binding PanOffset}"  local:ChartViewDragDropBehaviour.IsEnabled="True" AllowDrop="True"   >
                               
 <local:VSRadCartesianChart.Resources>
                                    <Style TargetType="chartView:PanZoomBar">
                                        <Setter Property="Visibility" Value="{Binding Path=IsZoomBarVisible Converter={StaticResource BoolToCollapsedConverter} }" />
                                    </Style>

<Style x:Key="BorderStyle" TargetType="Border">
                                        <Setter Property="Background" Value="#1B9DDE" />
                                    </Style>
  </local:VSRadCartesianChart.Resources>
---
---
---
<local:VSRadCartesianChart.Grid >
                                    <telerik:CartesianChartGrid MajorLinesVisibility="Y" StripLinesVisibility="Y" >
                                        <telerik:CartesianChartGrid.YStripeBrushes>
                                        <SolidColorBrush Color="#FFD7D7D7"  Opacity="0.3" />
                                        <SolidColorBrush Color="Transparent" />
                                        </telerik:CartesianChartGrid.YStripeBrushes>
                                    </telerik:CartesianChartGrid>
                                </local:VSRadCartesianChart.Grid>

                                <local:VSRadCartesianChart.LinearSeriesSource>
                                        <Binding Path="ChartList" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged"  />
                                </local:VSRadCartesianChart.LinearSeriesSource>
                                 <local:VSRadCartesianChart.Behaviors >
                                    <telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="Both" >
                                    </telerik:ChartPanAndZoomBehavior>
                                </local:VSRadCartesianChart.Behaviors>
       </local:VSRadCartesianChart>
Peshito
Telerik team
 answered on 23 Dec 2013
4 answers
185 views
Hi,

i have a performance problem with "Special Slots" in "schedule view". In my case I have n Groups, created dynamically out of a database. To see a special slot on grouping, I have to create each special slot for each group! In my case I have 960 Slots. Now the performance is not good on changing to moth view and on loading the application.

Is it possible to load the Slot once and use it for each group?

Thanks
Best Regards
Rene
Tim
Top achievements
Rank 1
 answered on 23 Dec 2013
1 answer
135 views
Hi,

I need a "red line" that symbolise where my draged row will insert. The "Before / After" tooltip is hard to read in a grid with lots of rows/cells.

Any good C# examples for this?

/Ken
Kennet
Top achievements
Rank 2
 answered on 23 Dec 2013
1 answer
79 views
Scenario:  I have a RadGridView with "Click here to add new item" enabled.

If I click on a row and then hit 'Enter', the selection navigates to the next row as expected.

If I click on "Click here to add new item" then a new row is created and focus is given to the first cell, as expected.  If I enter some data and press 'Enter' the data is committed but then it appears that the keyboard event is passed along to the parent control.  In my case, it dismisses the dialog.



Maya
Telerik team
 answered on 23 Dec 2013
1 answer
170 views
Hi, I'm using editable GridView cells. I see that when I multi select several GridView rows from the top to bottom direction, the CurrentItem foucs moves to the bottommost cell and when I directly start to type something, the bottommost cell is edited. What I want to do is when I select cells from the top to bottom direction and start editing, the topmost cell gets the CurrentItem focus and starts to be edited. I tried to solve this by setting the CurrentItem property, but it was readonly. Is there any way I can acheive this? (I have to multi select cells first for some reasons, not only just editing cells!)
Dimitrina
Telerik team
 answered on 23 Dec 2013
7 answers
121 views
We have a single Property grid with around 83 properties. When the item on the property grid changes, it takes almost 400 ms to just set the new item to the property grid. 

I tried a test application and saw that with the number of proeprties increasing, the performance of the property grid gradually deteriorates.
Attached is a screenshot of the performance profile taken. Please help analyze and suggest how this can be improved. 

Please note: IsVirtualizing and EnableEditorCaching are enabled.
Maya
Telerik team
 answered on 23 Dec 2013
1 answer
320 views

I'm hosting an EDrawSoft OfficeOCX in a WindowsFormsHost. (MVVM, C#, .Net 4.0) The control fills a tab in a tab control in a Telerik RadDocPanel.

Everything is working very well, until someone tries to open a damaged Office document which throws an error and seems to corrupt the OfficeOCX control.

I've found that re-initializeing the OfficeOCX control gets it working again, except that the WindowsFormsHost no longer fills the tab. Simply resizing the application fixes it up again.

I've tried calling Refresh on the OfficeOCX control which didn't work, but it's probably not the control that needs to be refreshed.

The control is being manipulated in a PropertyChangedCallback for a dependency property. MSDN suggests calling WindowsFormsHost.InvalidateVisual() but that didn't work either.

My next attempt will be to try to call a method on the Telerik RadDockPanel to force the repaint...however I can't figure out how.


I have a resize event in the usercontrol that does nothing but allows me to set a break in it. When I resize the app, which fixes the docking problem, this event gets fired and the call stack shows it being called (through some external code) from:

Telerik.Windows.Controls.dll!Telerik.Windows.Controls.RadDockPanel.ArrangeOverride(System.Windows.Size finalSize)

Is there a way I can force this to happen from code?

Thanks
Konstantina
Telerik team
 answered on 23 Dec 2013
1 answer
154 views
I was wondering if it is possible to do something the following with the GanttView:

We have task A, B, C & D. They are all linked to each other in chronological order (A->B->C->D). When I move task B, is it possible to let Task C & D move as well so the time between them remains the same? So when i have moved B 3 days in the future, C & D are also moved for 3 days.

Kind Regards
Thomas
Ventzi
Telerik team
 answered on 21 Dec 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
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
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?