Telerik Forums
UI for WPF Forum
1 answer
72 views
Hi,

We are experiencing a strange behaviour with GridViewHeaderRow Indicator (top left corner cell of the grid, see http://www.telerik.com/help/wpf/radgridview-styling-indent-cells.html)

It simply disappears when the Theme is changed (between Expression_Dark and Office_Blue), which messes up the grid layout. The Theme change is applied changing Application Resource file containing required Resource Dictionaries from resource dll.

Application.Current.Resources.Source = ...Uri

Any ideas?
Stevo
Yoan
Telerik team
 answered on 28 Nov 2013
1 answer
279 views
Hi,

I seem to have come across an issue with setting the StartPoint and EndPoint properties of a RadDiagramConnection.  The connection is not redrawn.  Only when I move one of the end does it redraw properly.

It only happens when a StartPoint AND EndPoint is specified (ie not attached to any other shapes via the Source and Target properties).
So I cant programmatically move the connector at the moment which is an issue.  Can you help me please?


Here's a quick sample:

XAML:

<Grid>

<Grid.RowDefinitions>

<RowDefinition Height="*"/>

<RowDefinition Height="Auto"/>

</Grid.RowDefinitions>

<telerik:RadDiagram x:Name="_diagram" Grid.Row="0">

<telerik:RadDiagramConnection x:Name="_connector"

StrokeThickness="2"

StartPoint="100,100"

EndPoint="200,200" />

</telerik:RadDiagram>

<Button x:Name="_do"

Grid.Row="1"

Content="Move" Click="_do_Click" />

</Grid>


Code behind:
 
public partial class MainWindow : Window

{

public MainWindow()

{

InitializeComponent();

 

}

private void _do_Click(object sender, RoutedEventArgs e)

{

_connector.EndPoint = new Point(300, 300);

}

}


Pavel R. Pavlov
Telerik team
 answered on 28 Nov 2013
5 answers
267 views
Hello!

I'm using RadDataGridView. I expect, that when data is changed
(i'm using INotify, so that with PropertyChanged event is all ok), aggregate functions have to be recalculated. But this don't happening without additional moves.
On forums there are a lot of advices to use Grid.CalculateAggregate, no matter that it is not good for MVVM. But this function doesn't recalculate anything.
So i tested a lot of variants and i found one, that works how expected, but i think this solve is too complex for this problem.
After data changed i use this code
//Refreshing aggregate functions
            var items = MyGrid.Items;
            foreach (var item in items)
            {
                items.EditItem(item);
                items.CommitEdit();
            }

So my question is: can i recalculate aggregate functions more easily?
More over, attached code works only when i am grouping my collection only by Second property - this is huge problem too.
Here is the simple project which resolve the problem.
Dimitrina
Telerik team
 answered on 28 Nov 2013
1 answer
180 views
Hello,

        I am able to use all the functionality like zoom pan behavior,tooltip etc in my charts. So i have become more familiar with radcartesian chart but I am facing problem in implementing the Zoom and pan behavior in different way.
    
       Currently the built in functionality for pan and zoom behavior functionality works with mouse but i need to develop functionality on button click. i.e. if the user clicks the button then the chart should zoom or get to original state.

 Is there any way to do this functionality?

Thank You in Advance
Petar Marchev
Telerik team
 answered on 28 Nov 2013
2 answers
67 views
I'm trying to give the ability to the user to change between two modes ( with/without clustering). Right now I'm "nulling" the itemtemplate and removing the datamappings. what is the best and clean way to achieve this ?

ObservableCollection<MapItem> _dataItems = this.GetMapData();
 if (MapConfigurationProperties.IsClusteringEnabled)
 {
    this.informationLayer.DataMappings.RemoveAll();
    this.informationLayer.ItemTemplate = null;
    this.informationLayer.ClusteredDataSource = _dataSource;
 }
else
{
    this.informationLayer.ClusteredDataSource = null;
    this.informationLayer.ItemTemplate = this.radMap.Resources["itemTemplate"] as DataTemplate;
    this.informationLayer.DataMappings.Add(new DataMapping("Location", DataMember.Location));
    this.informationLayer.DataMappings.Add(new DataMapping("BaseZoomLevel",
                                           DataMember.ZoomLevel));
    this.informationLayer.DataMappings.Add(new DataMapping("ZoomRange", DataMember.ZoomRange));
    this.informationLayer.ItemsSource = _dataItems;
}

One strage thing that happen swithing from one mode to another is that the points one the map are translated despide the fact the the underline data are unchanged.



BOARD LAB
Top achievements
Rank 1
 answered on 28 Nov 2013
1 answer
167 views

The first time I click on the expander for a load on demand item, the little circle appears, but never goes away.  The LoadOnDemand event doesn't appear to fire as well.  When I click on a second on demand item I receive the following exception...


 'LoadingVisualAngleTransform' name cannot be found in the name scope of 'System.Windows.Controls.ControlTemplate'.



Here is the xaml...

<telerik:RadTreeView x:Name="ExtendedTreeView"
     ItemsSource="{Binding TreeViewItems}"
     BorderThickness="0"
     IsEditable="True"
     IsLoadOnDemandEnabled="True"
     LoadOnDemand="ExtendedTreeView_LoadOnDemand"
     telerikAnimation:AnimationManager.IsAnimationEnabled="False"
     FocusVisualStyle="{x:Null}">


















Steve
Top achievements
Rank 1
 answered on 27 Nov 2013
1 answer
124 views
Hi,

is it possible to reset grid columns layout on demand, as if new data was just loaded? Sometimes the users resize/reorder columns and we would like to reset all those changes to original (auto size)

Thanks,
Stevo
Dimitrina
Telerik team
 answered on 27 Nov 2013
5 answers
400 views
Hello,

I am using the Q3 2013 Telerik release (2013.3.1016). I am doing a simple binding to the DefaultView of a DataTable. Due to the nature of the requirement, I need to have AutoGenerateColumns set to true, but I'm really not doing anything special otherwise.

What I'm noticing is that when bound to the DefaultView of a DataTable with just 200 rows and 4 columns, the scrolling performance is so bad as to be unusable. It's extremely jerky and very slow, again to the point of being completely unusable. When I bind directly to the same DataTable (without using the DefaultView), there is absolutely no problem with scrolling - it is smooth and seamless.

I've tried everything that I can think of to improve performance, including everything on your RadGridView "Performance Tips and Tricks" at:
http://www.telerik.com/help/wpf/radgridview-performance-tips-tricks.html. The reason that I need to use the DefaultView is for the data binding and error features implemented on the DataView but not the DataTable. I've tried all sorts of hacks with changing data in the DataTable from my ViewModel, firing an event that my codebehind subscribes to, and constantly calling Rebind() on the RadGridView, but I'm still left with issues that require no effort when simply bound to the DefaultView. There just has to be a way to achieve smooth scrolling with a meager 200 rows and 4 columns.

1: The RadGridView is in a Grid with the row height set to star and the column width set to star. There is no "infinity" based measurement going on.

2: I have EnableRowVirtualization set to "True", and I've confirmed that this is working using WPF Inspector (similar to Snoop). Furthermore, I've turned virtualization off, and although scrolling performance becomes perfectly smooth even with the DefaultView, memory usage becomes absurdly high. I will need to keep virtualization on.

3: Originally I had the property bound as part of the DataTable, like this: ItemsSource="{Binding MyDataTable.DefaultView}". After reading your tips and tricks regarding not using property paths to improve performance, I exposed the DefaultView directly on my ViewModel so that the binding became ItemsSource="{Binding MyDefaultView}". This did not improve performance at all.

4: I'm not using any custom styles or templates at all.

5: My WPF application is globally using the Windows8 Theme (StyleManager.ApplicationTheme = new Windows8Theme() is right before InitalizeComponent() on my MainWindow.xaml.cs, also per your documentation). According to your "Tips and Tricks", this uses "lightweight templates" that should improve performance, but again, testing with different themes produces the same terrible scrolling performance.

6: I've tried using ScrollMode="Deferred", but the behavior is not desirable, and even when letting go of the mouse to let the GridView render, there is a very long pause while the data renders.

7: Paging is not a viable solution here and can't be used for several reasons, the most important of which is that the users want to view this GridView like they would in Excel.

With all that in mind, here is the XAML for my RadGridView (note that ImportDataView is the DefaultView of my DataTable, exposed directly from the ViewModel):

<telerik:RadGridView
  Name="PreviewDataGridView"
  ItemsSource="{Binding ImportDataView}"
  EnableRowVirtualization="True"
  SelectionMode="Extended"
  SelectionUnit="Mixed"
  IsReadOnly="False"
  AutoGenerateColumns="True"
  ShowGroupPanel="False"
  ShowInsertRow="False"
  ReorderColumnsMode="None"
  CanUserInsertRows="False"
  CanUserDeleteRows="True"
  CanUserResizeRows="False"
  CanUserSelect="True"
  CanUserSortColumns="False"
  CanUserFreezeColumns="False"
  CanUserReorderColumns="False"
  IsFilteringAllowed="False"
  BorderBrush="Black"
  BorderThickness="1"
  Margin="4, 6, 4, 4"
  Grid.Row="2"
  Grid.Column="0">
 </telerik:RadGridView>

I've spent a ton of time trying to figure this out and could really use some help.

Thanks for your time,
Jon
Jon
Top achievements
Rank 1
 answered on 27 Nov 2013
0 answers
156 views

Hello,

I have a grid that displays two levels.

Applications
   Client Access
    Module Access

When you click the "+" to show the child rows it takes about 8-10 seconds to expand and show the two child tables.  Each table does not have more that 40 records.

1) How can I set the cursor to wait while it happening?
2) How can I speed it up?

