Telerik Forums
UI for WPF Forum
7 answers
174 views
When I drag between two list boxes the mouse location and the start of the cue arrow (with the Icon) is offset a couple of inches down and to the right and it seems to offset the target location too..
2011 Q1 version. Vanilla DragTemplate 

 

 

<DataTemplate

x:Key="DragTemplate">

<Image Source="{Binding IconPath}" Stretch="None" VerticalAlignment ="Top" />  

 

</DataTemplate>

Thoughts?

 

 

I'll add a screen shot if I figure out how to do that..

Tsvyatko
Telerik team
 answered on 23 Jun 2011
6 answers
176 views
Hello,
I use RadGridView with DetailsPresenter together and I want to have DetailsPresent permanently displayed, even if no row is selected or datasource is empty (displayed controls can be empty and non editable in this case).
Thank you very much.
Leos
WPF Q2 2010 SP1
Jonx
Top achievements
Rank 2
 answered on 23 Jun 2011
5 answers
147 views
Dear Telerik,

I've updated our application to the .Net 4 version or Q3 WPF, i'm using the trial whilst the full version is being purchased. (2010.3.1119.40)

Our app was built using Q1 2010. 

I've updated the assemblies, and now the databinding for telerik controls has stopped working.  Lets say I have a view model with a bunch of properties, half of which are bound to telerik controls, and half of which are bound to standard controls. They are all bound to update their source on PropertyChanged. The standard controls still update their view model property, but the telerik controls do not.

help!

thanks
Pete
Konstantina
Telerik team
 answered on 23 Jun 2011
4 answers
121 views
Hello,

I am getting below exception can any one help me on this.its a bit urgent

STACK-TRACE
   at System.Windows.Rect.set_Width(Double value)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MakeVisible(Visual visual, Rect rectangle)
   at System.Windows.Controls.ScrollViewer.ExecuteNextCommand()
   at System.Windows.Controls.ScrollViewer.OnLayoutUpdated(Object sender, EventArgs e)
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
INNER EXCEPTION
Width must be non-negative.
STACK-TRACE
   at System.Windows.Rect.set_Width(Double value)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MakeVisible(Visual visual, Rect rectangle)
   at System.Windows.Controls.ScrollViewer.ExecuteNextCommand()
   at System.Windows.Controls.ScrollViewer.OnLayoutUpdated(Object sender, EventArgs e)
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
*****************END******************
Arpit
Top achievements
Rank 1
 answered on 23 Jun 2011
1 answer
166 views
I'm trying to show only the major ticks and hide all the minor ticks between them, I have set the following properties in my xaml file:
On the AxisX, I set AutoRange="False", MinorTicksVisibility="Hidden", yet all the minor ticks are still showing up. Suggestions?

<chart:ChartArea Grid.Row="1" x:Name="mainChartArea" LegendName="legend">
    <chart:ChartArea.AxisX >
        <chart:AxisX MajorGridLinesVisibility="Collapsed" IsDateTime="True"  DefaultLabelFormat = "dd-MMM"
        Title="Date" MinorTickPointMultiplier="0" AutoRange="False" MajorTicksVisibility="Visible"
        AxisLabelsVisibility="Visible" MinorTicksVisibility="Hidden" />
    </chart:ChartArea.AxisX>
</chart:ChartArea
Yavor
Telerik team
 answered on 23 Jun 2011
1 answer
523 views
How I can show 24 hour in RadTimePicker? Thanks!
Dani
Telerik team
 answered on 23 Jun 2011
1 answer
78 views
Hello.

I have a Test UC within a simple WPF-Grid an for test a Telerik RadGridView.When i added a new item, in the WPF-Grid, the Item is there, but in the Telerik Grid is after that empty. It shows new rows, but they are still empty (nothing is displayed.)

