Telerik Forums
UI for WPF Forum
3 answers
122 views
Hi,

My rad gridview becomes unresponsible for a couple of seconds while grouping certain amount of data. All I want to do is to show some kind of loading indicator for this period of time. I tried to leverage OnGrouping, OnGrouped events to set IsBusy but it does not work:

OnGrouping(){  gridView.IsBusy = true;}
OnGrouped(){  gridView.IsBusy = false;}


It looks like GridView performs all grouping in UI thread without any chance for 'IsBusy = true' being proceed before grouping finishes. 

Is this any recommended way to achieve this? I can't believe nobody meets this issue but forum search was unsuccessful :(  

Thanks in advance



Dimitrina
Telerik team
 answered on 28 Aug 2014
1 answer
402 views
Hello,
is there a possibilility to programmatically scroll the ListBox to display a specific item, something like ScrollIntoView of the WPF list box ?
Patrick
Kalin
Telerik team
 answered on 28 Aug 2014
2 answers
98 views
Hi,

I try to display a chart with SeriesProvider using implicit style.

I work on the SDK sample project for series provider, I change the dll references to used the no-xaml ones and I add the implicit style on my themes folders.

When I try to provide some series, the text "no data to plot" is displayed, so the series are discovered but not the data...

I upload my project here : https://www.sendspace.com/file/qdkvzk


Thanks,
Fabien
Michaël
Top achievements
Rank 1
 answered on 28 Aug 2014
1 answer
95 views
Hi,

When I place a RadGridView in the LargeContent part of a RadFluidContentControl the Column Headers are shown but no data is shown in the grid.

If I place the exact same RadGradView into the Content part of the same RadFluidContentControl all of the data is shown in the grid.

Any help would be appreciated.

Thanks
Anthony

​
<telerik:RadFluidContentControl NormalToSmallThreshold="200 200" NormalToLargeThreshold="500 300">
    <telerik:RadFluidContentControl.SmallContent>
        <TextBlock Text="Small Content" />
    </telerik:RadFluidContentControl.SmallContent>
    <telerik:RadFluidContentControl.Content>
        <TextBlock Text="Normal Content" />
    </telerik:RadFluidContentControl.Content>
    <telerik:RadFluidContentControl.LargeContent>
        <Grid>
            <telerik:RadGridView x:Name="RadGridView"
                     HorizontalAlignment="Left"
                     VerticalAlignment="Top"
                     CanUserFreezeColumns="False"
                     RowIndicatorVisibility="Collapsed"
                     ItemsSource="{Binding Today}"
                     AutoGenerateColumns="False"
                     BorderThickness="0"
                     CanUserSelect="False"
                     ShowGroupPanel="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Task"
            DataMemberBinding="{Binding Path=Task}"
            IsReadOnly="True"
                                    TextWrapping="Wrap"
                                    IsFilterable="False"/>
                <telerik:GridViewDataColumn Header="Tool"
                        DataMemberBinding="{Binding Path=Tool}"
                                    IsReadOnly="True"
                                    TextWrapping="Wrap"
                                    IsFilterable="False"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        </Grid>
    </telerik:RadFluidContentControl.LargeContent>
</telerik:RadFluidContentControl>
Anthony
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 28 Aug 2014
4 answers
134 views
I've transitioned all my geometry to MapShapeData objects, with the exception of MapPinPoint. I am still using those because they allow positioning over the center instead of the upper left corner. How can I create an EllipseData (for example) so that its center is at 30,-90 instead of its upper left corner at that coordinate?
Ludmila
Top achievements
Rank 1
 answered on 27 Aug 2014
1 answer
192 views
I want draw scatter line chart like Excel X Y Scatter Chart.
I have data with null values that I want to plot on the scatter line chart,
When I tried to do that it shows points but there is no line connecting that points.

There are two series in my chart

Series 1
 At X axis- 2004/3/31  2004/12/31   2005/3/31 2005/12/31  2006/3/31 2006/12/31
 At Y axis-    2000               null               3000           null               4000          null

Series 2
 At X axis- 2004/3/31  2004/12/31   2005/3/31 2005/12/31  2006/3/31 2006/12/31
 At Y axis-    null               4000               null           5000               null          6000

when I tried to plot this data it showed only points at respective dates. So how to draw continuous line from start to end joining this points. 
Milena
Telerik team
 answered on 27 Aug 2014
2 answers
150 views
Hello,

    I'm currently modifying the OrgChart example to add the ability to build a hierarchy inside a team (a team member can have children team member).
    To be able to know if the user is dragging a Team Member over another one I've modified the OgChartDiagram.GetShapeUnderPosition() to be able to get a list of shapes instead of the top shape :

