Telerik Forums
UI for WPF Forum
1 answer
144 views
There seems to be a ScrollViewer inside the AutoCompleteBox that consumes all scroll events.
With the box inside a longer form this breaks the scrolling.
Is there a way to change that behaviour?

Regards,
Kristjan
Vladi
Telerik team
 answered on 18 Nov 2014
8 answers
268 views
When using mvvm with the diagram.  I am having an issue when using a custom style with RadDiagramConnection.   In the style I bind to the properties SourceCapType, TargetCapType and ConnectionType.  The binding works fine.  But as soon as I copy and paste RadDiagramConnection.  The binding on the pasted connection no longer updates when I change those properties in code behind. Is there something special that one must do with these properties?

Here is style I am using.

  <Style x:Key="CustomLinkStyle" TargetType="telerik:RadDiagramConnection">            
            <Setter Property="Visibility" Value="{Binding Visibility,Mode=TwoWay}"/>
            <Setter Property="Foreground" Value="Red"/>
            <Setter Property="Stroke" Value="{Binding Color}"/>
            <Setter Property="SourceCapType" Value="{Binding SourceCapType, Mode=TwoWay}"/>
            <Setter Property="TargetCapType" Value="{Binding TargetCapType, Mode=TwoWay}"/>
            <Setter Property="ConnectionType" Value="{Binding ConnectionType,Mode=TwoWay}"/>
            <Setter Property="Background" Value="{Binding Color}"/>
        </Style>
Pavel R. Pavlov
Telerik team
 answered on 18 Nov 2014
1 answer
108 views
I'm trying to load ESRI Shapefile inside RadMap using InformationLayer manually, but getting this issue "The DBF file is invalid or has unsupported format."
The shapefiles which I'm referring to is running fine in other window application.

Telerik example link which I'm referring is here http://www.telerik.com/help/wpf/radmap-features-shapefiles-support.html

Here is a WPF project that can reproduce the issue: https://www.dropbox.com/s/tr2vorqfbllbn6r/TelerikRadMap.rar?dl=0
Petar Mladenov
Telerik team
 answered on 18 Nov 2014
3 answers
318 views
I have an issue where the initial value of a RadNumericUpDown is not visible, when focused by FocusManager.FocusedElement in xaml.

If FocusManager is removed or you tab out of the input-field, the value showed correctly.

A little bug, but big usability-impact in our application.

Telerik version: 2014.3.1021.40
Visual Studio version: Premium 2012

Screendump attached.
I have a small POC app if required.
Kalin
Telerik team
 answered on 18 Nov 2014
1 answer
263 views
Hi,

I'm trying to add a tooltip to a radProgressBar and I'm having some issues.

I did something like that but it doesn't work, it gives an empty tooltip :
<telerik:RadProgressBar>
     <telerik:RadProgressBar.ToolTip>
          <ToolTip Content="{Binding Path=DataContext.SomeProperty, ElementName=SomeParent}"/>
     </telerik:RadProgressBar.ToolTip>
</telerik:RadProgressBar>

Same result for this :
<telerik:RadProgressBar telerik:RadToolTipService.ToolTipContent="{Binding Path=DataContext.SomeProperty, ElementName=SomeParent}"/>

The only way I've been able to have something interesting is by doing this :
<telerik:RadProgressBar ToolTip="{Binding Path=DataContext.SomeProperty, ElementName=SomeParent"/>

The problem is that I want to use ContentStringFormat and do something like this :
<telerik:RadProgressBar>
     <telerik:RadProgressBar.ToolTip>
          <ToolTip Content="{Binding Path=DataContext.SomeProperty, ElementName=SomeParent}" ContentStringFormat="{}{0:P2}"/>
     </telerik:RadProgressBar.ToolTip>
</telerik:RadProgressBar>

Am I doing somthing wrong or there is a bug with tooltip ?

Thank you,

Etienne
Petar Mladenov
Telerik team
 answered on 18 Nov 2014
1 answer
85 views
Hello,

How do I delete a thread I posted?

This one:
http://www.telerik.com/forums/radtileview-xaml-vm-of-tile-items-vary-change

Thx
Yana
Telerik team
 answered on 18 Nov 2014
14 answers
1.3K+ views
I have a gridview on a control.  I have set the grid to have a datasource relative to a property on the control:

<telerik:RadGridView Grid.Row="1" Name="adjustments" CanUserDeleteRows="False" CanUserInsertRows="False" CanUserResizeRows="False" ShowGroupPanel="False" SelectionChanged="adjustments_SelectionChanged"
        ItemsSource="{Binding Path=CurrentClaim.claimAdjustments, RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl}}" AutoGenerateColumns="False" IsReadOnly="True" MouseDoubleClick="adjustments_MouseDoubleClick">
<telerik:RadGridView.Columns>
      <telerik:GridViewDataColumn Name="colCreatedOn" DataMemberBinding="{Binding createdOn}" Header="Posting Date" DataFormatString="{}{0:MM/dd/yyyy}" SortingState="Descending"  />
      <telerik:GridViewDataColumn DataMemberBinding="{Binding claimAdjustmentReason.description}" Header="Reason" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>

