Telerik Forums
UI for WPF Forum
2 answers
113 views
I would like the TreeListView to display a vector image for each Item state instead of a graphics file (png/jpg) and use for example, this path as defined in the Xaml.

Is that possible?
<Window.Resources>
   <Path x:Key="MyVectorImage" 
              x:Shared="False"
              Stroke="DarkGoldenRod"
              StrokeThickness="3"
              Data="M 10,20 C 10,25 40,35 40,17 H 28"
              Stretch="Fill"
              Width="100"
              Height="40"/>
</Window.Resources>

OmegaMan
Top achievements
Rank 1
 answered on 06 Jul 2012
1 answer
115 views
Hi,

Is anyone else experiencing issues with the telerik docking floating window when using a Microsoft Touch Mouse?

For some reason, when I use the two finger gesture to expand a docking floating window the window disappears off of the screen. I am then unable to retrieve the window as it is nowhere to be seen or accessed.

http://www.microsoft.com/hardware/en-gb/p/touch-mouse#details

Thanks,

Rob
Yana
Telerik team
 answered on 06 Jul 2012
4 answers
286 views
I am trying to localize the column headers using the following code for each of the column in the parent and the child gridviews in a hierarchical view.

<telerik:GridViewColumn.Header>
            <TextBlock Text="JudgementCode" telerik:LocalizationManager.ResourceKey="JudgementCode"></TextBlock>
  </telerik:GridViewColumn.Header>

This works fine for the main grid, but when I expand a row to see its child gridview, the child table column headers are not localized.

Is there something different I need to be doing for hierarchical gridveiw.
asp.net
Top achievements
Rank 1
 answered on 06 Jul 2012
5 answers
405 views
Hi!

I've a Scheduler view, which has custom appointments.

I need to have some of these appointment that aren't drag&dropable, depending of a value of one resource of the appointment.

My question is:
On which property of the xaml(in the datatemplate?) can I bind a value which indicate if the current appointment is drag&dropable?
OR
Is there a event in which I enter when I try to do the drag&drop? Where I can cancel if I want the change?

Thank you
Yana
Telerik team
 answered on 06 Jul 2012
9 answers
207 views
Hello ,
I am trying to  bind my rad chart title to a string in view model.

 

 

<telerik:ChartDefaultView.ChartTitle>

 

 

<telerik:ChartTitle Content= "{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type views:PlotView}},Path=DataContext.ChartTitle}" HorizontalAlignment="Center"/>

 

 

</telerik:ChartDefaultView.ChartTitle>


But it is not getting binded niether i am getting any error.
Please help.....
Yavor
Telerik team
 answered on 06 Jul 2012
9 answers
418 views
I am using MVVM and would like to move the event handling out of the view. I am trying to handle the PageIndexChanged event of the RadDataPager by using a custom binding. The handler sets the ItemsSource of a RadGridView and the ItemCount of the pager (i.e. I am doing the paging myself). To set it up I use a style:

    <Window.Resources>
        <Style TargetType="{x:Type telerik:RadDataPager}"
               x:Key="indexChangedStyle">
            <Setter Property="local:PageIndexChangedBehavior.SetPageIndexChanged"
                    Value="True" />
        </Style>
    </Window.Resources>

        <telerik:RadDataPager x:Name="dataPager"
                              Grid.Row="1"
                              DisplayMode="All"
                              PageSize="10"
                              Style="{StaticResource indexChangedStyle}">

In the custom behavior I do this:
        public static readonly DependencyProperty SetPageIndexChangedProperty =
            DependencyProperty.RegisterAttached(
            "SetPageIndexChanged",
            typeof(bool),
            typeof(PageIndexChangedBehavior),
            new UIPropertyMetadata(true, OnSetPageIndexChanged));

        private static void OnSetPageIndexChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            RadDataPager pager = obj as RadDataPager;
            if (pager == null)
                return;

            if (e.NewValue is bool == false)
                return;

            if ((bool)e.NewValue)
                pager.PageIndexChanged += pager_PageIndexChanged;
            else
                pager.PageIndexChanged -= pager_PageIndexChanged;
        }

OnSetPageIndexChanged() never gets called. Will this methodology work? Is there a better way?