public List<RadDiagramShape> GetShapeUnderDragPosition()
{
    List<IShape> ShapeList = this.ServiceLocator.GetService<IHitTestService>().GetTopShapesUnderPoint(this.currentDragPosition).ToList();
 
    List<RadDiagramShape> RetList = new List<RadDiagramShape>();
 
    foreach (IShape shape in ShapeList)
    {
        if (shape is RadDiagramShape)
        {
            RetList.Add((RadDiagramShape)shape);
        }
    }
 
    return RetList;
}

My problem is that the method always return a single team item, never a team member.
(I also changed the inheritance of OrgTeamMemberViewModel to make it inherit from HierarchicalNodeViewModel instead of ViewModelBase..

is GetTopShapesUnderPoint() the right method to use for this ?

Thanks !
Pavel R. Pavlov
Telerik team
 answered on 27 Aug 2014
1 answer
155 views
Hi, I want to get the main ribbon window's correct top/left location when it is maximized.
I set some pop-up dialogs' locations based on the main ribbon window's top/left location, and it works fine when it is in the restored state.
When I maximized it, however, the previous location before maximization seems to be used.
I could just use (0, 0) location for a single monitor maybe, but how can I get the right location for dual monitors?
Pavel R. Pavlov
Telerik team
 answered on 27 Aug 2014
3 answers
376 views
Hi,
  I am using a RadMap that depicts a number of physical area around the map that are drawn with MapPolygons.  This works great.  I am trying to put text inside each corner of each MapPolygon to tell users what area they are viewing.  I need the scale of this text to match the map's scale as the user zooms in and out.  I have added labels with a number of approaches, but I always find that they don't scale correctly  when you zoom in.  For example, in the attached file you will see how the text gets very small as you zoom in.  In that file you will also see the way I need the text to look.

 In this example the following code gets executed for each corner in a given MapPolygon that I am trying to label:

                Grid grid = new Grid();
                grid.Background = new SolidColorBrush(Colors.White);
                TextBlock text = new TextBlock();
                text.Foreground = new SolidColorBrush(Colors.Purple);
                text.Text = "My Label Data";
                grid.Children.Add(text);

                Location newLocation = ... (based on MapPolygon corner)
                MapLayer.SetLocation(grid, newLocation);
                this.informationLayer.Items.Add(grid);

  Is there a way to add text to a RadMap and have it keep its location and scale correctly as a user zooms in/out?

Thanks.

James
Top achievements
Rank 1
 answered on 27 Aug 2014
3 answers
546 views
I'm having problems adding CartesianGridLineAnnotations to my RadCartesianCharts. I've read the documentation on this page : http://www.telerik.com/help/wpf/radchartview-annotations-gridline.html and followed the example answer given in this forum post : http://www.telerik.com/forums/cartesian-chart-without-adding-new-axis-for-custom-line but whenever I try to add the annotation I get an error. 

In the forum post you give the following example: 

[code]
<telerik:RadCartesianChart x:Name="chart">
   <telerik:RadCartesianChart.VerticalAxis>
      <telerik:LinearAxis />
   </telerik:RadCartesianChart.VerticalAxis>
   <telerik:RadCartesianChart.Annotations>
   <telerik:CartesianGridLineAnnotation Axis="{Binding ElementName=chart, Path=VerticalAxis}" Value="25" />
[/code]

Which sets up the chart and axis, then adds the CartesianGridLineAnnotation, binding the Axis value to ther VerticalAxis in the element named "chart." 

My code is as follows:

[code]
<telerik:RadCartesianChart x:Name="SummaryChart" UseLayoutRounding="True" Grid.Row="1" TooltipTemplate="{Template}">
   <telerik:RadCartesianChart.HorizontalAxis>
      <telerik:CategoricalAxis LabelFitMode="Rotate" />
   </telerik:RadCartesianChart.HorizontalAxis>
                                              
   <telerik:RadCartesianChart.VerticalAxis>
      <telerik:LinearAxis />
   </telerik:RadCartesianChart.VerticalAxis>
                                              
   <telerik:RadCartesianChart.Annotations>
      <telerik:CartesianGridLineAnnotation Axis="{Binding ElementName=SummaryChart, Path=VerticalAxis}" Value="6" Stroke="Red" StrokeThickness="1"/>
   </telerik:RadCartesianChart.Annotations>
[/code]

As far as I can tell this is following your example of how to bind to the Vertical axis. 

However when I use this XAML I get the following binding error:

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=SummaryChart'. BindingExpression:Path=VerticalAxis; DataItem=null; target element is 'CartesianGridLineAnnotation' (Name=''); target property is 'Axis' (type 'CartesianAxis')

Do you know what I'm doing wrong? 

Thanks,

Andy.






Martin Ivanov
Telerik team
 answered on 27 Aug 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
DataPager
PersistenceFramework
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?