Telerik Forums
UI for WPF Forum
4 answers
280 views
Hİ,

I am using a custom connection for a special purpose and want to use MVVM. But I do not know how to create custom connection instance when using MVVM. Because it needs to be created and added to the diagram instance not the graphsource. Graphsource have AddLink method but it do not take RadDiagramConnection. Can you help me to find a way to use that Custom Connection class?
Thank you,
Sarper
Pavel R. Pavlov
Telerik team
 answered on 28 Jul 2014
3 answers
92 views
Hello, I would like to enquire on the scenario as per title. I have already managed to set the values, just that the grid didn't display these values to the user. In other words, when I click "Click here to add new row", the fields are displayed as all blank (or for int column, the value is 0). But my codes do work at the back end - if the user press enter without modifying anything, the custom values I set will be added to the database. So how can I let the user see the custom default values upon clicking "Click here to add new row"? Below is the code I have, which work perfectly back-end, but didn't display to user.

private void GridCommsItem_OnPreparingCellForEdit(object sender, GridViewPreparingCellForEditEventArgs e)
        {
            ((CommsItem)e.Row.DataContext).Status = "Store";
            ((CommsItem)e.Row.DataContext).Quantity = 1;
        }
Dexter
Top achievements
Rank 1
 answered on 28 Jul 2014
1 answer
176 views
Hi,

I have a requirement here to support ALL operations that are possible with mouse also with keyboard.
This means that the user must be able to expand all things by keyboard only.

Now I have groups in the grid view and under the groups there are rows with cells from the GridViewToggleRowDetailsColumn.
So the groups are expandable/collapseable and the rows also.

My question is: How can I navigate to the the toggle buttons of the group header and the row details column to toggle them by keyboard only?

I have subclassed already the DefaultKeyboardCommandProvider to get more control over the navigation commands. But the commands just leave out the group headers and the GridViewToggleRowDetailsColumn is leaved out while the previous row is in edit mode and a TAB key is pressed (MoveNext command is executed). 

I need a tab stop on both kinds of toggle buttons. What is the best way to achieve this?

Thanks
Yoan
Telerik team
 answered on 28 Jul 2014
1 answer
137 views
Hi
I have a problem with TileView.
I put a TileView in a SplitContainer--> RadPane control.
When I Double click and Drag a tile item, an exception will occur.
This is the Exception Message:

An unhandled exception of type 'System.NullReferenceException' occurred in Telerik.Windows.Controls.Docking.dll
 
Additional information: Object reference not set to an instance of an object.
How can I handle this exception

I have another problem with right to left TileView
when I drag a tile in right to left mode, the tile flips horizontally 180 degrees.
I attached a picture of right to left TileView
Pavel R. Pavlov
Telerik team
 answered on 28 Jul 2014
3 answers
324 views
Hello Telerik-Team,

i tried the Pivot Grid and it ist really nice and easy to use.

But I have two questions:

1. Is there any possibility to use different currencies when formatting a decimal value? When I use "C" in "StringFormat" my current culture is used...

2. Can i export the data that is displayed in the control to use in excel or to print?

Thanks for your help.
Rosen Vladimirov
Telerik team
 answered on 28 Jul 2014
1 answer
138 views
hey guys,

i looked at your demo and saw the TableShape example and asked myself, if it is possible that the connections do not overlap (line on line) each other when they are in the same direction (horizontal, vertical)? Because when i will follow one connection with my eyes it is not really comfortable when two or more connections are looking like they are the same.

Jon
Zarko
Telerik team
 answered on 25 Jul 2014
4 answers
169 views
OK, I've searched through the objects pretty thoroughly, and can't seem to find a solution to this problem.  I am trying to retrieve the point (X Y coordinates) within the current page where a mouse event fires (in this case, mouse up event)

I can get the screen coordinates, and from that the coordinates within the control, but I'm interested in returning the Point within the actual page being clicked on.  Any hints?