Thanks.

Andrea
Ivan Ivanov
Telerik team
 answered on 06 Jul 2012
2 answers
544 views
I'm having an issue getting a RadProgressBar to databind in a DataTemplate of a GridViewData Column. Here is my code:

<telerik:RadGridView Name="radGridView1"
                     Canvas.Left="48"
                     Canvas.Top="48"
                     telerik:StyleManager.Theme="Transparent"
                     ShowGroupPanel="False"
                     AutoGenerateColumns="False"
                     ItemsSource="{Binding}"
                     IsFilteringAllowed="False"
                     CanUserSelect="False"
                     RowIndicatorVisibility="Collapsed"
                     RowStyle="{DynamicResource GridViewRowStyle1}"
                     HeaderRowStyle="{DynamicResource GridViewHeaderRowStyle1}">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Width="300"
                                    DataMemberBinding="{Binding Path=TSE, Converter={StaticResource TSEconverter}}"
                                    Header="TSE"
                                    CellStyle="{StaticResource GridViewCellStyle1}"
                                    HeaderCellStyle="{StaticResource GridViewHeaderCellStyle1}" />
        <telerik:GridViewDataColumn Width="100"
                                    DataMemberBinding="{Binding Path=My_Count}"
                                    Header="Count"
                                    CellStyle="{StaticResource GridViewCellStyle1}"
                                    HeaderCellStyle="{StaticResource GridViewHeaderCellStyle1}"
                                    TextAlignment="Center"
                                    HeaderTextAlignment="Center" />
        <telerik:GridViewDataColumn Width="150"
                                    DataMemberBinding="{Binding Path=My_Percent_Double, Mode=OneWay}"
                                    Header="Status"
                                    CellStyle="{StaticResource GridViewCellStyle1}"
                                    HeaderCellStyle="{StaticResource GridViewHeaderCellStyle1}"
                                    TextAlignment="Center"
                                    HeaderTextAlignment="Center">
                <telerik:GridViewDataColumn.CellTemplate>
                    <DataTemplate>
                            <telerik:RadProgressBar Name="PercentBar"
                                                    Orientation="Horizontal"
                                                    Margin="0"
                                                    Height="24"
                                                    Style="{StaticResource statusBar}"
                                                    Value="{Binding Path=My_Percent_Double, Mode=OneWay}" />
                    </DataTemplate>
                </telerik:GridViewDataColumn.CellTemplate>
            </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn Width="100"
                                    DataMemberBinding="{Binding Path=My_Status}"
                                    Header="2pd"
                                    CellStyle="{StaticResource GridViewCellStyle1}"
                                    HeaderCellStyle="{StaticResource GridViewHeaderCellStyle1}"
                                    TextAlignment="Center"
                                    HeaderTextAlignment="Center" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

I can see the progress bar on project run, but no values are present (zero bars). What am I doing wrong?
Tingting
Top achievements
Rank 1
 answered on 06 Jul 2012
3 answers
151 views
Hello,

Is it possible to show collection items on the same grid instead of a separate custom editor ? I mean like this:

Name
Players
    [0] Player 1
             Player1 property1
             Player1 property 2
             ...
    [1] Player 2
             Player2 property1
             Player2 property 2
             ...
TeamColor
SomeOtherProperty

Dimitrina
Telerik team
 answered on 06 Jul 2012
1 answer
128 views
I posted this in TimePicker forum but that forum seems to get less attention so cross posting here.

It appears the default behavior when selecting a time is by mouse click only. Can I select via enter key?  
I have the following requirement:

- the time picker control shall enable selection of time by pressing Enter key

Before I start intercepting key press events etc., I just want to make sure there are not setter properties I could be unaware of which would enable this behavior. 


http://www.telerik.com/community/forums/wpf/timepicker/directional-navigation-selection.aspx#2170625 

Ivo
Telerik team
 answered on 06 Jul 2012
1 answer
194 views
hi ...

I wish to know if it is possible to view the rad dataform in new item mode when i click on a button which is not the one on the form.
I am not using the command buttons on the raddataform.

I really need a quick solution to do this.

Regards,
Shaimaa
Philippe
Top achievements
Rank 1
 answered on 06 Jul 2012
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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?