Here is the relevant section of the markup.

<telerik:RadGridView.HierarchyChildTemplate>                               
   <DataTemplate>
       <StackPanel>                                       
              <telerik:RadGridView ItemsSource="{Binding ClientAccess}" AutoGenerateColumns="False">
                   <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn Header="" DataMemberBinding="{Binding IsSelected}"/>
                        <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding SecurityLevel}" Header="Security Level" />
                          <telerik:GridViewDataColumn Header="Identity"UniqueName="Identity"/>                                                                            
                    </telerik:RadGridView.Columns>
               </telerik:RadGridView>
 
 
<telerik:RadGridView ItemsSource="{Binding ToolModuleAccess}" AutoGenerateColumns="False">
        <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="" DataMemberBinding="{Binding IsSelected}"/>
        <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}"/>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding SecurityLevel}" Width="100" Header="Security Level" />
         <telerik:GridViewDataColumn Header="Identity" UniqueName="Identity"/>                                           
        </telerik:RadGridView.Columns>
 </telerik:RadGridView>
</StackPanel>
 
</DataTemplate>                  
</telerik:RadGridView.HierarchyChildTemplate>



The viewmodel and all of it's data is set prior to the form's creation.

Any help would be greatly appreciated.

Thanks!
Reid






Reid
Top achievements
Rank 2
 asked on 27 Nov 2013
1 answer
114 views

How Can I Put The PointMark Above AxisY,Like The Attach Image.

I Can't Find A Property To Set.

Help Me,Please.

Pavel R. Pavlov
Telerik team
 answered on 27 Nov 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?