Telerik Forums
UI for WPF Forum
8 answers
445 views
Hello!

I have problems with RadMaskedCurrencyInput.
My culture is "ru-RU" and CurrencyDecimalSeparator is ','.

<telerik:RadMaskedCurrencyInput Value="12345" Placeholder=" " IsCurrencySymbolVisible="False">

The result is: 123 45.,00.

Control version is 2013.2.724.40.

I want to use '.' as decimal separator in spite of current culture and user settings. 
How can I do it?

Thanks is advance!
Sergey
Top achievements
Rank 1
 answered on 20 Oct 2013
3 answers
108 views
Hi,
I'm Interest for the AutoCompleteBox  Control but i have this issue:

Ihave this CustomFilteringBehavior:

public class CustomFilteringBehavior : FilteringBehavior
    {
        public override System.Collections.Generic.IEnumerable<object> FindMatchingItems(string searchText, System.Collections.IList items, System.Collections.Generic.IEnumerable<object> escapedItems, string textSearchPath, TextSearchMode textSearchMode)
        {
            var searchTextToUpper = searchText.ToUpper();
            var matchingItems = items.OfType<Person>().
                Where(x => x.FirstName.ToUpper().Contains(searchTextToUpper) || x.LastName.ToUpper().Contains(searchTextToUpper)
                || (x.FirstName + " " + x.LastName).ToUpper().Contains(searchTextToUpper));
 
            return matchingItems.Where(x => !escapedItems.Contains(x));
        }
    }

and in my main page i used this CustomFilteringBeahvior:

<UserControl.Resources>
         
        <local:ViewModel x:Key="ViewModel" />
        <local:CustomFilteringBehavior x:Key="CustomFilteringBehavior" />
         
        <DataTemplate x:Key="CustomItemTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding FirstName}" />
                <TextBlock Text=" " />
                <TextBlock Text="{Binding LastName}" />
            </StackPanel>
        </DataTemplate>
         
    </UserControl.Resources>
 
    <Grid x:Name="LayoutRoot" Background="White" DataContext="{StaticResource ViewModel}">
        <StackPanel>
            <telerik:RadAutoCompleteBox ItemsSource="{Binding People}"
                                        FilteringBehavior="{StaticResource CustomFilteringBehavior}"
                                        DropDownItemTemplate="{StaticResource CustomItemTemplate}"
                                        BoxesItemTemplate="{StaticResource CustomItemTemplate}"
                                        SelectionMode="Single"
                                        AutoCompleteMode="Suggest" />
        </StackPanel>
    </Grid>

when typing :


in SelectionMode="Multiple" all works fine but
in SelectionMode="Single" the result after selection is :


is there any idea for this behavior ?

Thank you in advance,
Toumir
Top achievements
Rank 1
 answered on 20 Oct 2013
20 answers
2.8K+ views
Hello,

I downloaded the trial version of RadControls for Silverlight and I'm having problems loading the assemblies. I extracted the downloaded contents to My Documents and added a reference to the DLLs, and got this error:

Could not load file or assembly 'Telerik.Windows.Controls.Navigation, Version=2008.2.826.0, Culture=neutral, PublicKeyToken=9c7324f9b8e4111a' or one of its dependencies. The system cannot find the file specified.

I tried copying the DLLs to my bin directory and resetting the references but still got the same error. Does anyone know what could be the cause of this problem?

Thanks,

Daniel
Lane
Top achievements
Rank 2
 answered on 18 Oct 2013
1 answer
108 views
I have a single RadListBox and I just want to enable drag re-ordering with no drop capabilities (the documentation is this area is horribly unclear).

I have the following XAML:

<tel:RadListBox ItemsSource="{Binding Path=DtedDirectories}"
                SelectedValue="{Binding Path=SelectedDtedDirectory}"
                SelectionMode="Single">
    <tel:RadListBox.ItemContainerStyle>
        <Style TargetType="tel:RadListBoxItem">
            <Setter Property="tel:DragDropManager.AllowCapturedDrag" Value="True" />
        </Style>
    </tel:RadListBox.ItemContainerStyle>
    <tel:RadListBox.DragDropBehavior>
        <tel:ListBoxDragDropBehavior AllowReorder="True" />
    </tel:RadListBox.DragDropBehavior>
</tel:RadListBox>

The problem I have is that the list box will let me drop items outside of it, thus removing the item from the list.  I do not want this behavior.
Rosen Vladimirov
Telerik team
 answered on 18 Oct 2013
