Telerik Forums
UI for WPF Forum
3 answers
72 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
325 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
116 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
289 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
122 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
5 answers
146 views
Hey

We use telerik:RadDocking - telerik:RadSplitContainer - Radpanes. it is dockedbottom. Mouse over minimized docked panes, looping sometimes (it tries to show the panes in a loop).  We don't have lot of coding going on related to raddocking.

Do you have any solution to this or do you have any similar posts?

I am trying figure out a work around.

Thanks
Ram
Angel
Top achievements
Rank 1
 answered on 27 Jun 2011
3 answers
108 views
We use a DatePicker.
After we startet with the new version the "SelectAll" is obsolete.
What should we use now?

 ((RadDatePicker)sender).SelectAll();
Boyan
Telerik team
 answered on 27 Jun 2011
3 answers
140 views
Hello,

Is there a way to know for sure which rows have a DetailsVibility?

I try that but return only the rendered row.
GridView.ChildrenOfType<GridViewRow>().Where(x => x.DetailsVisibility == Visibility.Visible);
Maya
Telerik team
 answered on 27 Jun 2011
2 answers
541 views
Hi,

Is it possible to handle Commit and Cancel commands/events int the DataForm?

I have dialog with RadDataForm(AutoEdit=TRUE). I wanna close this dialog when user click OK or Cancel button. How can i do this?
Vladimir
Top achievements
Rank 1
 answered on 27 Jun 2011
1 answer
67 views
Hey,

I have a Radrgridview  under RaDDocking/RadSplitContainer/RadPane.

This radPane is set to AutoHide. If i make the docked pane visible, export works fine.

Export is not working when docked pane is not made visible atleast once,

RadGridview is bound to Observable collection. 

Thanks for the Help
Ram
Ivan Ivanov
Telerik team
 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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?