Telerik Forums
UI for WPF Forum
1 answer
188 views

Hello

I have DoughNutChart that is loading data from DataSource. My Requirement is Clicking on a Slice should show up the Slice DoughtNut Chart information in a DataGrid.

 

The following is my working doughnut chart.

<p<!-- Doughtnut Chart Legends --><br>
                <telerik:RadLegend x:Name="DoughnutChartLegend"<br>
   Items="{Binding LegendItems, ElementName=DoughnutChart}"<br>
                                   Foreground="{StaticResource WhiteBrush}"<br>
                                   VerticalAlignment="Center"                                   <br>
   Grid.Column="1"/><br>
<br>
                <telerik:RadPieChart x:Name="DoughnutChart" Palette="Windows8" Grid.Column="2" Foreground="{StaticResource WhiteBrush}" Width="300" HoverMode="FadeOtherItems"><br>
                    <telerik:DoughnutSeries InnerRadiusFactor="0.2" ItemsSource="{Binding PieDataList}" ValueBinding="Value" RadiusFactor="0.77"><br>
<br>
                        <telerik:DoughnutSeries.LabelDefinitions><br>
                            <telerik:ChartSeriesLabelDefinition Margin="-8,0,0,0" /><br>
                        </telerik:DoughnutSeries.LabelDefinitions><br>
<br>
                        <telerik:DoughnutSeries.LegendSettings><br>
                            <telerik:DataPointLegendSettings TitleBinding="Category" /><br>
                        </telerik:DoughnutSeries.LegendSettings><br>
<br>
                    </telerik:DoughnutSeries><br>
                </telerik:RadPieChart><br>
                <br>
            </Grid></p> <p></p>

 

 

 

 

Sia
Telerik team
 answered on 09 Apr 2018
2 answers
170 views

Hi..

I'm getting the following error onLoad() -

Any idea?  Help!  thx

 

Unable to cast object of type 'System.Windows.Automation.Peers.TextBoxAutomationPeer' to type 'System.Windows.Automation.Peers.SelectorItemAutomationPeer'.     at Telerik.Windows.Controls.RadComboBoxAutomationPeer.RaiseSelectionEvents(SelectionChangedEventArgs e)
   at Telerik.Windows.Controls.RadComboBox.SelectItemDelayedSelectionChanged(Object item)

Sia
Telerik team
 answered on 09 Apr 2018
4 answers
1.2K+ views

Hi,

I am not able to see Telerik RadGridView in my WPF application, I have added resource dictionary in App.xaml,

 

App.xaml
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Data.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

 

But still I am unable to see RadGridView. I added RabButton and RadComboBox and both of these are visible in the view. I am consuming 2016.1.1013.45 version of Telerik binaries.

The code in my WizardWindow.xaml is,

<Window x:Class="Bentley.CatalogService.DownloadManager.WizardWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:wizard="clr-namespace:Telerik.Windows.Controls.Wizard;assembly=Telerik.Windows.Controls.Navigation"
        WindowStartupLocation="CenterScreen"
        xmlns:controls="clr-namespace:DownloadManager.Controls"
        Background="Transparent"
        Title="Components Center Download Manager" Height="500" Width="900" MinHeight="500" MinWidth="900">
    <Grid>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="200"/>
                <ColumnDefinition Width="500"/>
                <ColumnDefinition Width="200"/>
            </Grid.ColumnDefinitions>
            <telerik:RadButton Content="Welcome to Download Manager" Grid.Column="0"/>
            <telerik:RadGridView x:Name="RadGridView1" Grid.Column="1"/>
            <telerik:RadComboBox Text="Select One Please" Grid.Column="2" />
        </Grid>
    </Grid>
</Window>

 

Any ideas?

 

Roman
Top achievements
Rank 2
 answered on 09 Apr 2018
2 answers
1.1K+ views

Have several type of data bound to RadGridView.ItemsSourceProperty, and target cell is in a Not ReadOnly column, how to make cell ReadOnly when DataItem is specified type?

The effect I want is make a column Editable except some cell with specified data type bound to that row, prevent these cell enter EditMode.

I have tried CellStyleSelector, but didn't find IsReadOnly DependencyProperty in GridViewCell.

Also tried using same Template in CellTemplateSelector for CellEditTemplateSelector, but these is no such CellEditStyleSelector, so the cell looks different when enter edit mode.

Thanks.

runer
Top achievements
Rank 1
 answered on 08 Apr 2018
3 answers
150 views
Hi,

Is it possible to Drag Files from a WPF application to the Windows Explorer? If so could you plese let me know on how to do it.

Thank you.
Stefan
Telerik team
 answered on 06 Apr 2018
3 answers
339 views

Using RadGridView in as a Hierarchical grid is it possible to bind the initial parent level and then load any other levels on demand as they are being opened by the user?  If so, does anyone have sample code on how to make this work?  I do not see much in the way of documentation for this in the RadGridView WPF documentation.

With some larger customer datasets our screen is slow at loading all of the data at one time.

Thanks...

Stefan
Telerik team
 answered on 06 Apr 2018
13 answers
284 views
Hello,

How can I achieve a FilterRow that looks like the one I've attached?

Greetings
Sia
Telerik team
 answered on 06 Apr 2018
1 answer
272 views

Hi:

   How can I Merge Multiple xaml files with different styles and retain their respective styles?

 And generate a directory automatically?

   

Tanya
Telerik team
 answered on 06 Apr 2018
1 answer
218 views

I had a xaml document Contains the following contents:

