Telerik Forums
UI for WPF Forum
3 answers
149 views

Hi Telerik,

I am trying to figure out if there is a way to make the timeline view display as a calendar.  See the attached for what I'm wanting to do.

The main difference between this and the regular month view is that I want the events to be positioned on the calendar horizontally such that their position indicates their start and stop time.

How would I go about doing this?  Can you please post an example?

 

Thank you so much for your help.

Yana
Telerik team
 answered on 22 Mar 2016
1 answer
270 views

I tried to move my Grid Columns Content to a separate ResourceDictionary and it works for the first part  the "GridViewDataColumn" not perfectly i expect

but

a) not for the GridViewCheckBoxColumn , do you have a suggestion how to do this ?

b) and 2nd i used the common "TextBox" for the GridViewDataColumn (child control) but which Control should i use if i want the Telerik Standard Control  which is normaly used in the GridView ? if i add

    <t:GridViewDataColumn Header="VALID" ...

    it want work , vs designer tell me that it could not found it

 

thanks br

 

<telerik:GridViewDataColumn Header="XNAME" CellEditTemplate="{StaticResource ClaimListNameDataTemplate}" CellTemplate="{StaticResource ClaimListNameDataTemplate}"/>

<telerik:GridViewCheckBoxColumn Header="VALID" DataMemberBinding="{Binding IsValidYn, Mode=TwoWay}"  AutoSelectOnEdit="True" EditTriggers="CellClick" Width="75*"
                                                CellTemplate="{StaticResource ClaimListValidDataTemplate}" CellEditTemplate="{StaticResource ClaimListValidDataTemplate}"
                                                >
                    <telerik:GridViewCheckBoxColumn.CellStyle >
                        <Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource CenterCheckBoxColumnCellStyle}">
                            <Setter Property="HorizontalContentAlignment" Value="Center" />
                        </Style>
                    </telerik:GridViewCheckBoxColumn.CellStyle>
</telerik:GridViewCheckBoxColumn>

 

IN RESOURCEDIRECTORY

 

 
<ResourceDictionary x:Class="Application.Views.ClaimListResourceDictionary"
                    xmlns:local="clr-namespace:Application.Views"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:t="http://schemas.telerik.com/2008/xaml/presentation"
                    xmlns:tg="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
                    >
    <DataTemplate x:Key="ClaimListNameDataTemplate" DataType="{x:Type local:ClaimList}">
        <StackPanel Orientation="Vertical" Background="Brown">
            <Image Height="50" Width="50" HorizontalAlignment="Center" Source="/GapJunctionApplication;component/Images/Refresh2.png"/>
            <TextBox HorizontalAlignment="Stretch" BorderThickness="0" SelectionBrush="Green" BorderBrush="Black" Text="{Binding name_nam, Mode=TwoWay}" TextAlignment="Right"/>
            
        </StackPanel>
    </DataTemplate>

    <DataTemplate x:Key="ClaimListValidDataTemplate" DataType="{x:Type local:ClaimList}">
        ???
    </DataTemplate>

</ResourceDictionary>

 

 

 

 

Stefan
Telerik team
 answered on 22 Mar 2016
1 answer
243 views

Hi Telerik,

I have some hiarchial data and I want to allow the user to pick an item from it when editing a gridview cell.  How do I do that?

I basically want to do this:

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/grid-with-treeview-and-combobox-editors

but with WPF.

Thanks a ton,

 

Stefan
Telerik team
 answered on 22 Mar 2016
2 answers
169 views

Hi,

I try to create a document (with the rich text editor UI, not by code) that contains a table of content which shows the heading numbers like in the attached sample from MS Word.

I'm using release 2015.1.401.40 of the WPF controls.

 

Thank you.

Boby
Telerik team
 answered on 22 Mar 2016
4 answers
113 views

If the user changes the input box to an invalid date and then loses focus, the input box is cleared.  However, the bound data still has the original valid date.

I need the input box to reflect the data it is bound to.

Kalin
Telerik team
 answered on 22 Mar 2016
3 answers
164 views

My chart having step line series along with data point highlighting based on conditions.I would like stretch height and width of point template to occupy all the space.I am facing issue With the rectangle fixed size height and width , it is not aligning properly during zooming.Please see attached..

1.I need to auto adjust or stretch height and width of point template to along with particular line height and width. 

2.How can i access relative parent point template ?

 

 

 

Sivakumar
Top achievements
Rank 1
 answered on 22 Mar 2016
2 answers
94 views

I use DragAndDrop behavior on gridview  to realize change two rows position , when the rows is many, the scrollview show, it is inconvenient  to  drag a row to top or bottom.

 is any method to let the scrollviewer scroll when drag a row out of the top or bottom?

thanks!

rui
Top achievements
Rank 1
 answered on 22 Mar 2016
1 answer
371 views

Hello,

There easy/fast way to develop Prompt window with combobox and disabled Accept button until there is selected value in combo? Need returned OK/cancel and selected value. Is that  possible? something like:

DialogResult dialog_result;
ComboboxDialog cbd = new ComboboxDialog();
dialog_result=  cbd.ShowDialog();
 
if (dialog_result == DialogResult.Ok)
{
    cbd.SelectedValue...
}

 

Thanks! 

Yana
Telerik team
 answered on 21 Mar 2016
2 answers
196 views

Hello Telerik,

 

I wanted to implement a column chooser for a grid. Then I followed this doc here

http://docs.telerik.com/devtools/wpf/controls/radgridview/features/overview-controlpanel

and found out that I basically just need to add this piece of code inside my grid to achieve the desired feature.

<telerik:RadGridView.ControlPanelItems>
    <telerik:ControlPanelItem ButtonTooltip="Column chooser">
        <telerik:ControlPanelItem.Content>
            <ListBox ItemsSource="{Binding Columns}" BorderThickness="0">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <CheckBox Content="{Binding Header, Mode=OneWay}" IsChecked="{Binding IsVisible, Mode=TwoWay}" />
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </telerik:ControlPanelItem.Content>
    </telerik:ControlPanelItem>
</telerik:RadGridView.ControlPanelItems>

 

 

 
Now my question is:
Is there a way I can reuse this block of code in several grids? Such as via usercontrols?

I just want to keep my code clean.
please show me the way.
Thank you!

Vitor
Top achievements
Rank 1
 answered on 21 Mar 2016
1 answer
824 views

I have learned that RadGridView has data validation feature per cell and row. But in my case, I want data validation on GridView level. In my app, I have "Purchase Order Form". In this form, there is RadGridView for Purchase Order Items. The validation scenario is User must add at least one item to this RadGridView.

I use the way of Data Annotation and Validation Attribute in my ViewModel to check this validation.

[CollectionHasElements( ErrorMessage = "Purchase order must have at least one order item." )]
        public ObservableCollection<PurchaseOrderItemDecorator> PurchaseOrderItemDecorators
        {
            get { return _purchaseOrderItemDecorator; }
            set { SetProperty( ref _purchaseOrderItemDecorator, value ); }
        }

The RadGridView successfully notify the error by showing Red Border around the grid. But it somehow failed to show the error message. I attached the screenshot of this RadGridView.

In normal telerik wpf controls, it usually shows the error message on top right corner red block triangle. I wish my Gridview act like that for showing validation error message.

Thanks.

Stefan
Telerik team
 answered on 21 Mar 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?