Telerik Forums
UI for WPF Forum
1 answer
161 views
Hello All,

I use Schedule view. After creating an appointment when I want to resize it using the mouse, the resize animation is not visible, say I dont see till which point I dragged it. But  in examples it is available. Can any one help me getting this particular behaviour

Dheena
Konstantina
Telerik team
 answered on 28 Jun 2011
3 answers
144 views
Searching for a WPF property grid I found this forum. I'm implementing a solution, where I need a property grid soon.

How long will it take until you release it?

Greets
Rossen Hristov
Telerik team
 answered on 28 Jun 2011
4 answers
216 views
Where is the documentation for how to build expressions in the editor?

the functions that I need are not working properly or I'm using it in a wrong way

Yavor Georgiev
Telerik team
 answered on 28 Jun 2011
2 answers
284 views

Hy,

When moving our application window or resizing it then we get an ArgumentNullException in the DataItemAutomationPeer class.

We are currently on the binaries RadControls for WPF Q1 2011.
I looked at the currently available source code "01348RadControls_for_WPF_40_2011_1_0613_DEV_hotfix".

Callstack on Exception:
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.Automation.DataItemAutomationPeer.DataItemAutomationPeer(object dataItem, Telerik.Windows.Controls.GridView.Automation.GridViewDataControlAutomationPeer dataControlAutomationPeer) Line 78 C#
> Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.Automation.GridViewDataItemAutomationPeer.GridViewDataItemAutomationPeer(object dataItem, Telerik.Windows.Controls.GridView.Automation.GridViewDataControlAutomationPeer dataControlAutomationPeer) Line 25 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.Automation.RadGridViewAutomationPeer.CreateDataItemAutomationPeer(object dataItem) Line 97 + 0x2f bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.Automation.GridViewDataControlAutomationPeer.GeneratePeersForDataItems(System.Collections.Generic.List<System.Windows.Automation.Peers.AutomationPeer> newPeerList, Telerik.Windows.Controls.GridView.Automation.AutomationPeerStorage<object,Telerik.Windows.Controls.GridView.Automation.DataItemAutomationPeer> oldCachedPeers) Line 111 + 0x1c bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.Automation.GridViewDataControlAutomationPeer.GetItemPeers() Line 101 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.Automation.GridViewVirtualizingPanelAutomationPeer.GetChildrenCore() Line 79 + 0x21 bytes C#

What I saw in the source is:

In class GridViewDataControlAutomationPeer a check is done for (dataitem == null), see below:

        private void GeneratePeersForDataItems(List<AutomationPeer> newPeerList, AutomationPeerStorage<object, DataItemAutomationPeer> oldCachedPeers)
        {
            foreach (object dataItem in this.Items)
            {
                DataItemAutomationPeer dataItemPeer = oldCachedPeers.FindPeer(dataItem);

                if (dataItemPeer == null)
                    dataItemPeer = this.CreateDataItemAutomationPeer(dataItem);

                SetUpOwnerRowEventsSource(dataItemPeer);

                this.cachedPeers[dataItem] = dataItemPeer;
                newPeerList.Add(dataItemPeer);
            }
        }

Then later in the ctor of DataItemAutomationPeer I saw the following code:
        protected DataItemAutomationPeer(object dataItem, GridViewDataControlAutomationPeer dataControlAutomationPeer)
            : base(dataControlAutomationPeer.OwnerGridViewDataControl)
        {
            if (dataItem == null)
                throw new ArgumentNullException("dataItem");
            if (dataControlAutomationPeer == null)
                throw new ArgumentNullException("dataControlAutomationPeer");

            this.dataItem = dataItem;
            this.dataControlAutomationPeer = dataControlAutomationPeer;
        }

In my case I get the exception from this check in the ctor.

Kind regards,
Yvonne

Yvonne
Top achievements
Rank 1
 answered on 28 Jun 2011
3 answers
276 views
Hi,

I was trying to apply filter on DataGridView column(IsFilterable =True). But not able to show icon on column header. My column is bounded with ObservalCollection<MyType> and a am showing values in a Listbox.

Is it possible to show filtering on collection type column, also i want to show custom control(FilterControl) when user click on filter icon.
For example suppose my RadGridView bounded to a collection "ClaimList"
Collection ClaimList includes:
- Claim Number(int)
- Vehicle(String)
- Contact(String)
- Inspection date(DateTime)
- Next Actions (ObservalCollection<IClaimActions>)