<t:TableRow>
        <t:TableCell ColumnSpan="1" PreferredWidth="Fixed,284.066680908203" RowSpan="1">
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="21" />
            <t:Span Text="the master Name: John" />
            <t:ReadOnlyRangeEnd AnnotationID="21" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="22" />
            <t:Span ForeColor="#FFFFFFFF" Text="c4c030c8-c0d1-4fa3-8d06-92e34ee25072" />
            <t:ReadOnlyRangeEnd AnnotationID="22" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="23" />
            <t:Span Text="Sign:" />
            <t:ReadOnlyRangeEnd AnnotationID="23" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="25" />
            <t:Span Text="IdNo:" />
            <t:ReadOnlyRangeEnd AnnotationID="25" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="26" />
            <t:Span Text="Date:" />
            <t:ReadOnlyRangeEnd AnnotationID="26" />
            <t:ReadOnlyRangeStart AnnotationID="27" />
            <t:Span  Text="     "  UnderlineDecoration="Line" />
            <t:ReadOnlyRangeEnd AnnotationID="27" />
            <t:ReadOnlyRangeStart AnnotationID="28" />
            <t:Span  Text="year" />
            <t:ReadOnlyRangeEnd AnnotationID="28" />
            <t:ReadOnlyRangeStart AnnotationID="29" />
            <t:Span  Text="     " UnderlineDecoration="Line" />
            <t:ReadOnlyRangeEnd AnnotationID="29" />
            <t:ReadOnlyRangeStart AnnotationID="30" />
            <t:Span   Text="month" />
            <t:ReadOnlyRangeEnd AnnotationID="30" />
            <t:ReadOnlyRangeStart AnnotationID="31" />
            <t:Span  Text="     " UnderlineDecoration="Line" />
            <t:ReadOnlyRangeEnd AnnotationID="31" />
            <t:ReadOnlyRangeStart AnnotationID="32" />
            <t:Span Text="day" />
            <t:ReadOnlyRangeEnd AnnotationID="32" />
          </t:Paragraph>
          <t:Paragraph />
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="33" />
            <t:Span Text="the slave  Name: slave" />
            <t:ReadOnlyRangeEnd AnnotationID="33" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="34" />
            <t:Span ForeColor="#FFFFFFFF" Text="076b7ada-a564-454a-9933-3ca6f856876f" />
            <t:ReadOnlyRangeEnd AnnotationID="34" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="35" />
            <t:Span Text="Sign:" />
            <t:ReadOnlyRangeEnd AnnotationID="35" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="37" />
            <t:Span Text="IdNo:" />
            <t:ReadOnlyRangeEnd AnnotationID="37" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="38" />
            <t:Span Text="Date:" />
            <t:ReadOnlyRangeEnd AnnotationID="38" />
            <t:ReadOnlyRangeStart AnnotationID="39" />
            <t:Span  Text="     " UnderlineDecoration="Line" />
            <t:ReadOnlyRangeEnd AnnotationID="39" />
            <t:ReadOnlyRangeStart AnnotationID="40" />
            <t:Span   Text="year" />
            <t:ReadOnlyRangeEnd AnnotationID="40" />
            <t:ReadOnlyRangeStart AnnotationID="41" />
            <t:Span  Text="     " UnderlineDecoration="Line" />
            <t:ReadOnlyRangeEnd AnnotationID="41" />
            <t:ReadOnlyRangeStart AnnotationID="42" />
            <t:Span  Text="month" />
            <t:ReadOnlyRangeEnd AnnotationID="42" />
            <t:ReadOnlyRangeStart AnnotationID="43" />
            <t:Span  Text="     " UnderlineDecoration="Line" />
            <t:ReadOnlyRangeEnd AnnotationID="43" />
            <t:ReadOnlyRangeStart AnnotationID="44" />
            <t:Span  Text="day" />
            <t:ReadOnlyRangeEnd AnnotationID="44" />
          </t:Paragraph>
        </t:TableCell>
        <t:TableCell ColumnSpan="1" PreferredWidth="Fixed,284.066680908203" RowSpan="1">
          <t:Paragraph StyleName="a">
            <t:Span Text="legal Name:" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:Span Text="Sign:" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:Span Text="IdNo:" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:Span Text="Date: " />
            <t:Span  Text="     " UnderlineDecoration="Line" />
            <t:Span  Text="year" />
            <t:Span  Text="  " UnderlineDecoration="Line" />
            <t:Span  Text="month" />
            <t:Span  Text="  " UnderlineDecoration="Line" />
            <t:Span  Text="day" />
          </t:Paragraph>
          <t:Paragraph FontSize="18.6666660308838" StyleName="a">
            <t:Paragraph.ParagraphSymbolPropertiesStyle>
              <s:SpanProperties FontSize="18.6666660308838" FontWeight="Bold" />
            </t:Paragraph.ParagraphSymbolPropertiesStyle>
          </t:Paragraph>
        </t:TableCell>
      </t:TableRow>
    </t:Table>

 

what i knew is the string "the master Name:" how can I get the next span with the text "c4c030c8-c0d1-4fa3-8d06-92e34ee25072" (the text is I want to get) 

 

 

Tanya
Telerik team
 answered on 06 Apr 2018
2 answers
169 views
I have a problem 
<telerik:VisualizationLayer x:Name="informationLayer" ItemsSource="{Binding MapItems}"
                                           ClusteringEnabled="True"
                                           ClusterItemTemplate="{StaticResource ClusterTemplate}"/>

 

when I re-create my item source like

MapItems = new ObservableCollection<MapItem>(list);

Clustering disappear


Martin
Telerik team
 answered on 06 Apr 2018
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?