The property CurrentClaim does notify the grid and the grid does update the data when the new claim is set in CurrentClaim.  The problem is that the grid is sorted based on the first column, but when new data is loaded into the grid it is not sorted by this column.  Can someone please tell me what I am doing wrong or why the sort doesn't work when new data is loaded?

-Lee


Anthony
Top achievements
Rank 1
Iron
Veteran
 answered on 17 Nov 2014
2 answers
111 views
Hi,

I'm trying to use the Slider with selection range enabled into a RadListBox item template. The items in the listbox are draggable to do some manual sorting. When I try to move the slider range values, the whole item is dragged and I cannot change the values. Is there a way to prevent item drag when the slide range values are been changed?

Thanks, Jose
Jose
Top achievements
Rank 1
 answered on 17 Nov 2014
1 answer
381 views
Hi,

in MVVM scenario I need dynamically generate columns for RadGridView.

I created attached property for this purpose.

ItemSource is bind to property ObservableCollection<Company> Companies from VM

where Company is

    
public class Company : INotifyPropertyChanged
    {
        public Company()
        {
            Dept = new Dictionary<string, User>();
        }
 
        private Dictionary<string,User> dept;
 
        public Dictionary<string,User> Dept
        {
            get { return dept; }
 
            set
            {
                dept = value;
                OnPropertyChanged("Dept");
            }
        }
    }

and User is

    
public class User : INotifyPropertyChanged
    {
 
        private string firstName;
 
        public string FirstName
        {
            get { return firstName; }
 
            set
            {
                firstName = value;
                OnPropertyChanged("FirstName");
            }
        }
 
        private string lastName;
 
        public string LastName
        {
            get { return lastName; }
 
            set
            {
                lastName = value;
                OnPropertyChanged("LastName");
            }
        }
    }


I generate columns in VM in this way.

In VM I have property ObservableCollection<ColumnDefinition> which is bind to attached property in View.

ColumnDefinition is abstraction for GridViewDataColumn.

<telerik:RadGridView ItemsSource="{Binding Path=Country.Companies, UpdateSourceTrigger=PropertyChanged}"
                     dynamicCol:RadGridViewColumnsBinding.ColumnsCollection="{Binding Path=Columns}">
    <telerik:RadGridView.Resources>
        <DataTemplate x:Key="UserTemplate"
                      DataType="{x:Type models:User}">
            <StackPanel>
                <TextBlock Text="LastName:" />
                <TextBlock Text="{Binding Path=LastName}" />
            </StackPanel>
        </DataTemplate>
    </telerik:RadGridView.Resources>
</telerik:RadGridView>


When I need add column to RadGridView I add ColumnDefinition obj to property Columns.

I need apply DataTemplate on GridViewDataColumn and this is which not work for me.

Exactly binding to property User.LastName in DataTemplate not work.

I use this binding exp for GridViewDataColumn 

                      
string bindingExp = string.Format("Dept[{0}]", columnName);
//string bindingExp = string.Format("Dept[{0}].LastName", columnName); // whithout datatemplate this work
 
                      var binding = new Binding(bindingExp)
                      {
                          UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged
 
                      };
 
                      Columns.Add(new ColumnDefinition
                      {
                          Header = columnName,
                          DataMemberBinding = binding,
                          Tag = ColumnTag,
                          UniqueName = Guid.NewGuid().ToString(),
                          CellTemplateName = "UserTemplate",
                      });




I try attached several times sample project but always get error:

The selected file(s) cannot be attached because it may exceed the maximum attachment size (2 MB) or is from not allowed type (allowed: .gif, .jpg, .jpeg, .png).

Attached file size is 74 KB.

Hence I uploded sample project to onedrive.

You can download here.
Dimitrina
Telerik team
 answered on 17 Nov 2014
3 answers
97 views
Hi, I would like to enquire on a solution to the problem as per title. I am dragging between 2 RadListBox. Below is an example of the desired effect I would like to achieve:

A drag drop event

Dragged 'Equipment' objects (with ID and Quantity properties):
ID: 2, Quantity: 2
ID: 5, Quantity: 3
ID: 9, Quantity: 1

Destination Objects ('Equipment' objects already in destination RadListBox):
ID: 1, Quantity: 3
ID: 2, Quantity: 3
ID: 9, Quantity: 2


Desired outcome in destination RadListBox after drag drop event:
ID: 1, Quantity: 3
ID: 2, Quantity: 5 (3+2)
ID: 5, Quantity: 3
ID: 9, Quantity: 3 (2+1)

Instead of:
ID: 1, Quantity: 3
ID: 2, Quantity: 3
ID: 9, Quantity: 2
ID: 2, Quantity: 2
ID: 5, Quantity: 3
ID: 9, Quantity: 1


Thanks a lot for your attention. Please let me know if further details is needed.
​





Kalin
Telerik team
 answered on 17 Nov 2014
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?