Telerik Forums
UI for WPF Forum
3 answers
105 views
On Right Click of the Cluster I would like to get the List of all the Children inside that ClusterItem , SO that I can Display the List in the Context Menu . 


Below is my cluster Code. Could anyone please help me in this




 <telerik:InformationLayer x:Name="InformationLayer" ClusteredDataSource="{StaticResource ClusteredDataSource}"></telerik:InformationLayer>


  <DataTemplate x:Key="ClusterTemplate" x:Name="DataTemplate">
            <Grid x:Name="ParentRoot"     Width="40" Height="40" telerik:MapLayer.Location="{Binding Path=Center}" telerik:MapLayer.HotSpot="0.5,1"
 MouseRightButtonUp="MapMouseRightButtonUp" Tag="{Binding Path=Data}" >
                <Path Data="" Stretch="Fill" Margin="0,0,-0.574,0" StrokeThickness="0.2">
                    <Path.Fill>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="Green"  Offset="0"/>
                            <GradientStop Color="Green" Offset="1"/>
                            <GradientStop Color="Green"  Offset="0.523"/>
                        </LinearGradientBrush>
                    </Path.Fill>
                </Path>
                <!-- Title -->
                <StackPanel x:Name="Text" HorizontalAlignment="Center" VerticalAlignment="Center">
                    <TextBlock  FontSize="13" FontWeight="Bold"
                               Foreground="White"
                               Text="{Binding Path=Count}"/>
                </StackPanel>

            </Grid>
 </DataTemplate>

        <local:MassiveDataSource x:Key="MassiveDataSource" />
        <local:Test x:Key="Test"/>

            <telerik:ClusteredDataSource x:Key="ClusteredDataSource"
                 ItemsSource="{StaticResource MassiveDataSource}" ItemTemplate="{StaticResource ClusteredItemTemplate}"
                ClusterItemTemplate="{StaticResource ClusterTemplate}"   
                GenerateClustersOnZoom="True">

        </telerik:ClusteredDataSource>
vinutha
Top achievements
Rank 1
 answered on 09 Dec 2014
1 answer
173 views
var workbook = CreateWorkBook(grid, settings);
 
                     if (workbook != null)
                     {
                         var provider = new XlsxFormatProvider();
                         using (var output = dialog.OpenFile())
                         {
                             provider.Export(workbook, output);
                             fileName = dialog.FileName;
                         }
                     }

I use your demo for my project. But some time I get Error : the writer is closed or in error state.
Any Idea about this error.
It happen  in line: provider.Export(workbook, output);
Thanks
Petya
Telerik team
 answered on 08 Dec 2014
6 answers
292 views
Hello,

I have an application with lot's of windows with grids to display data. I'm using both RadGridView and RadTreeListView controls.

I need to style grid rows in different ways: mostly it is coloring foreground based on data and alternate rows coloring. Color for alternate rows is the same over the application. But styles for foreground colors are different for every single grid and for different data. So I suppose that if I setup property AlternateRowBackground once in the root style of the grid and then I will specify only RowStyle for every grid based on specific data to display it will merge my specific RowStyle with AlternateRowBackground. Unfortunately, I can't do that because if I set AlternateRowBackground GridView will not merge it with RowStyle: it will only apply AlternateRowBackground for the Background property od GridViewRow and that's all!

I believe it's a bug, because in common cases there're one style for all rows and only background changes for alternates. But now I have to specify AlternateRowStyle basedon my specific row style with only one setter for background for every grid.

For example this thread is about the same problem.
Nick
Telerik team
 answered on 08 Dec 2014
4 answers
106 views
Currently we are working with scheduleview from the UI for WPF Q1 2014 release.

As long as we are working with a mouse everything is working as expected.

the problem we are facing is once we install the application on a touch enabled tablet, we would expect to be able to pan through the calendar (vertical) as we would on a list control or any other control really.

but the only way for scrolling seems to be to actually use the vertical scrollbar on the right of the screen.

is there any way to enable scrolling/panning on a touch device?

regards.
Johan Lollinga
Johan
Top achievements
Rank 1
 answered on 08 Dec 2014
1 answer
186 views
Hi, 

