Telerik Forums
UI for WPF Forum
0 answers
76 views

Hello,

Is it possible to show just the recurrence dialog, without creating any scheduleview objects as well as bypassing the appointment dialog?

There is this: RadScheduleViewCommands.EditRecurrenceRule.Execute(null, scheduleview);

But i guess it requires the scheduleview object anyway?

I'd rather have something similar, but be able to pass an Appointment or RecurrenceRule objects directly.

M L
Top achievements
Rank 1
 asked on 28 Sep 2016
3 answers
115 views

Hi,  

  1.  I have Button in InlineUIContainer. After exporting with XamlFormatProvider I lose Button.Click. Can I have this to do something?
  2. Can I save CaretPosition after export? 
Vladimir
Top achievements
Rank 1
 answered on 28 Sep 2016
3 answers
365 views

Hello,

I am trying to implement a RadDataForm using a DatFormComboBoxField. Following this section of documentation: http://docs.telerik.com/devtools/wpf/controls/raddataform/how-to/raddatafor-edit-lookup-values-with-radcombobox

I have been unable to produce results. 

I stumbled across the ability to use an enum within a class to allow all of the enum's values to be combo box items. Sadly, as our combobox options will be changing based on our database, this won't be an effective solution. Are there any similar methods to add options to a combo box (dictionary, json object, etc)?

This has been a struggle for a few days now, any help is greatly appreciated...

Dilyan Traykov
Telerik team
 answered on 28 Sep 2016
6 answers
781 views
Hi, could you give me some assistance in how I can restyle the column header. I have the following code, however I am still getting a border around the columns and there is still a blank area to the left of the columns, basically I just want the columns to show with a header of #ffd4e4a5 with no borders;

<UserControl x:Class="GridUserControl"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             >
    <UserControl.Resources>
        <Style x:Key="GridViewHeaderRowStyle1" TargetType="{x:Type telerik:GridViewHeaderCell}">
            <Setter Property="Background"
                    Value="#FFD4E4A5" />
            <Setter Property="Foreground" Value="DarkGreen" />
            <Setter Property="BorderBrush"
                    Value="#FFD4E4A5" />
            <Setter Property="BorderThickness"
                    Value="0" />
        </Style>
        <Style x:Key="GridViewHeaderRowStyle2"
               TargetType="{x:Type telerik:GridViewHeaderRow}">
            <Setter Property="Background"
                    Value="#FFD4E4A5" />
            <Setter Property="Foreground"
                    Value="DarkGreen" />
            <Setter Property="BorderBrush"
                    Value="#FFD4E4A5" />
            <Setter Property="BorderThickness"
                    Value="0" />
        </Style>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot"
          HorizontalAlignment="Stretch"
          VerticalAlignment="Stretch">
        <telerik:RadGridView HorizontalAlignment="Stretch"
                             VerticalAlignment="Stretch"
                             GroupPanelBackground="#FFD4E4A5"
                             ColumnBackground="#FFD4E4A5"
                             HeaderRowStyle="{DynamicResource GridViewHeaderRowStyle2}"
                              
                             >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Date sent"
                                            HeaderCellStyle="{DynamicResource GridViewHeaderRowStyle1}"  />
                <telerik:GridViewDataColumn Header="Customer"
                                            HeaderCellStyle="{DynamicResource GridViewHeaderRowStyle1}" />
                <telerik:GridViewDataColumn Header="Invoice Number"
                                            HeaderCellStyle="{DynamicResource GridViewHeaderRowStyle1}" />
                <telerik:GridViewDataColumn Header="Description"
                                            HeaderCellStyle="{DynamicResource GridViewHeaderRowStyle1}" />
                <telerik:GridViewDataColumn Header="Amount"
                                            HeaderCellStyle="{DynamicResource GridViewHeaderRowStyle1}" />
                <telerik:GridViewDataColumn Header="Status"
                                            HeaderCellStyle="{DynamicResource GridViewHeaderRowStyle1}" />
                <telerik:GridViewDataColumn Header="Action"
                                            HeaderCellStyle="{DynamicResource GridViewHeaderRowStyle1}" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</UserControl>
Stefan
Telerik team
 answered on 28 Sep 2016
5 answers
87 views

I want to change the position  of two rows 

the itemsource is binding to Columns,   item is currentItem,

the code :

int index = Columns.IndexOf(item) - 1;

Columns.Remove(item);
Columns.Insert(index, item);

 

now  i must reset the source  and the UI refresh

Columns = Columns.ToList().OrderBy(t => t.column_order) as ObservableCollection<Column>

 

Is any way  tochange the position by not refresh ui?