The problem is with column Next Action which shows a list of possible actions on a particular Claim Number.

Thanks,
Umesh Kumar
Rossen Hristov
Telerik team
 answered on 28 Jun 2011
3 answers
82 views
Hi,
There is a problem with the forum's server when i try to acces to my post at http://www.telerik.com/community/forums/wpf/gridview/invalidoperationexception-when-group-sort-one-of-the-two-grids-binded-on-one-listcollectionview.aspx :

Oops...

It seems there was a problem with our server.

Cedric
Top achievements
Rank 1
 answered on 28 Jun 2011
1 answer
344 views
I have a Dell laptop running Windows 7 and Chrome 12.0 (most current version).  Here's what happens when I try to run the WPF demo:

1) I click "Click to Open" on the demo webpage
2) The XBAP downloads to my Downloads folder.
3) Chrome displays "This type of file can harm your computer.  Are you sure you want to download Telerik...amples.xbap?" on the downloads bar at the bottom of the Chrome window, with "Save" and "Discard" buttons.
4) I click "Save".
5) Return to step 2.

I stopped after I had 6 copies of the XBAP.

The demo runs on IE9 on the same laptop.  I would love to run the demo on Chrome, which appears to significantly faster on my laptop.
Dimitrina
Telerik team
 answered on 28 Jun 2011
1 answer
132 views

I am setting the itemsource of my radgridview using the code
WireInstructionDGV.ItemsSource = obj.GetWireInstruction("BNYBD", "MST", "CPTY", "USD")

To add a new row, i have a button who's click event has
Me.WireInstructionDGV.BeginInsert()

Clicking on the button does not add a new row in the datagrid. any ideas ?

(I do not have IsReadOnly = True or CanUserInsertRows  = False)
Tarun
Top achievements
Rank 1
 answered on 27 Jun 2011
7 answers
325 views
Hello all.

I have updated my Entity Framework 4.0 to 4.1Since i have a problem with the binding to Radgridview control.

My Dataclasses as sample:
namespace KfzOrtung6DataClasses.Modells
{
    public class Fahrzeuge
    {
         
        public Fahrzeuge()
        {
            this.FahrzeugPositionen = new ObservableCollection<Positionen>();
        }
 
        [Required]
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }
 
        [Required]
        [MaxLength(50)]
        public string Name { get; set; }
 
        [Required]
        [MaxLength(50)]
        public string Kennzeichen { get; set; }
 
        public string Rufnummer { get; set; }
         
        public int Aktiv { get; set; }
        public DateTime Ablaufsimkarte { get; set; }
 
        [MaxLength(4000)]
        public string Bemerkung { get; set; }
 
        public virtual ObservableCollection<Positionen> FahrzeugPositionen { get; private set; }
    }
}



In my UC i have into the Loaded-Event:
this.DataContext = this.ItemsSource;

The Collectionview Method:
ICollectionView _itemsSource;
public ICollectionView ItemsSource
{
    get
    {
        if (_itemsSource == null)
        {
            using (var ktt = new KfzContext6())
            {
                ktt.MFahrzeuge.Load();
                var c = ktt.MFahrzeuge.Local.ToBindingList();
                var collectionViewSource = new CollectionViewSource {Source = c};
                _itemsSource = collectionViewSource.View;
            }
        }
        return _itemsSource;
    }
    set
    {
        _itemsSource = value;
        OnPropertyChanged("ItemsSource");
    }
}
#endregion

In my context class:
namespace KfzOrtung6DataClasses.Modells
{
    public class KfzContext6 : DbContext
    {
        public KfzContext6(): base("KfzContext6")
        {
            
        }
         
        public DbSet<Fahrzeuge> MFahrzeuge { get; set; }
        public DbSet<Positionen> MPositionen { get; set; }
        public DbSet<Tarife> MTarife { get; set; }
        public DbSet<Benutzer> MBenutzer { get; set; }
        public DbSet<SmsProtokoll> MSmsProtokoll { get; set; }
 
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            // Hier können manuelle Änderungen an Datenbank vorgenommen werden!!
            //Beispiel:
            //modelBuilder.Entity<Benutzer>().Property(r => r.ID).HasColumnName("Id");
        }
 
    }
}