I'm using RadCartesianChart for displaying ScatterAreaSeries. Below you can find my TrackBallInfoTemplate for the series. The problem with the TrackBallInfoTemplate is, if there is more than Point on the same Xvalue with different Yvalues, it displays the values from the first Point. But I want to display values from both Points or I want to be able to choose which point to display on theTrackBallInfoTemplate.

Please advice,

Regards
Semih 

<telerik:ScatterAreaSeries.TrackBallInfoTemplate>
                                <DataTemplate>
                                    <Grid Margin="0,0,0,0">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                                            <ColumnDefinition Width="100*"></ColumnDefinition>
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition></RowDefinition>
                                            <RowDefinition></RowDefinition>
                                            <RowDefinition></RowDefinition>
                                        </Grid.RowDefinitions>
                                        <TextBlock Grid.Row="0" Grid.Column="0" Style="{StaticResource statisticsTextStyle}" TextAlignment="Justify" Grid.ColumnSpan="2" Text="{Binding DataPoint.DataItem.Description}" />
                                        <TextBlock Grid.Row="1" Grid.Column="0" Style="{StaticResource statisticsTextStyle}" Text="Break:"  FontWeight="Bold"/>
                                        <TextBlock Grid.Row="1" Grid.Column="1" Style="{StaticResource statisticsTextStyle}" Text="{Binding DataPoint.DataItem.Xvalue, StringFormat=\{0\}. second}" Margin="3,0,0,0"/>
                                        <TextBlock Grid.Row="2" Grid.Column="0" Style="{StaticResource statisticsTextStyle}" Text="Saving:" FontWeight="Bold"/>
                                        <TextBlock Grid.Row="2" Grid.Column="1" Style="{StaticResource statisticsTextStyle}" Text="{Binding DataPoint.DataItem.Yvalue, StringFormat=\{0:0.00\}}" Margin="3,0,0,0" />
                                    </Grid>
                                </DataTemplate>
                            </telerik:ScatterAreaSeries.TrackBallInfoTemplate>
Peshito
Telerik team
 answered on 08 Dec 2014
5 answers
400 views
Hi,

Since RadDragAndDropManager is obsolete this causes problems for me. I can't get DragDropManager to work.

Is there a C# example where I can see how drag rows from one GridView to another GridView should be done?  I also need to know how to drag a row from GridView  to a "normal" WPF element like a button or Image.

Thanks!
Dimitrina
Telerik team
 answered on 08 Dec 2014
