Telerik Forums
UI for WPF Forum
7 answers
212 views
Hi. The problem is that when a tree item goes in edit mode and you click on another tree item, the edit mode goes away. But when you do so with any other control (E. G. a button), it stays. We want it to go away too, how can we achieve that?

Here's what I'm talking about.

Thanks.
Dinko | Tech Support Engineer
Telerik team
 answered on 17 Feb 2016
1 answer
288 views

Hi,

 

 I am using RadDropDownButton and RadDropDownContent has a grid with a message and RadGridView.  RadGridview has a single column which has data template that render checkboxes for the elements in list to which this column is bound to.  I get an additional space / extra column at the end of the radgridview.  When I try to remove this column by setting width of the only property to * or set columnwidth of radgridview to * as suggested in the forums,  the grid just keeps on flickering.  I seem to be missing something very simple.  Any help on removing this extra space is appreciated..

 

XAML -

 

<Window x:Class="MainWindow"
    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"
    Title="MainWindow" Height="350" Width="525">
    
    <telerik:RadDropDownButton DropDownIndicatorVisibility="Collapsed" 
                                               Height="25"
                                               Width="25"
                                               ToolTip="Configure Column Set"
                                               Padding="0"  
                                               HorizontalContentAlignment="Left" 
                                               Margin="0,0,6,0"
                                               IsOpen="{Binding IsDropDownContentOpen, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
                                               Command="{Binding ConfigureColumnSetCommand}">

       
        <telerik:RadDropDownButton.DropDownContent>

            <Grid Margin="10">

                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>

                <!-- Configure Column Set Text-->
                <TextBlock x:Name="txtConfigColumnSetMsg"
                                               Text="Select columns to be visible in grid" />


                <!-- Configure Column Set Grid -->
                <telerik:RadGridView x:Name="grdConfigureColumnSet"
                                                         ItemsSource="{Binding ColumnSet,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
                                                         Grid.Row="1"
                                                         ShowGroupPanel="False"
                                                         ShowInsertRow="False"
                                                         CanUserDeleteRows="False"
                                                         CanUserFreezeColumns="False"
                                                         RowIndicatorVisibility="Collapsed"
                                                         AutoGenerateColumns="False"
                                                         SelectionMode="Single"
                                                         AutomationProperties.AutomationId="grdConfigureColumnSet"
                                                         ScrollViewer.HorizontalScrollBarVisibility="Hidden"
                                                         ScrollViewer.IsDeferredScrollingEnabled="False"
                                                         ScrollViewer.CanContentScroll="False"
                                                         CanUserReorderColumns="False"
                                                         CanUserSortColumns="False"
                                                         CanUserSortGroups="False"
                                                         IsFilteringAllowed="False" >

                    <telerik:RadGridView.Columns>

                        <telerik:GridViewDataColumn  
                                                     IsReadOnly="True"
                                                     DataMemberBinding="{Binding IsSelected,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
                                                     Width="*">

                           
                            <telerik:GridViewDataColumn.CellTemplate>
                                <DataTemplate>
                                    <CheckBox IsChecked="{Binding IsSelected,Mode=TwoWay,UpdateSourceTrigger= PropertyChanged}"
                                                                  Content="{Binding Name}" />
                                </DataTemplate>
                            </telerik:GridViewDataColumn.CellTemplate>
                        </telerik:GridViewDataColumn>
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>

               
            </Grid>
        </telerik:RadDropDownButton.DropDownContent>

    </telerik:RadDropDownButton>
</Window>

 

Code behind -

 Class MainWindow

    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        Me.DataContext = New MyViewModel
    End Sub

End Class

Public Class MyViewModel

    Public Sub New()

        ColumnSet.Add(New ColumnItem With {.Name = "Col1", .IsSelected = False})


    End Sub

    Public Property ColumnSet As New List(Of ColumnItem)

End Class

Public Class ColumnItem

    Public Property Name As String

    Public Property IsSelected As Boolean

End Class

 

 

 

Regards,

Sreeni.

Stefan
Telerik team
 answered on 17 Feb 2016
2 answers
134 views

Hi,

I am using RadCartesianChart and I am having logarithmic axis, but as it is to expect I have a lot of space from 125 to 250 for instance and little space from 8000 to 10000. I am wondering if I can customize the intervals visually, like on a grid where you adjust the column width.

I attached a screenshot of how it looks like right now

 

Thanks!

Petar Marchev
Telerik team
 answered on 17 Feb 2016
2 answers
276 views

Hi telerik,

We are plotting ScatterlineSeries on a RadCartesianChart. Works well.

However, as we plot several series in same chart, our users request a tooltip with differents units. For example I got the TooltipTemplate following:

