Telerik Forums
UI for WPF Forum
3 answers
123 views
Hi all,

I am looking for a way to know which datapoints (or screen coordinates) are in range of my current zoom level.
I'm drawing specific stuff above the graph and don't want to change anything if the user clicks outside the graph.

Any ideas?

Kind regards,
Dwight
Tsvetie
Telerik team
 answered on 06 May 2013
14 answers
1.8K+ views

I have a WPF application which contains a window, which has a RadGridView control in it.  There's an action that I want to occur when the user double clicks on a row in the `RadGridView` control, or if they press the `Enter` key while a row is selected.

The `RadGridView` control currently has an event handler associated with the `MouseDoubleClick` event.  What I want to do is to execute the same code that's in the `MouseDoubleClick` event handler when the user presses the `Enter` key and a row is selected in the `RadGridView`.  I've already moved that code into a helper method that can be called from either place.

Right now, pressing enter while a row is selected in the RadGridView control causes the row after the currently selected one to be selected.  How do I change the behavior associated with pressing the Enter key?

Tony
Top achievements
Rank 1
 answered on 06 May 2013
10 answers
263 views
Hi ,
Can we expect RadRichTextBox for WPF within 2 months , ie by April 2011? We are eagerly waiting for that.
Regards,
RS
Boby
Telerik team
 answered on 06 May 2013
0 answers
97 views
Dear staff,
      it is possible to display the current page based on a selected item in the grid?
      The selection of the element can be done dynamically, but not the paging
      below the selected row.
     That is, the current page must act on the basis of where the selected row in the grid.

is it possible?

thanks in advice
AP
Alberto
Top achievements
Rank 1
 asked on 06 May 2013
3 answers
57 views
Hi!

We have been using Telerik controls for the past 3 years and have built extensive WPF Controls with RadGrids for our customers to view their data. More and more we are getting asked for the ability to have the reports automatically created and emailed in a PDF format every night to them. We built our own service to do this that exports the Grid to a .XPS file to get the identical look and feel of the screen then use a .XPS to PDF converter to do the final conversion so that we didn't have to recreate all of the controls in another format. The challenge is the service is proving unreliable due to having may different dependencies.

My question is:
Does Telerik have something in their suite of controls and libs that would facilitate the scheduling and emailing of reports in a more "Industry standard" fashion that wold move the report creation closer to the data? How to other people accomplish this task, as I know it is nothing new.

Thanks,
Ryan
Dimitrina
Telerik team
 answered on 06 May 2013
2 answers
358 views
After the 'x' button on a floating RadPane is clicked, the ToolWindow is gone, but the pane can still be found in Docking.Panes .
Try to use pane.MakeFloatingDockable() but failed, the pane won't show.
Is there any way to restore the closed floating RadPane or even the ToolWindow?
Chang
Top achievements
Rank 1
 answered on 06 May 2013
0 answers
97 views
I have an hierarchy gridview with 2 levels.  We use MVVM with data annotation for validation.  The parent item have a data annotation on the child collection to validate that we have at least one child item.  The validation error shows on the parent row but when I add the item to the child collection the parent row remains marked with an error.  Any idea?
Alex Martin
Top achievements
Rank 1
 asked on 06 May 2013
10 answers
330 views
Hi

Is it possible to add a gradient (shown in attachment) at the top and bottom of the gridviewVirtualizingPanel (or ColumnCollection)?
Currently I do this by setting a LinearGradientBrush on my Radgridview.background and set the rowbackground transparent. But when I resize my window, the gradient disappears. 

<t:RadGridView.Background>
    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="White" Offset="0" />
        <GradientStop Color="Gray" Offset="0.07" />
        <GradientStop Color="White" Offset="0.1" />
        <GradientStop Color="White" Offset="0.97" />
        <GradientStop Color="Gray" Offset="1" />
    </LinearGradientBrush>
</t:RadGridView.Background>


Thanks in advance
Lowie
Lowie
Top achievements
Rank 1
 answered on 06 May 2013
3 answers
303 views
I'm using the RadTreeListView v4.0.30319 to display my hierarchical data set. I know this is an older version but breaking changes in the newer version of the GridView (the ones that cause data duplication on refreshing) mean I can't upgrade.

My problem is this.

My TreeListView has a two-way binding on the SelectedItem property. If I add a new item to the underlying hierarchical data, it appears in the grid and is selected how I would expect, but only if the branch of the tree I am adding to is expanded. If I add a new item to a currently collapsed group, the proeprty I am binding to (SelectedLocation in my case) updates as expected but the parent branch remains collapsed and the tree's rendering does not change. This makes it look like the previously selected item is still selected.
Is there a solution to this that is pure MVVM (ie. no code behind the window)?