My Text xaml:
<UserControl x:Class="KfzOrtung6.Modells.UserControl1"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignHeight="498" d:DesignWidth="924"
             xmlns:my="clr-namespace:KfzOrtung6DataClasses.Modells;assembly=KfzOrtung6DataClasses"
             Loaded="UserControl_Loaded"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
     
    <UserControl.Resources>
        <CollectionViewSource x:Key="fahrzeugeViewSource" d:DesignSource="{d:DesignInstance my:Fahrzeuge, CreateList=True}" />
    </UserControl.Resources>
     
    <Grid DataContext="{StaticResource fahrzeugeViewSource}">
        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="88" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="32,28,0,0" Name="fahrzeugeDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" VerticalAlignment="Top" Width="654">
            <DataGrid.Columns>
                <DataGridTemplateColumn x:Name="ablaufsimkarteColumn" Header="Ablaufsimkarte" Width="SizeToHeader">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <DatePicker SelectedDate="{Binding Path=Ablaufsimkarte, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTextColumn x:Name="aktivColumn" Binding="{Binding Path=Aktiv}" Header="Aktiv" Width="SizeToHeader" />
                <DataGridTextColumn x:Name="bemerkungColumn" Binding="{Binding Path=Bemerkung}" Header="Bemerkung" Width="SizeToHeader" />
                <DataGridTextColumn x:Name="iDColumn" Binding="{Binding Path=ID}" Header="ID" Width="SizeToHeader" />
                <DataGridTextColumn x:Name="kennzeichenColumn" Binding="{Binding Path=Kennzeichen}" Header="Kennzeichen" Width="SizeToHeader" />
                <DataGridTemplateColumn x:Name="nameColumn" Header="Name" Width="SizeToHeader">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <ComboBox>
                                <ComboBoxItem Content="{Binding Path=Name}" />
                            </ComboBox>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTextColumn x:Name="rufnummerColumn" Binding="{Binding Path=Rufnummer}" Header="Rufnummer" Width="SizeToHeader" />
            </DataGrid.Columns>
        </DataGrid>
 
        <telerik:RadGridView x:Name="mygrid" Margin="32,136,0,35"
                             ItemsSource="{Binding}" HorizontalAlignment="Left" Width="654">
             
        </telerik:RadGridView>
         
        <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="795,162,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
    </Grid>
</UserControl>

My cs:
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using KfzOrtung6DataClasses.Modells;
 
namespace KfzOrtung6.Modells
{
    /// <summary>
    /// Interaktionslogik für UserControl1.xaml
    /// </summary>
    public partial class UserControl1 : UserControl
    {
 
        KfzContext6 kt = new KfzContext6();
        public UserControl1()
        {
            InitializeComponent();
        }
 
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            kt.MFahrzeuge.Load();
            var cc = kt.MFahrzeuge.Local;
 
            // Laden Sie Ihre Daten nicht zur Entwurfszeit.
            //if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
            //{
            //  //Laden Sie hier Ihre Daten, und weisen Sie das Ergebnis der CollectionViewSource zu.
            CollectionViewSource myCollectionViewSource = (CollectionViewSource)this.Resources["fahrzeugeViewSource"];
                myCollectionViewSource.Source = cc;
            //}
        }
 
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            Fahrzeuge fz = new Fahrzeuge
            {
                ID = Guid.NewGuid(),
                Name = "LKW Test 2",
                Kennzeichen = "Sad-Br-505",
                Ablaufsimkarte = new DateTime(2000, 1, 1),
                Rufnummer = "",
                Aktiv = 1
            };
            kt.MFahrzeuge.Add(fz);
            kt.SaveChanges();
 
            mygrid.Items.Refresh();
        }
    }
}


Please can you help?

Reinhard




Maya
Telerik team
 answered on 22 Jun 2011
1 answer
382 views
i have the following tree:
----------------------------------
a
   1
   2
b
c
   1
   2
-------------------------------
is it possible to disable parent a and NOT disable child 1 and child 2?
because isEnabled property disable a,1,2 altogether?

is it possible to disable selection of parent a
(and not affect children selection)?

thank you!
Rachel
Petar Mladenov
Telerik team
 answered on 22 Jun 2011
3 answers
144 views
Hello,
I was wondering if there was any plans to have full parity between WPF and Silverlight for Telerik components as i'm currently writing a WPF LoB application that requires file upload and am about to roll my own. Should i go all the way with polish or is there something coming from telerik about this and should i do a bare minimum expecting to replace my component with it?
Thanks.
Petar Mladenov
Telerik team
 answered on 22 Jun 2011
0 answers
113 views
Hello,

i am using a RadGridview with sample data in a combobox popup.

<Popup x:Name="PART_Popup" Margin="0,1,0,0">
    <Border BorderBrush="#FF595959" BorderThickness="1" Background="#FF3D3D3D"
         MaxHeight="{TemplateBinding MaxDropDownHeight}"
         MinWidth="{TemplateBinding MinDropDownWidth}">
         <telerik:RadGridView x:Name="RadGridView1"
              ShowGroupPanel="False" CanUserFreezeColumns="False"
              RowIndicatorVisibility="Collapsed" IsReadOnly="True"
              IsFilteringAllowed="True" ItemsSource="{Binding Dokumente}"
              MaxWidth="500" MaxHeight="400"
              SelectedItem="{Binding SelectedItem, Mode=TwoWay}">
         </telerik:RadGridView>
    </Border>
</Popup>

The ItemSource of my RadGridView is a sample data element which fills the RadGridView with data. RadGridViewInComboBox

My problem is, that i can not bind the value of an selected Cell/Row to the ComboBox text.

In the example from Vladimir Enchev, the binding works, but the data of the GridView is not from sample data.
http://blogs.telerik.com/vladimirenchev/posts/10-04-09/how_to_filter_as_you_type_radgridview_inside_radcombobox_for_wpf_and_silverlight.aspx

Can you give me a solution for my Problem?

Greetings Michael
Michael
Top achievements
Rank 1
 asked on 22 Jun 2011
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?