RadGridView binding constraints exception

5 posts, 0 answers
  1. Lester
    Lester avatar
    5 posts
    Member since:
    May 2011

    Posted 15 Jun 2012 Link to this post

    The Unhandled Exception is happening in Firefox and Chrome, IE seems to ignore it and continue to work.  It appears after a user successfully logs in and we are opening our Project Details control which has a RadGridView at the bottom third of the xaml page.  We get the following error: (This started after we changed the project from SL4 to Silverlight 5 , RadControls Version: 2012.2.607.1050).
    The invocation of the contructor type 'Telerik.Windows.Controls.RadGridView' that matches the specified binding constraints threw an exception.[Line:224, Position:86] at System.Windows.Application.LoadComponent(Object component, UriresourceLocator)\ at _3by3.ProjectsPage.InitializeComponent()\n


    What could be causing this?

    -Lester


    ProjectsPage.xaml
    <telerik:RadGridView x:Name="dgProjectList" SelectionChanged="dgProjectList_SelectionChanged" ItemsSource="{Binding ProjectsList}" ShowColumnFooters="True" ShowGroupFooters="True" Width="1166" Margin="0,0,0,0" AutoGenerateColumns="False" BorderThickness="1" IsReadOnly="True" Height="226">
                             <telerik:RadGridView.Columns>
                                 <telerik:GridViewDataColumn Header="Project Title" Width="290" DataMemberBinding="{Binding project_title}" >
                                     <telerik:GridViewColumn.Footer>
                                         <telerik:RadButton Content="Export to Excel XML" x:Name="butExport" Click="butExport_Click"  Margin="5,0"></telerik:RadButton>
                                     </telerik:GridViewColumn.Footer>
                                 </telerik:GridViewDataColumn>
                                 <telerik:GridViewDataColumn Header="Project No" Width="100" DataMemberBinding="{Binding project_no}">
                                     <telerik:GridViewDataColumn.AggregateFunctions>
                                         <telerik:CountFunction Caption="Count: " />
                                     </telerik:GridViewDataColumn.AggregateFunctions>
                                 </telerik:GridViewDataColumn>
                                 <telerik:GridViewDataColumn Header="Entity" Width="70" DataMemberBinding="{Binding client}" />
                                 <telerik:GridViewDataColumn Header="Phase" Width="105" DataMemberBinding="{Binding phase}" />
                                 <telerik:GridViewDataColumn Header="Status" Width="268" DataMemberBinding="{Binding status}" />
                                 <telerik:GridViewDataColumn Header="Type Area" Width="150" DataMemberBinding="{Binding type}" />
                                 <telerik:GridViewDataColumn Header="Type Project" Width="87" DataMemberBinding="{Binding type_project}" />
                                 <telerik:GridViewDataColumn Header="Priority" Width="60" DataMemberBinding="{Binding priority}" />
                                 <telerik:GridViewDataColumn Header="Date Rec" Width="88" DataMemberBinding="{Binding date_rec, StringFormat='MM/dd/yyyy'}" />
                             </telerik:RadGridView.Columns>
                         </telerik:RadGridView>


    ProjectsPage.xaml.cs
    public ProjectsPage()
    {
        InitializeComponent();
        bind.MaxBufferSize = 2147483647;
        bind.MaxReceivedMessageSize = 2147483647;
        bind.SendTimeout = TimeSpan.FromMinutes(3);
       // proxy = new ProjectsServiceClient(bind, PRendpoint);
        proxy = new ProjectsServiceClient();
        CurrentProject = new project();
     
        //btnAddRouting.Visibility = Visibility.Collapsed;
       // ApplySecurityLevel();
        proxy.InsertDefTeamForProjectCompleted += new EventHandler<InsertDefTeamForProjectCompletedEventArgs>(proxy_InsertDefTeamForProjectCompleted);
        proxy.Get3x3AllContratorsCompleted += new EventHandler<Get3x3AllContratorsCompletedEventArgs>(proxy_Get3x3AllContratorsCompleted);
        proxy.get3x3AllContractorsByProjectCompleted += new EventHandler<get3x3AllContractorsByProjectCompletedEventArgs>(proxy_get3x3AllContractorsByProjectCompleted);
        proxy.getDocTypesCompleted += new EventHandler<getDocTypesCompletedEventArgs>(proxy_getDocTypesCompleted);
        proxy.GetEntitiesCompleted += new EventHandler<GetEntitiesCompletedEventArgs>(proxy_GetEntitiesCompleted);
        proxy.getMyTrackingCompleted += new EventHandler<getMyTrackingCompletedEventArgs>(proxy_getMyTrackingCompleted);
        proxy.getProjectsbyQueryCompleted += new EventHandler<getProjectsbyQueryCompletedEventArgs>(proxy_getProjectsbyQueryCompleted);
        proxy.getProjectsbyProjectNoCompleted += new EventHandler<getProjectsbyProjectNoCompletedEventArgs>(proxy_getProjectsbyProjectNoCompleted);
        proxy.getProjectListCompleted += new EventHandler<getProjectListCompletedEventArgs>(proxy_getProjectListCompleted);
        proxy.getTeamDetailsCompleted += new EventHandler<getTeamDetailsCompletedEventArgs>(proxy_getTeamDetailsCompleted);
        proxy.getUsersCompleted += new EventHandler<getUsersCompletedEventArgs>(proxy_getUsersCompleted);
        proxy.Save3x3ProjectCompleted += new EventHandler<Save3x3ProjectCompletedEventArgs>(proxy_Save3x3ProjectCompleted);
        proxy.Update3x3ProjectCompleted += new EventHandler<Update3x3ProjectCompletedEventArgs>(proxy_Update3x3ProjectCompleted);
     
        GetInitdata();
        initialTabSetup();
        Loaded += new RoutedEventHandler(ProjectsPage_Loaded);
        projectTabs.GetMyTracking();
    }
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 18 Jun 2012 Link to this post

    Hi,

     Do you have Telerik controls in the GAC? Can you remove them if this is the case? 

    Regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Lester
    Lester avatar
    5 posts
    Member since:
    May 2011

    Posted 18 Jun 2012 Link to this post

    The only Telerik assemblies in my GAC are reporting services assemblies.  There are no silverlight controls assemblies there.  Any other suggestions?
    -Lester
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 18 Jun 2012 Link to this post

    Hello,

     In this case unfortunately we are not aware what is causing the problem at your end. 

    Regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  5. Pablo
    Pablo avatar
    1 posts
    Member since:
    Jan 2012

    Posted 14 Dec 2012 Link to this post

    Hi, I had the same problem. I fixed it adding the System.Windows.Data reference. 
    Regards.
Back to Top