I have tried setting the AutoExpandGroups to true to see if this helped. However, there appears to be a bug in this. In my data I have two root objects, each with several children, grandchildren, etc. When I have AutoExpandGroups set to true, only the first root and the first child are displayed. Everything else only appears if you collapse and re-expand nodes. I'm assuming I'm stuck with this because of not being able to upgrade to the later version of the controls due to the breaking change in the GridView.

My current TreeListView's XAML is:

    <Grid Visibility="{Binding .,Converter={StaticResource PermissionCodeConverter},ConverterParameter='SHOW LOCATIONS'}">
        <telerik:RadTreeListView Name="LocationTree"
                                 ItemsSource="{Binding Locations}"
                                 SelectedItem="{Binding SelectedLocation,Mode=TwoWay}"
                                 IsReadOnly="True"
                                 AutoGenerateColumns="False"
                                 CanUserFreezeColumns="False"
                                 CanUserReorderColumns="False"
                                 RowIndicatorVisibility="Collapsed"
            <telerik:RadTreeListView.SortDescriptors>
                <telerik:SortDescriptor Member="Name" SortDirection="Ascending"/>
            </telerik:RadTreeListView.SortDescriptors>
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding ChildLocations}" />
            </telerik:RadTreeListView.ChildTableDefinitions>
            <telerik:RadTreeListView.Columns>
                <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" Width="200">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <Image Source="{Binding IconResourcePath}" Width="16" Height="16" HorizontalAlignment="Left" Margin="0 0 8 0"/>
                                <TextBlock Text="{Binding Name}"/>
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding LocationType.Description}" Header="Type" Width="175" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding CheckDigits}" Header="Check Digits" Width="115" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding DisplayablePalletLimit}" Header="Maximum Pallets" Width="125" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Status}" Header="Status" Width="100" />
            </telerik:RadTreeListView.Columns>

            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu x:Name="GridContextMenu">
                    <telerik:RadContextMenu.Items>
                        <telerik:RadMenuItem Header="Create Child" Command="{Binding CreateChildLocationCommand}">
                            <telerik:RadMenuItem.IconTemplate>
                                <DataTemplate>
                                    <Image Source="..\Images\16x16\Create.png"/>
                                </DataTemplate>
                            </telerik:RadMenuItem.IconTemplate>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Header="Edit" Command="{Binding EditLocationCommand}" Style="{StaticResource DefaultContextMenuItem}">
                            <telerik:RadMenuItem.IconTemplate>
                                <DataTemplate>
                                    <Image Source="..\Images\16x16\Edit.png"/>
                                </DataTemplate>
                            </telerik:RadMenuItem.IconTemplate>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Header="Delete" Command="{Binding DeleteLocationCommand}">
                            <telerik:RadMenuItem.IconTemplate>
                                <DataTemplate>
                                    <Image Source="..\Images\16x16\Delete.png"/>
                                </DataTemplate>
                            </telerik:RadMenuItem.IconTemplate>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Header="Enable" Command="{Binding EnableLocationCommand}">
                            <telerik:RadMenuItem.IconTemplate>
                                <DataTemplate>
                                    <Image Source="..\Images\16x16\Enable.png"/>
                                </DataTemplate>
                            </telerik:RadMenuItem.IconTemplate>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem Header="Disable" Command="{Binding DisableLocationCommand}">
                            <telerik:RadMenuItem.IconTemplate>
                                <DataTemplate>
                                    <Image Source="..\Images\16x16\Disable.png"/>
                                </DataTemplate>
                            </telerik:RadMenuItem.IconTemplate>
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem IsSeparator="True" />
                        <telerik:RadMenuItem Header="Refresh" Command="{Binding RefreshCommand}">
                            <telerik:RadMenuItem.IconTemplate>
                                <DataTemplate>
                                    <Image Source="..\Images\16x16\Refresh.png"/>
                                </DataTemplate>
                            </telerik:RadMenuItem.IconTemplate>
                        </telerik:RadMenuItem>
                    </telerik:RadContextMenu.Items>
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>

        </telerik:RadTreeListView>

Nick
Telerik team
 answered on 06 May 2013
12 answers
361 views
I have a GridView in its own window which opens from a menu click. It's bound to a table in an SQLite database using an ObjectQuery on an Entity Data Model. The table has 150,000 rows and 50 columns. It takes 15 seconds from the window opening before the first page of data is displayed, with a blank window displayed. I then set the DataLoadMode to Asynchronous, and now when the window opens, I get the column headers displayed, and the 'busy' indicator, which is an improvement, but it still takes 15 seconds to show the first page of data.

If your demo is loading a million rows in 2 seconds, what am I doing wrong?

One problem with setting the DataLoadMode to Asyncronous is that when I edit a cell, the 'busy' indicator comes back on, and the first page of the data is displayed again. My CellEditEnded handler just calls the SaveChanges() method of my Entities object. Should I be doing it a different way to avoid being taken back to the start of the data?

Steve
Rossen Hristov
Telerik team
 answered on 06 May 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
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
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?