Telerik Forums
UI for WPF Forum
7 answers
220 views
How to make Drag-n-Drop of PropertyDefinition towards RadRichTextBox, for example ?

or

How to find PropertyDefinition under the mouse ?
Nick
Telerik team
 answered on 06 Jun 2014
1 answer
134 views
When I set DragDropExecutionMode="New" then IsDragPreviewEnabled="false", IsDragTooltipEnabled="false", IsDropPreviewLineEnabled = false DON'T WORK.

<telerik:RadTreeView  
            telerik:TreeViewSettings.DragDropExecutionMode="New" 
            IsDragDropEnabled="True"
            IsDragPreviewEnabled="False"
            IsDragTooltipEnabled="False"
            IsDropPreviewLineEnabled="False" >

<telerik:RadTreeView.Items>
<telerik:RadTreeViewItem Header="Category1"/>
<telerik:RadTreeViewItem Header="Category2"/>
<telerik:RadTreeViewItem Header="Category3"/>
<telerik:RadTreeViewItem Header="Category4"/>
<telerik:RadTreeViewItem Header="Category5"/>
</telerik:RadTreeView.Items>
</telerik:RadTreeView>
Petar Mladenov
Telerik team
 answered on 06 Jun 2014
1 answer
131 views
Hello.
I'm using this great example for exporting grid to xml: http://www.telerik.com/help/wpf/gridview-export.html.
Problem is that, I have ColumnGroups declared like:

  <telerik:RadGridView.ColumnGroups>
                    <telerik:GridViewColumnGroup Name="Numer">
                        <telerik:GridViewColumnGroup.Header>
                            <TextBlock Text="Numer" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" />
                        </telerik:GridViewColumnGroup.Header>
                    </telerik:GridViewColumnGroup>
(...)
  </telerik:RadGridView.ColumnGroups>

And using it with column:

                    <telerik:GridViewDataColumn Name="col5" DataMemberBinding="{Binding Nazwa dokumentu}" Header="Wewnętrzny" Tag="nazwa" ColumnGroupName="Numer">
                        <telerik:GridViewDataColumn.AggregateFunctions>
                            <telerik:CountFunction Caption="Liczba dokumentów: "></telerik:CountFunction>
                        </telerik:GridViewDataColumn.AggregateFunctions>
                    </telerik:GridViewDataColumn>

Well, it does export to xml, but with this little problem: http://puu.sh/9g0pQ/c92b2e57f8.png

How can I export content (text) of textblock instead of System.Windows.Controls.TextBlock ?
Dimitrina
Telerik team
 answered on 05 Jun 2014
1 answer
131 views
I want to count total numbers of group in the gridview.
So how is this possible?
can you help me?

I also added a image which I want.

Regards,
Bharat Mendapara
Yoan
Telerik team
 answered on 05 Jun 2014
1 answer
130 views
I want to count total numbers of group in the gridview.
So how is this possible?
can you help me?

I also added a image which I want.

Regards,
Bharat Mendapara
Yoan
Telerik team
 answered on 05 Jun 2014
2 answers
239 views
Hi,

I have a RadTreeListView in my application.
I have severals columns using CellEditTemplate.

When the size of the element in the CellEditTemplate gets bigger than the column's, the column is not resized.

For example : 
<telerik:GridViewDataColumn Header="{localization:Translate Key=PBODetailGrid_Perte, Default=PBODetailGrid_Perte}"
                                                    DataMemberBinding="{Binding Perte, Mode=TwoWay, Converter={StaticResource FormatAmountConverter},ConverterParameter='Perte'}"
                                                    TextAlignment="Right" 
                                                    IsFilterable="False"
                                                    UniqueName="lblPerteRTL"
                                                        MinWidth="60" >
                                <telerik:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <TextBox Text="{Binding Perte, 
                                                                        Mode=TwoWay,
                                                                    Converter={StaticResource FormatAmountNullConverter}}" HorizontalAlignment="Center"/>
                                    </DataTemplate>
                                </telerik:GridViewDataColumn.CellEditTemplate>

When the size of the TextBox is more important than the size of the column, the column is not resized.
Some columns in my RadTreeListView don't use DataTemplate, and their width resize normally.

Do you have an idea on how I can manage this issue ?

Thanks by advance :)
Patrice
Top achievements
Rank 1
 answered on 05 Jun 2014
2 answers
122 views
Hi,

Is it possible to programmatically change the default sorting for fields that are added through a RadPivotFieldList?  Currently added fields have default sorting of Ascending (A to Z), but I would like to have no sorting.

Thanks,
Edwin
Edwin
Top achievements
Rank 1
 answered on 05 Jun 2014
1 answer
387 views
Hello,
I need to disable the cell edit based on some properties of my viewmodel.... for standard GridViewDataColumn 

