Telerik Forums
UI for Universal Windows Platform Forum
5 answers
866 views

What is the easiest way to do this?

I tried to get a template copy, but without success. May be overwriting the ThemeResource?

 

Thank you!

Milenny
Top achievements
Rank 1
 answered on 09 May 2019
6 answers
50 views

<telerikInput:RadCalendar SelectedDateRange="{x:Bind DataRange,Mode=TwoWay}" DisplayMode="MonthView" SelectionMode="Multiple"/>

 

public sealed partial class MainPage : Page
    {

        private CalendarDateRange? dateRange = new CalendarDateRange(new DateTime(2019,3,1),new DateTime(2019,3,20));
        public CalendarDateRange? DataRange
        {
            get => dateRange;
            set
            {
                dateRange = value;
            }
        }
        public MainPage()
        {
            this.InitializeComponent();
        }
    }

 

My question is how to do the selection operation on this control that will change the DataRange property value correctly? For now, the startdate and enddate always are the same value when I do the selection on the control.

Yana
Telerik team
 answered on 24 Apr 2019
3 answers
845 views

In my RadDataGrid, I have to use a DataGridTemplateColumn because the Itemssource of my combobox is a collection that is a property of the object represented by the grid row. I've got it working except for the fact that the combo box is always editable. In other words, the box and dropdown arrow are always visible. 

In a regular combobox column on a RadDataGrid the combo box is not visible unless you double click on the column. Until you click, the column just displays the selected item. In my columns, the box and dropdown arrow are always visible, before and after you click in or out of the column.
How can I change this to the typical behavior? I want the user to have to click in the column before the box and dropdown arrow become visible. Before that, the column just display the selected item. Thanks for your help.

<tg:DataGridTemplateColumn  SizeMode="Auto">
        <tg:DataGridTemplateColumn.CellContentTemplate>
            <DataTemplate>
                <ComboBox Width="220"
                          ItemsSource="{Binding Path=ItemCategory.Items, Mode=OneWay}"
                          SelectedItem="{Binding Products, Mode=TwoWay}"
                          SelectedValue="{Binding Products.Id, Mode=OneWay}"
                          SelectedValuePath="Id"
                          DisplayMemberPath="ItemName">
                </ComboBox>
        </DataTemplate>
        </tg:DataGridTemplateColumn.CellContentTemplate>
        <tg:DataGridTemplateColumn.Header>
            <TextBlock.Text = "Item Category"/>
        </tg:DataGridTemplateColumn.Header>
    </tg:DataGridTemplateColumn>

Lance | Manager Technical Support
Telerik team
 answered on 16 Apr 2019
3 answers
124 views

I discovered some strange behavior in the RadNumericBox control. Values in the control are being changed while simply scrolling through a list.

I have created a minimal repro of the issue at the following repository:

https://github.com/EddieLotter/RadNumericBox.Anomaly

Please have a look and see if it is something I am doing incorrectly or if there is a problem with the control.

Thanks.

Yana
Telerik team
 answered on 10 Apr 2019
2 answers
49 views
I have placed a pivot of 2 tabs .. I would like to know how to center the titles of the pivot header considering that the content of each item should stretch across the entire screen.
Lance | Manager Technical Support
Telerik team
 answered on 09 Apr 2019
2 answers
99 views

I draw solid lines

I want dotted lines

my code from control is 

 

telerik:RadCartesianChart Name="rccFloor" PaletteName="DefaultLight">
                    <telerik:RadCartesianChart.HorizontalAxis>
                        <telerik:DateTimeContinuousAxis LabelFitMode="Rotate" LabelFormat="{}{0:dd MMM}" >
                        </telerik:DateTimeContinuousAxis>
                    </telerik:RadCartesianChart.HorizontalAxis>
                    <telerik:RadCartesianChart.VerticalAxis>
                        <telerik:LinearAxis/>
                    </telerik:RadCartesianChart.VerticalAxis>
                    <telerik:RadCartesianChart.Behaviors>
                        <telerik:ChartTrackBallBehavior  InfoMode="Multiple"/>
                    </telerik:RadCartesianChart.Behaviors>
                    <telerik:RadCartesianChart.Annotations>
                        <telerik:CartesianGridLineAnnotation Name="rglaFloor"
            Axis="{Binding ElementName=rccFloor, Path=VerticalAxis}" 
            Value="154" Stroke="LightGreen"  StrokeThickness="3"/>
                    </telerik:RadCartesianChart.Annotations>
                </telerik:RadCartesianChart>

 

and i add line in my graph with this code

LineSeries lineSeries = new LineSeries();
            lineSeries.Name = "grafico" + year.ToString();
            lineSeries.LegendTitle = year.ToString();
            lineSeries.ItemsSource = historyList;
            lineSeries.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "Date" };
            lineSeries.ValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Simulado" };
            lineSeries.DisplayName = year.ToString();

 

this.rccFloor.Series.Add(lineSeries);

 

how draw line dotted with that code ??

Thangs

 

 

 

 

 

peter
Top achievements
Rank 1
 answered on 09 Apr 2019
9 answers
705 views
Greetings, I would like to know how to remove margin of space between each element that I show through a RadListView, since it has a lot of margin between each item that I do not need .. I have tested with properties such as Margin or Padding but it is still the same. .. any ideas? thank you..
Milenny
Top achievements
Rank 1
 answered on 08 Apr 2019
6 answers
102 views

This one is easy to setup when using the 'Windows Template Studio (Universal Windows)' project type. Make use to check 'Telerik Data Grid' of coarse.

Alter the SampleOrder class to be an Observable class of itself:

public class SampleOrder : ObservableCollection<SampleOrder>

Then in the TelerikDataGridPage.xaml edit to add a bound column:

                    <tg:DataGridTemplateColumn Header="Status">
                        <tg:DataGridTemplateColumn.CellContentTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding Status}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                            </DataTemplate>
                        </tg:DataGridTemplateColumn.CellContentTemplate>
                    </tg:DataGridTemplateColumn>

Now run and this will generate a StackOverflowException. Obviously the issue is with the bound class being a list of itself. I have my own custom class that behaves like this and I need to bind it the RadDataGrid please help.

Using just the plain PropertyName 'binding' everything is ok. However, I need to be able to control text alignment, use converters, ...

                    <tg:DataGridTextColumn PropertyName="Status" />     

Nasko
Telerik team
 answered on 04 Apr 2019
1 answer
62 views

I'm using a datagrid bound to an observablecollection. I'd like to add a cartesianchart, that mirrors the datagrid.

Any filtering applied to the datagrid should also be applied to the chart.

How do I do this?

Lance | Manager Technical Support
Telerik team
 answered on 01 Apr 2019
3 answers
63 views

Hi,

Is it possible to set the date to empty from the ui?

Lance | Manager Technical Support
Telerik team
 answered on 28 Mar 2019
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?