1 answer
97 views
I may be going about this the wrong way, but here's what I am doing. I have a polygon (or whatever). I want to click a vertex point, drag it, and have the polygon updated. I do this by creating a MapPinPoint for each vertex. In the MouseLeftButtonDown event for this point, I set the MouseDragMode to None. In the Map_MouseLeftButtonUp event, I set the MouseDragMode back to Drag. The problem is when I do this, the map sometimes does a pan operation based on where I originally clicked down and where I lifted up. How can I prevent this, or is there a better way to do it?
Andrey
Telerik team
 answered on 18 Oct 2013
2 answers
218 views

I've just switched to telerik and are replacing my elements.

My problem is that the normal expander works and the telerik doesnt..  I've placed them next to each other in the code, to validate this.

 

<Expander IsExpanded="{Binding Path=IsExpanded}"></Expander> 
 
<Telerik:RadExpander IsExpanded="{Binding Path=IsExpanded}" ></Telerik:RadExpander> 
 

Bound to

private bool _isExpanded = true;  
public bool IsExpanded  
{  
   get { return _isExpanded; }  
   set 
   {  
       _isExpanded = value;  
       //Some code  
   }  

Is this the wrong way to do it?

- Martin

Steve
Top achievements
Rank 1
 answered on 18 Oct 2013
5 answers
499 views
I'm adding shapes and connections manually in code behind to my RadDiagram. I'd like RadDiagram to layout shapes and fit it after adding last item, so i call RadDiagram.Layout(); and RadDiagram.AutoFit(); but that does not work. Why?

private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            var shapes = new List<RadDiagramShape>();
 
            for (int i = 0; i <= 15; i++)
            {
                var shape = new RadDiagramShape();
                shapes.Add(shape);
 
                if (i == 0)
                {
                    _mainShape = shapes[0];
                }
 
                if (i > 0)
                {
                    var conn = new RadDiagramConnection {Source = _mainShape, Target = shape, SourceCapType = CapType.Arrow1};
                    RadDiagram.Items.Add(conn);                   
                }
            }
 
            RadDiagram.Items.AddRange(shapes);
 
            RadDiagram.Layout();
            RadDiagram.AutoFit();
        }
Petar Mladenov
Telerik team
 answered on 18 Oct 2013
2 answers
122 views
Hi,
I'm using the newly released version (2013.3.1016.40) of RadMaskedTextInput control.
The control has a strange behavior when inserting space.

<telerik:RadMaskedTextInput Culture="" Mask="" MinWidth="300" Margin="10,10,10,10"
    HorizontalContentAlignment="Right"
    UpdateValueEvent="LostFocus" TextMode="PlainText" InputBehavior="Insert" />

1. Type 1234567.
2. Put the cursor between 1 and 2.
3. Type space.
The input becomes "12 34567".

My environment: VS 2010, Windows 7.

Regards,
Gong
Vadimir
Top achievements
Rank 1
 answered on 18 Oct 2013
1 answer
175 views
Hi all,
Is there a way to get the clicked cell (double click) with 2013-3 version?
In the previous versions and internal builds (since one or two month ago) I was able to get clicked cell with this code:
private void pivot_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (e.ClickCount == 2)
            {
                RadPivotGrid p = sender as RadPivotGrid;
                FrameworkElement cell = e.OriginalSource as FrameworkElement;

then with cell object I was able to read properties such MDX coordinates to open for example a drill down data window.

Now if I try this code the cell variable is null. How can I get clicked cell and then MDX coordinates? Is it possible?

Many thanks in advance!

Best Regards,
Davide
Rosen Vladimirov
Telerik team
 answered on 18 Oct 2013
12 answers
630 views
Hi,
I am using RadGridView in my project but iam not able to customize it to my needs, the problem is its HeaderRow which is in its default color(black) on left side even if i am using this style 
<telerik:RadGridView.HeaderRowStyle>
<Style TargetType="telerik:GridViewHeaderRow">
<Setter Property="Background" Value="Green" />
</Style>
</telerik:RadGridView.HeaderRowStyle>
>                <Style TargetType="telerik:GridViewHeaderRow">
>                    <Setter Property="Background" Value="Green" />
></telerik:RadGridView.HeaderRowStyle>                </Style>
><telerik:RadGridView.HeaderRowStyle>
>                <Style TargetType="telerik:GridViewHeaderRow">
>                    <Setter Property="Background" Value="Green" />
>                </Style>
><telerik:RadGridView.HeaderRowStyle>
>                <Style TargetType="telerik:GridViewHeaderRow">
>                    <Setter Property="Backgro
Vanya Pavlova
Telerik team
 answered on 18 Oct 2013
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?