Deyan
Telerik team
 answered on 25 Jul 2014
1 answer
284 views
Hi,
I can not determine the coordinates of a mouse click on a pdf page. 
I would like to save the coordinates and page number in a "bookmark" for then navigate these bookmarks using the method GoToDestination. 

Can you help me?

Clement
Deyan
Telerik team
 answered on 25 Jul 2014
15 answers
441 views

Hello. I have big problem. I have application with next structure: ... -> ScrollViewer -> Canvas -> ContentControls (many) -> GridView.

When I remove one ContentControl with GridView from Canvas, GridView is still be in memory. It occurs because the gridView has SizeChangedEventHandler (see attached image).

I deleted ScrollViewer from application and now gridView delete from memory.

Full Call stack from attached image

Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewDataControl.EnsureInternalScrollControls() GridViewDataControl.cs
Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewDataControl.get_InternalScrollHost() GridViewDataControl.cs
Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewHeaderRow.MeasureOverride( Size ) GridViewHeaderRow.cs
PresentationFramework!System.Windows.FrameworkElement.MeasureCore( Size )
PresentationCore!System.Windows.UIElement.Measure( Size )
PresentationFramework!System.Windows.Controls.Grid.MeasureCell( int,bool )
PresentationFramework!System.Windows.Controls.Grid.MeasureCellsGroup( int,Size,bool,bool )
PresentationFramework!System.Windows.Controls.Grid.MeasureOverride( Size )
PresentationFramework!System.Windows.FrameworkElement.MeasureCore( Size )
PresentationCore!System.Windows.UIElement.Measure( Size )
PresentationFramework!System.Windows.Controls.ScrollViewer.MeasureOverride( Size )
Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewScrollViewer.MeasureOverride( Size ) GridViewScrollViewer.cs
PresentationFramework!System.Windows.FrameworkElement.MeasureCore( Size )
PresentationCore!System.Windows.UIElement.Measure( Size )
PresentationFramework!System.Windows.Controls.Grid.MeasureCell( int,bool )
PresentationFramework!System.Windows.Controls.Grid.MeasureCellsGroup( int,Size,bool,bool )
PresentationFramework!System.Windows.Controls.Grid.MeasureOverride( Size )
PresentationFramework!System.Windows.FrameworkElement.MeasureCore( Size )
PresentationCore!System.Windows.UIElement.Measure( Size )
PresentationFramework!System.Windows.Controls.Border.MeasureOverride( Size )
PresentationFramework!System.Windows.FrameworkElement.MeasureCore( Size )
PresentationCore!System.Windows.UIElement.Measure( Size )
PresentationFramework!System.Windows.Controls.Control.MeasureOverride( Size )
Telerik.Windows.Controls.GridView!Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride( Size ) GridViewDataControl.cs
PresentationFramework!System.Windows.FrameworkElement.MeasureCore( Size )
[Truncated]


Can you help me?

Thanks

Dimitrina
Telerik team
 answered on 25 Jul 2014
4 answers
858 views
Hi I am using RadMenu. I want the dropdown menu to close after one of the menuitems clicked.
I am using the attached code but it doesn't close at this point. I need to click outside of the menu to close that dropdown options. Please help.
<Button Style="{StaticResource AddButton}">
    <telerik:RadContextMenu.ContextMenu >
        <telerik:RadContextMenu EventName="Click" ItemsSource="{Binding NewEntityMenuItems}" StaysOpen="False">
            <telerik:RadContextMenu.ItemTemplate>
                <DataTemplate>
                    <telerik:RadMenuItem Header="{Binding Text}" Command="{Binding MenuItemClickedCommand}" StaysOpenOnClick="False"></telerik:RadMenuItem>
                </DataTemplate>
            </telerik:RadContextMenu.ItemTemplate>
        </telerik:RadContextMenu>
    </telerik:RadContextMenu.ContextMenu>
</Button>

Andy
Top achievements
Rank 1
 answered on 25 Jul 2014
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?