My save method:
selectedFahrzeugAusListe.Aktiv = chkFahrzeugAktiv.IsChecked == true ? 1 : 0;
selectedFahrzeugAusListe.Rufnummer = txFahrzeugGpsnummer.Text.Trim();
selectedFahrzeugAusListe.Kennzeichen = txFahrzeugKennzeichen.Text.Trim();
selectedFahrzeugAusListe.Bemerkung = txFahrzeugKommentar.Text.Trim();
selectedFahrzeugAusListe.Name = txFahrzeugName.Text.Trim();
selectedFahrzeugAusListe.Ablaufsimkarte = dateTimePicker.DisplayDate;
 
using (var ktt = new KfzContext6())
{
    ktt.MFahrzeuge.Add(selectedFahrzeugAusListe);
    ktt.SaveChanges();
    ItemsSource.Refresh();
}

In xaml of the radgridview:
<telerik:RadGridView AutoGenerateColumns="False"
                     CanUserFreezeColumns="False"
                     CanUserResizeColumns="True"
                     Margin="10,6,10,13"
                     x:Name="FahrzeugGrid"
                     RowIndicatorVisibility="Visible"
                     AutoExpandGroups="True"
                     IsFilteringAllowed="False"
                     ShowGroupPanel="False"
                     ShowGroupFooters="False"
                     IsReadOnly="True"
                     SelectionChanged="FahrzeugGrid_SelectionChanged"
                     ActionOnLostFocus="None"
                     AreRowDetailsFrozen="True"
                     CanUserInsertRows="False"
                     CanUserDeleteRows="False"
                     RowDetailsVisibilityMode="Visible" Grid.Row="1"
                     ItemsSource="{Binding ItemsSource, ElementName=DataSourceChangeNotificationsFahrzeugControl}"
                     DataLoaded="FahrzeugGrid_DataLoaded" >
 
    <telerik:RadGridView.ParentRow>
        <telerik:GridViewRow IsTabStop="False" />
    </telerik:RadGridView.ParentRow>
     
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"
                                    Header="Fahrzeugname" Width="200" />
 
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Kennzeichen}"
                                    Header="Kennzeichen" Width="140" />
 
        <telerik:GridViewColumn Header="Aktiv" Width="40" IsFilterable="True">
            <telerik:GridViewColumn.CellTemplate>
                <DataTemplate>
                    <CheckBox IsEnabled="False"
                              IsChecked="{Binding Path=Aktiv, Converter={StaticResource CopnvertIntToBool1} }">
                    </CheckBox>
                </DataTemplate>
            </telerik:GridViewColumn.CellTemplate>
        </telerik:GridViewColumn>
 
        <telerik:GridViewDataColumn
            DataMemberBinding="{Binding Rufnummer}"
            Header="GPS Nummer" Width="150" />
 
        <telerik:GridViewDataColumn
            DataMemberBinding="{Binding Ablaufsimkarte}"
            Header="Ablauf Karte" Width="90" />
 
        <telerik:GridViewDataColumn
            DataMemberBinding="{Binding Bemerkung}"
            Header="Kommentar" Width="*" />
 
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

It shows all cars, but when i save a new car, the list doesn´t refresh.
When i reload the UC, then all cars (the new one too) are all there.

Can you please help?

Reinhard

Reinhard
Top achievements
Rank 2
 answered on 27 Jun 2011
2 answers
143 views
On the QuarticEase below, I am getting an "Invalid Type" Error. 
Any Easing function I try to enter gives me the same Invalid Type error. Help please!
Visual Studio 2010 w/ .Net 4 with RadControls for WPF 2011_1_0419.

<
Grid x:Name="MainGrid" Background="{StaticResource HelpBrush}">
        <telerik:RadTransitionControl x:Name="TransControl" Width="484" Height="384" Duration="0:0:1"
                                      Padding="32">
            <telerik:RadTransitionControl.Transition>
                <telerik:PerspectiveRotationTransition Direction="Left">
                </telerik:PerspectiveRotationTransition>
            </telerik:RadTransitionControl.Transition>
            <telerik:RadTransitionControl.Easing>
                <QuarticEase EasingMode="EaseOut"/>
            </telerik:RadTransitionControl.Easing>
        </telerik:RadTransitionControl>
</
Grid>



Dustin Clonch
Top achievements
Rank 1
 answered on 27 Jun 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?