I've done
<telerik:GridViewDataColumn DataMemberBinding="{Binding MULTIPLIER_DA,Mode=TwoWay}" Header="Size da" UniqueName="MULTIPLIER_DA" IsEnabled="{Binding CanUserAdd, RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type Grid}}}"  >
                  <telerik:GridViewDataColumn.CellEditTemplate>
                      <DataTemplate>
                          <TextBox Text="{Binding MULTIPLIER_DA,Mode=TwoWay}" IsEnabled="{Binding DataContext.CanUserAdd, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"></TextBox>
                      </DataTemplate>
                  </telerik:GridViewDataColumn.CellEditTemplate>
              </telerik:GridViewDataColumn>

How do I do it for Combo and Numeric?
Thanks
Dimitrina
Telerik team
 answered on 05 Jun 2014
1 answer
85 views
Am new to this telerik controls and C#; am using the RadTreeListView - in one column am adding the UserControl which will some set of control also i need to take the values from the user control to main radtreelist view observableCollection

Could you please help how we need to do it.
Dimitrina
Telerik team
 answered on 05 Jun 2014
1 answer
155 views
hi,

I use radchart in my project, since i use NoXaml dll, my DataSeries no longer displayed.  I try to define the SerieStyle on the chart area and on the SplineAreaSeriesDefinition and PieSeries but it doesn't works.

In the OutPutWindow: i got a warning when i click on the legend : System.Windows.Data Warning: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Telerik.Windows.Controls.Charting.ChartLegend', AncestorLevel='1''. BindingExpression:Path=LegendItemMarkerShape; DataItem=null; target element is 'ChartLegendItem' (Name=''); target property is 'MarkerShape' (type 'MarkerShape')

This is the xaml code :

<telerik:RadChart telerik:StyleManager.Theme="Windows8" x:Name="radAreaChart" UseDefaultLayout="False" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" >
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="auto"></RowDefinition>
                                    <RowDefinition Height="*"></RowDefinition>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="auto"/>
 
                                </Grid.ColumnDefinitions>
                                <telerik:ChartTitle telerik:StyleManager.Theme="Windows8" x:Name="AreaChartTitle" HorizontalAlignment="Center" Content="{Binding Resource.ConnectionPerProfile}"
                                        Grid.Row="0" Grid.Column="1" Background="{x:Null}" FontFamily="Segoe UI Semibold" BorderThickness="0" OuterBorderBrush="{x:Null}" FontSize="13.333">
                                </telerik:ChartTitle>
                                <telerik:ChartArea telerik:StyleManager.Theme="Windows8"  Grid.Row="1" x:Name="AreaChart"    Margin="0"  LegendName="AreaChartLegend">
 
                                </telerik:ChartArea>
 
                                <telerik:ChartLegend telerik:StyleManager.Theme="Windows8" Grid.Row="1" x:Name="AreaChartLegend" Header="{Binding Resource.Legend}" Margin="-4,0" Grid.Column="1" />
                            </Grid>
                        </telerik:RadChart>



And this is my C# Code to add Series
AreaChart.DataSeries.Clear();
           AreaChart.AxisX.AutoRange = true;
           AreaChart.AxisY.AxisStyles.AlternateStripLineStyle = this.Resources["HorizontalStripLineStyle"] as Style;
           AreaChart.SeriesStyles.SplineAreaSeriesStyle = this.Resources["ScatterAreaSeriesStyle"] as Style;
           DataSeries chartProfilesSeries = new DataSeries();
                     
           chartProfilesSeries.Definition = new SplineAreaSeriesDefinition();
 
           chartProfilesSeries.Definition.SeriesStyle = this.Resources["ScatterAreaSeriesStyle"] as Style;
 
           if (null != (this.DataContext as MainViewModel).LstChartTotalDateConnexion)
           {
               foreach (ChartsDateConnectionDTO c in (this.DataContext as MainViewModel).LstChartTotalDateConnexion)
               {
                   chartProfilesSeries.Add(new DataPoint()
                   {
                       //Label = String.Format("{0} : {1} ", Strings.TotalOfconnection, c.Date.ToString("dd/MM")),
                       YValue = c.Connection,
                       XCategory = c.Date.ToString("dd/MM"),
                       Tooltip = String.Format("{0} du {1} ", Strings.TotalOfconnection, c.Date.ToString("dd/MM"))
                   });
               }
               chartProfilesSeries.Definition.SeriesName = String.Format("{0}", Strings.TotalOfconnection);
               chartProfilesSeries.LegendLabel = String.Format("{0}", Strings.TotalOfconnection);
               chartProfilesSeries.Definition.ShowItemToolTips = true;
               chartProfilesSeries.Definition.ShowItemLabels = true;
               chartProfilesSeries.Definition.InteractivitySettings.HoverScope = InteractivityScope.Series;
               chartProfilesSeries.Definition.InteractivitySettings.SelectionScope = InteractivityScope.Series;
 
 
               AreaChart.DataSeries.Add(chartProfilesSeries);

Thanks for you help

Best regards

Petar Marchev
Telerik team
 answered on 05 Jun 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
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?