<DataTemplate x:Key="MomentTooltipTemplate">
    <Grid Height="56" Width="150" SnapsToDevicePixels="True">
        <Path Data="M0,0 L128.99968,3.4450557E-14 128.99968,36.850185 11,36.850185 8,40 5,36.850185 0,36.850185 z"
    Stretch="Fill"
    Fill="{Binding Presenter, Converter={StaticResource PaletteExtractorConverter}}"
    Stroke="White"
    StrokeThickness="1"
    SnapsToDevicePixels="True" HorizontalAlignment="Center" Width="150" />
        <Grid Margin="5,3,5,9" Height="45" SnapsToDevicePixels="True">
            <Grid.RowDefinitions>
                <RowDefinition Height="15" />
                <RowDefinition Height="15" />
                <RowDefinition Height="15" />
            </Grid.RowDefinitions>
            <TextBlock Text="{Binding DataItem.SeriesName}" Foreground="White" FontFamily="Segoe UI" FontSize="11" VerticalAlignment="Center" Margin="0" />
            <TextBlock Text="{Binding DataItem.Y, ConverterCulture=fr-FR, StringFormat=Load: \{0:N2\} kN.m}" Foreground="White" FontFamily="Segoe UI" FontSize="11" Margin="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" />
            <TextBlock Text="{Binding DataItem.X, StringFormat=Distance: \{0:N2\} m}" Foreground="White" FontFamily="Segoe UI" FontSize="11" Margin="0" VerticalAlignment="Center" Grid.Row="2" />
        </Grid>
    </Grid>
</DataTemplate>

 

and the second one : 

<DataTemplate x:Key="AnnotationTemplate" DataType="telerik:DataPoint">
                <Grid Height="56" Width="111" SnapsToDevicePixels="True">
                    <Path Data="M0,0 L110,0 110,36.850185 11,36.850185 8,40 5,36.850185 0,36.850185 z"
                Stretch="Fill"
                Fill="{Binding Presenter, Converter={StaticResource PaletteExtractorConverter}}"
                Stroke="White"
                StrokeThickness="1"
                SnapsToDevicePixels="True" />
                    <Grid Margin="4,2,5,10" Width="100" Height="45" SnapsToDevicePixels="True">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="15" />
                            <RowDefinition Height="15" />
                            <RowDefinition Height="15" />
                        </Grid.RowDefinitions>
                        <TextBlock Text="{Binding DataItem.SeriesName}" Foreground="White" FontFamily="Segoe UI" FontSize="11" VerticalAlignment="Center" Margin="0" />
                        <TextBlock Text="{Binding DataItem.Y, StringFormat=Load: \{0:N2\} kg}" Foreground="White" FontFamily="Segoe UI" FontSize="11" Margin="0" Grid.Row="1" VerticalAlignment="Center" />
                        <TextBlock Text="{Binding DataItem.X, StringFormat=Distance: \{0:N2\} m}" Foreground="White" FontFamily="Segoe UI" FontSize="11" Margin="0" VerticalAlignment="Center" Grid.Row="2" />
                    </Grid>
                </Grid>
            </DataTemplate>

 

x axes is the same for all series, but not y axes, for some series y-axe is kg and for some other it's kN.m. See attached files to see what I had and what i'd like.

Is it possible to do that with telerik or not ?

Thanks

 Regards

JC
Top achievements
Rank 1
 answered on 17 Feb 2016
1 answer
97 views

I have a LogarithmicAxis that has a minimum of 125 and maximum of 16000 but I need it to start at 0 and then go to 125,250... But as it is Logarithmic, if I put minimum to 0 I will have 0, 2,4...

How can I achieve this?

Petar Marchev
Telerik team
 answered on 17 Feb 2016
1 answer
138 views

Hi,

I am using a RadCartesianChart and for my Horizontal Axis I need to set the values manually, without a range, like this:

0; 125; 1000; 3000; 8000; 12000 and 16000

 How can I do that?

Ivan
Telerik team
 answered on 17 Feb 2016
17 answers
765 views
Hi,
I would like to set the header Template to

                        <DataTemplate>
                            <TextBlock Text="{Binding}" >
                                    <TextBlock.LayoutTransform>
                                        <RotateTransform Angle="-45" />
                                    </TextBlock.LayoutTransform>
                            </TextBlock>
                        </DataTemplate>

I haven't found any solution.

Regards,
Ladislav
Petya
Telerik team
 answered on 16 Feb 2016
1 answer
80 views
MyCurrent issues is  Creating DataForm for Every  200 Controls  .After Googling I understand that your RadDataForm will helped me  After i download the try one and It is Fantastic powerful specially for  Collection Base in grid environment. but  i need RadDataForm with RadEmageEditor  on the attached file scenario  , thanks for help.
Stefan
Telerik team
 answered on 16 Feb 2016
1 answer
163 views

Hi,

I use the RadDiagram to show a program flow. It works well, but I'd like to filter which content can and can't be pasted.
For example, certain custom shapes should only occur once in the flow.
Is there a way to disallow some items to be pasted?

Kind regards

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Feb 2016
1 answer
296 views

Hello, I am filling my spreadsheet programmatically.

I need the cell "name" to use it in a formula.. For example:

 

string formula = "=SUM(" + worksheet.Cells[row, column].GETNAME() + ";" + worksheet.Cells[row, column + 1].GETNAME() + ")";

 * This GETNAME method should return "A1", "B1", "C1", etc...

 

 And then, set the formula value to another cell: 

worksheet.Cells[row + 3, column].SetValue(formula);

 

 Is this the best way of doing this? Remember that the variables 'row' and 'column' are set before in a logic that I have to use. So it can change.

Deyan
Telerik team
 answered on 16 Feb 2016
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?