Telerik Forums
UI for WPF Forum
3 answers
87 views

I'm getting something weird happen everytime I switch to Month View (picture attached).

All the appointments - it doesn't matter when they are scheduled - seem to appear over the date that they are scheduled for, rather than inside the actual calendar slot.  It doesn't seem to matter what time they are scheduled for.  If I add more appointments to the same day - they appear below one another (so that's working ok) - its just the first appointment appears over the actual date.

All the appointments seem to be display fine in Day View (Horizontal) and Week View (Vertical) view and also Timeline View - so I don't understand what I've done to make it happen like this - any thoughts on what to check?

Yana
Telerik team
 answered on 24 May 2016
1 answer
125 views

Hi,

I am using a RadRibbonWindow in my application. Setting the MinWidth and MinWidth does not stop the window to being resized to a very small size.

Is this a bug, or am i missing something here?

 

Thanks!

Dinko | Tech Support Engineer
Telerik team
 answered on 24 May 2016
2 answers
245 views

    Hello Telerik,

 

One thing I need to point is I use LinqToSQL, composing a IEnumerable<Something> placed inside a VirtualQueryableCollectionView and finally bound to the grid: ItemsSource="{Binding VirtualCollectionOfSomething}"

I am looking for a way to search in my gridview data using a TextBox outside of the grid, without having to go to the database a second time.

Is there a way I can trigger the built-in gridview filter event using the textbox input as a filter parameter to a specific column?

 

thank you!

Stefan
Telerik team
 answered on 23 May 2016
2 answers
309 views

Hey,

 

Is there baked-in functionality to serialize the visible columns and their ordering from the gridview? Nothing is immediately obvious but it seems like reasonably standard functionality. If not is there a recommended best practice to do this?

 

Cheers,

Tom

Thomas
Top achievements
Rank 1
 answered on 22 May 2016
2 answers
316 views

Hi,

I have created a user control with a RadDropDownButton with a DataGrid as DropDownContent inside. To close the popup I have implemented a trigger action with a dependency property (to reference the RadDropDownButton) which is invoked whenever the selection of the DataGrid is changed.

 

public class CloseOnSelectionChangedTrigger : TriggerAction<UIElement>
  {
    protected override void Invoke(object parameter)
    {
      ((RadDropDownButton)this.Target).IsOpen = false;
    }
 
    public UIElement Target
    {
      get
      {
        return (UIElement)this.GetValue((TargetProperty));
      }
      set
      {
        this.SetValue(TargetProperty, value);
      }
    }
 
    public static readonly DependencyProperty TargetProperty =
      DependencyProperty.Register("Target", typeof(UIElement), typeof(CloseOnSelectionChangedTrigger), new UIPropertyMetadata(null));
  }

 

Unfortunately, when I use this user control in my MainWindow more then once I get a compiler error (sample project attached):

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=RadDropDownButton1'. BindingExpression:(no path); DataItem=null; target element is 'CloseOnSelectionChangedTrigger' (HashCode=58874610); target property is 'Target' (type 'UIElement')

 

Telerik version: 2016_2_503

 

What I'm doing wrong?

 

Regards

Evgenia
Telerik team
 answered on 20 May 2016
1 answer
147 views

I am experiencing some problems making AccessKeys work the way I understand they should in a RadRibbonView.

I have a sample application to demonstrate the problem, but I do not know how to make it available.  When the application is running, pressing Ctrl+D should activate the click event of a RadRibbonButton.  Note that I configure the AccessKeys property in the initialized event of the button as follows:

private void RadRibbonButton_Initialized(object sender, EventArgs e)
{
    ((RadRibbonButton)sender).SetValue(KeyTipService.AccessKeysProperty, new Collection<KeyGesture>() { new KeyGesture(Key.D, ModifierKeys.Control) });
}

This is my xaml code for the ribbon:

<telerik:RadRibbonView Grid.Row="0" VerticalAlignment="Top" Grid.ColumnSpan="2" telerik:KeyTipService.IsKeyTipsEnabled="true">
            <telerik:RadRibbonTab Header="RibbonTab" telerik:KeyTipService.AccessText="R" >
                <telerik:RadRibbonGroup>
                    <telerik:RadRibbonButton telerik:KeyTipService.AccessText="H" telerik:KeyTipService.AccessKey="Ctrl+D" Click="RadRibbonButton_Click" Text="Test" Initialized="RadRibbonButton_Initialized" />
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
        </telerik:RadRibbonView>

What can I do to get this working?

Evgenia
Telerik team
 answered on 20 May 2016
1 answer
157 views

Hi,

We are using RadDocking with Caliburn Micro and view model first approach. Inside factory we create view models which are resolved by Caliburn Micro. Recently we found that we don't really know how to add AutomationId (or any other name to dynamically loaded views). Is there any proven way to solve this issue?

 

RadDocking is declared the following way:

<telerik:RadDocking x:Name="radDocking" AutomationProperties.AutomationId="radDockingId" DockingPanesFactory="{Binding PanelsFactory}" PanesSource="{Binding Panes}"

 

Have a nice day,

Best regards,

Maciek

Nasko
Telerik team
 answered on 20 May 2016
2 answers
492 views

Hello,

I want to know if is it possible to do that RadNumericUpDown accepts dot AND comma ?

I see this code on the web :

if (e.KeyChar.Equals('.') || e.KeyChar.Equals(','))
{
    e.KeyChar = ((System.Globalization.CultureInfo)System.Globalization.CultureInfo.CurrentCulture).NumberFormat.NumberDecimalSeparator.ToCharArray()[0];
}

With this code, i did it :
private void tbOpeSurValeur_KeyDown(object sender, KeyEventArgs e)
{
    if (e.Key == Key.Decimal || e.Key == Key.OemComma)
    {
        e.Key = (Key)((System.Globalization.CultureInfo)System.Globalization.CultureInfo.CurrentCulture).NumberFormat.NumberDecimalSeparator.ToCharArray()[0];
    }
}

But, 2 problems :
- This is not 'e.KeyChar' but 'e.Key'
- 'e.Key' is in ReadOnly, I can't change his value..

Can you help me ?
Thank you.

Valentin.

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 20 May 2016
9 answers
427 views
Hello everybody!
My radnumericcontrols have a strange behaviour . For example : if i insert the value 20, when the control lost focus, the value is set to 200%, wich isn't the correct value, at least the value I want. There is another issue here . What is the default decimal separator ?If I try to use the normal "comma", nothing happens . If I insert the value "10,23", the control doesn't accept my comma , so, instead of having the value "10.23", I get the value 1023 .

Any suggestions ?
Ivan Frias
Yana
Telerik team
 answered on 20 May 2016
1 answer
224 views
While exporting data from Telerik RadGridView in WPF.
How can I add some extra text on above the header? Like if I need to add the name of the company and list name.
Can anyone help me in this regard?
Dilyan Traykov
Telerik team
 answered on 20 May 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?