2 answers
521 views
HI, hello,
I am facing problem which should be fixed already (based post http://www.telerik.com/forums/gridview-vertical-scrollbar---last-item-not-fully-visible#V4PclbPjJkW3wbe7TUNsRg).

this is my code:
<Grid ScrollViewer.HorizontalScrollBarVisibility="Disabled"
          ScrollViewer.VerticalScrollBarVisibility="Disabled"
          MinWidth="300"
          MaxWidth="600"
          Height="500">
        <telerik:RadPanelBar ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                        ScrollViewer.VerticalScrollBarVisibility="Disabled">
            <telerik:RadPanelBarItem Header="Bar1">
                some content
            </telerik:RadPanelBarItem>
            <telerik:RadPanelBarItem Header="Bar2">
                <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
                    <telerik:RadGridView
                        Style="{StaticResource DefaultRadGridView}"
                        ItemsSource="{Binding ItemList}"
                        SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                         
                        ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                        ScrollViewer.VerticalScrollBarVisibility="Disabled"
                                    IsSynchronizedWithCurrentItem="False"
 
                                    EnableRowVirtualization="True"
                        EnableColumnVirtualization="False">
 
                        <telerik:RadGridView.Columns>
                            <!-- Name -->
                            <telerik:GridViewDataColumn
                                DataMemberBinding="{Binding Name}"
                                Header="Name"
                                Width="Auto" />
 
                            <!-- Description -->
                            <telerik:GridViewDataColumn
                                DataMemberBinding="{Binding Description}"
                                Header="Description"
                                Width="*"
                                TextWrapping="Wrap" />
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </ScrollViewer>
            </telerik:RadPanelBarItem>
            <telerik:RadPanelBarItem Header="Bar3">
                some content
            </telerik:RadPanelBarItem>
        </telerik:RadPanelBar>
    </Grid>


I have gridview in radpanelbar and I use scrollviewer. When the gridview is resized and wrapping of the text gets working, last item is partially (or whole) hidden. When TextWrapping is set to NoWrap, last item is shown correctly.
I tried also approach where I used just gridview scrollbar. This worked little bit better (it means that last item was not hiding so dramatically), but problem was still present.

I prepared nice demo where you can reproduce problem. I am using Q3 2014.

Steps to reproduce:
- run demo
- expand Bar2
- scroll to last item
- reduce width of main window to start text wrapping
- watch last item

When can be this fixed? Or which workaround should I use to fix this bug?
I tried to hack it by hooking on LayoutUpdated event and computing correct height of gridview, which worked fine. But unfortunatelly, it caused infinite calling of LayoutUpdated event in some cases (which lead to troubles especially at customers PCs).

Thanks for help.

P.S. I can send you working demo. I was not allowed to add zip file as attached files of this post.
SCHUHFRIED
Top achievements
Rank 1
 answered on 08 Dec 2014
3 answers
123 views
Hi,

I am trying to set a visual effect on ClusterItem by depending on the child items properties. I sent the ClusterItem to an IValueConverter and while debugging i can't see the child items in my ClusterItem but on coding there is no any property named items.

here is my Cluster template :
                    <DataTemplate x:Key="ClusterTemplate">
                        <Grid x:Name="ParentRoot"
                              Width="40" Height="40"
                              telerik:MapLayer.Location="{Binding Path=Center}"
                              telerik:MapLayer.HotSpot="0.5,1"
                              
                              MouseLeftButtonUp="ClusterMouseClick"
                              MouseRightButtonUp="ClusterRightMouseClick">
                            <Path Data="M978.6509,491.334L958.6109,491.334L954.4549,500.874L949.9999,491.334L930.6259,491.334C928.4169,491.334,926.6259,489.543,926.6259,487.334L926.6259,433.272C926.6259,431.063,928.4169,429.272,930.6259,429.272L978.6509,429.272C980.8599,429.272,982.6509,431.063,982.6509,433.272L982.6509,487.334C982.6509,489.543,980.8599,491.334,978.6509,491.334z"
                                  StrokeStartLineCap="Flat"
                                  Stretch="Fill"
                                  StrokeEndLineCap="Flat"
                                  Stroke="{Binding Converter={StaticResource alarmIndicator}}"
                                  StrokeThickness="1"
                                  StrokeMiterLimit="10"
                                  StrokeLineJoin="Miter"
                                  Fill="#7F000000"/>
                            <!-- Title -->
                            <TextBlock HorizontalAlignment="Center"
                                       VerticalAlignment="Top"
                                       Margin="5"
                                       TextAlignment="Center"
                                       Foreground="White"
                                       FontSize="12"
                                       Width="36"
                                       TextWrapping="Wrap"
                                       Text="{Binding Path=Count}"/>
                        </Grid>
                    </DataTemplate>

And my Converter:
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value == null)
                return null;
            ClusterItem item = (value as ClusterItem);
            var items = item.Items; // this is not possible

........
return something;

        }

I can see and inspect the items while debugging and also i can reach that property through immediate window, but i cant get that property through coding.

How can i get child items properties? Any idea...

Thanks anyway.
Petar Mladenov
Telerik team
 answered on 08 Dec 2014
1 answer
113 views
    I created a custom class deriving from RadGridView and another from GridViewGroupPanel. My goal is to add new dependency properties which will allow me to update the GridViewGroupPanel styles and templates more easily, and in a manor which fits my needs. Even made sure to create default styles for

How can this be accomplished?
Keaire
Top achievements
Rank 1
 answered on 05 Dec 2014
3 answers
107 views
WPF feedback (http://feedback.telerik.com/Project/143) link there are always error, Please look screenshot.

https://mega.co.nz/#!lF8CHDKJ!Of1eAvJQ_wy1ijmP-_7NY4Gx0KUpRvOdatm5J-wDHes
Dimitrina
Telerik team
 answered on 05 Dec 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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?