Dilyan Traykov
Telerik team
 answered on 28 Sep 2016
1 answer
110 views

Is there a way to customize how selection works in the RadRichTextBox. We have an application where we would like to restrict certain AnnotationRanges from being selected. I am aware of the IsCopyable property on annotation ranges, but I am specifically looking for the ability to restrict selection as opposed to restricting copying. 

In addition to this, we make use of tables and when selecting the contents of a cell we would like to be able to restrict the selection to the cell contents and not allow the cell itself, the table row, or the table to be selected.

Is there any functionality that allows us to override this behaviour or see what selection is about to be made and change it before it is made?

Thanks.

Todor
Telerik team
 answered on 28 Sep 2016
1 answer
127 views

Hi there,

i'm using the IWorkbookFormatProvider to open an XLSX, modify some values and save it under another name. Works fine.

Is it also possible to open an XLTX (Excel Template) File with the IWorkbookFormatProvider? That would be the much nicer solution than opening a XLSX and save it under another name. If i just change the source of for the FormatProvider to an .xltx an error is thrown.

Thanx for your help.

Mike

Nikolay Demirev
Telerik team
 answered on 28 Sep 2016
4 answers
309 views

Hello. I'd like to change Y-axis scale for RadCartesianChart with BarSeries. I do the following for it: 1) Define the property that is binding data source.

/// <summary>
/// Step (selected by a user) for vertical axis.
/// </summary>
private double _currentStep;
 
/// <summary>
/// Gets or sets the step (selected by a user) for vertical axis.
/// </summary>
private double CurrentStep
{
   get { return this._currentStep; }
   set { this.SetProperty(ref this._currentStep, value); }
}

2) Use the property in binding in XAML (here I don't display all XAML but if you need I'll do it):

<telerik:RadCartesianChart.VerticalAxis>
   <telerik:LinearAxis x:Name="verticalAxis" Title="Percents [%]" Minimum="{Binding ChartMinimum}" Maximum="{Binding ChartMaximum}" MajorStep="{Binding CurrentStep}"/>
</telerik:RadCartesianChart.VerticalAxis>

As you can see I also set Minimum and Maximum properties here.

3) I assign MajorStep, Minimum and Maximum properties by the values I've got from modal dialog:

private void raiseScalingMinMaxInputWindow()
{
   InputScalingValuesNotification inputScalingValuesNotification = new InputScalingValuesNotification();
   inputScalingValuesNotification.Title = "Set the scale";
            this.InputScalingValuesConfirmationRequest.Raise(inputScalingValuesNotification,
       returned =>
       {
          if (returned != null && returned.Confirmed)
          {
             this.ChartMinimum = (double)returned.MinimalScalingValue;
             this.ChartMaximum = (double)returned.MaximalScalingValue;
             this.CurrentStep = (double)returned.MajorStepValue;
          }
       });
}

I've checked in debugger so values are assigned correctly. Eventually, LinearAxis.Minimum and LinearAxis.Maximum properties are set correctly but LinearAxis.MajorStep is not set. If you open Scale.PNG file attached you can see the example of it. There I set LinearAxis.Minimum == 1, LinearAxis.Maximum == 12 and LinearAxis.MajorStep == 1. But the value of LinearAxis.MajorStep there is equal to 2. Why does it have place? And the second, why do not all fit in the scale window? So I need that the MajorStep must match the specified value (for example 1 in our case) and all Y-axis scale fits to the window size and not to go outside the window.

May be I do something wrong? May be I should use LinearAxis.ActualRange property instead of LinearAxis.Minimum and LinearAxis.Maximum properties? Please tell me and help me. As always, I will be very grateful to you.

Dmitry
Top achievements
Rank 1
 answered on 28 Sep 2016
7 answers
1.0K+ views
Hi,

I have a RadGridView with CanUserSelect="True". I define my columns manually using nested GridViewDataColumn. Each column is bound to some property of some object. The properties only have a 'get' method. When i run my app, I cannot select the content of the cells (for copy operation). I noticed that if i change the properties of the underlying objects and add an empty setter, I get to edit.

How can I do the same things without having to change my properties? I want to be able to have readonly data that I CAN select. Is there a way to tell the columns or the whole  grid that they should be selectable? (I thought btw that 'CanUserSelect' should take care of that?)

brgds
Frederic
NA
Top achievements
Rank 1
 answered on 28 Sep 2016
10 answers
168 views

Hi,

I would simplify XAML code in my view, can I move ControPanelItems tag and its content into style?

I tryed but I don't understand if it's possible or not.

Dario Concilio
Top achievements
Rank 2
 answered on 27 Sep 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?