This is a migrated thread and some comments may be shown as answers.

Simple Combobox column - clearly I am missing the obvious...

7 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kenneth Jamieson
Top achievements
Rank 1
Kenneth Jamieson asked on 27 Oct 2009, 11:15 AM
Hey all!

Now, clearly this is my problem and not one with the grid however I am just not seeing how I am going wrong. Given the following XAML...

        <telerik:RadGridView Name="radGridView1" AutoGenerateColumns="False" UseAlternateRowStyle="True">  
            <telerik:RadGridView.Columns> 
                <telerik:GridViewComboBoxColumn UniqueName="Active" DataMemberBinding="{Binding IsActive}" SelectedValueMemberPath="Value" DisplayMemberPath="Title" /> 
                <telerik:GridViewDataColumn UniqueName="User" DataMemberBinding="{Binding Name}" /> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 

And the following code to fill it...

        public Window1()  
        {  
            InitializeComponent();  
 
            var activeflaglist = new List<ActiveFlag>();  
            activeflaglist.Add( new ActiveFlag{ Title = "Yes", Value = "Y" } );  
            activeflaglist.Add( new ActiveFlag{ Title = "No", Value = "N" } );  
 
            var userlist = new List<User>();  
            userlist.Add( new User{ IsActive = "Y", Name = "Bob StartsActive" } );  
            userlist.Add( new User{ IsActive = "N", Name = "Fred StartsInActive" } );  
            userlist.Add( new User{ IsActive = "Y", Name = "John StartsActive" } );  
            userlist.Add( new User{ IsActive = "Y", Name = "Alice StartsActive" } );  
            userlist.Add( new User{ IsActive = "N", Name = "Janet StartsInActive" } );  
 
            var activeColumn = (GridViewComboBoxColumn)radGridView1.Columns["Active"];  
 
            activeColumn.ItemsSource = activeflaglist;  
 
            radGridView1.ItemsSource = userlist;  
        } 

If you build the project (the link is below) and then try to use the combo box a crash is instant. What a I missing?

http://drop.io/hidden/wddviyal73bufj/asset/Y29tYm9ib3hlcnJvci16aXA%253D

Ken

7 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 28 Oct 2009, 02:07 PM
Hello Kenneth Jamieson,
This video shows the way I have tested the scenario. It shows also the version of the dlls I have tested with .

I believe there is some difference between the way I test and your way  as I definitely can not reproduce it here.

Sincerely yours,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Kenneth Jamieson
Top achievements
Rank 1
answered on 28 Oct 2009, 05:19 PM

Well, you are running the Q3 beta, so yea, thats different. I was trying to say on production code.

I'll try the beta.
0
Kenneth Jamieson
Top achievements
Rank 1
answered on 05 Nov 2009, 08:03 PM
Still broken. I have updated to the real Q3 release and made the minimal changes to the project to make it work. Still, total failure.

Here is the link to the updated code, including the copylocal versions of the DLL's I am using.

HELP :)

http://drop.io/hidden/qhwpd1oa42bwgu/asset/Y29tYm9ib3hlcnJvcnEzLXppcA%253D%253D
0
Pavel Pavlov
Telerik team
answered on 06 Nov 2009, 03:05 PM

Hi Kenneth Jamieson,

I have downloaded  the project from your latest link. I have tried it on several machines  and it works fine.

Have you tried it on another machine  ?  Maybe there is something specific  on the PC you are using that causes the problem.

Sincerely yours,

Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Kenneth Jamieson
Top achievements
Rank 1
answered on 07 Nov 2009, 01:34 AM
Ok, I fired up a virtual machine, and your right - it works int here. However since there are no problems with any other program on my ssystem all signs still point to a problem with the Telerick DLL's and how they have installed on this box.

At this point all teletick products have been un and re installed several times. Any other ideas where to look?

Ken
0
Kenneth Jamieson
Top achievements
Rank 1
answered on 09 Nov 2009, 07:32 AM
Ok, I was surfing your forums here and came across this post...

http://www.telerik.com/community/forums/wpf/gridview/error-when-opening-date-picker-inside-grid.aspx

Which suggested stopping the "Tablet PC Input Service" for a similar problem. When I do that, the error goes away. You guys REALLY need to figure out this error - more and more tablet / touch screen devices are happening, and it's not a good thing to have this time bomb :)

Ken
0
Accepted
Pavel Pavlov
Telerik team
answered on 09 Nov 2009, 02:30 PM

Hi Kenneth ,

You are absolutely right! Such problems are hard to identify and cause much troubles for us and our clients. Thank you for your collaboration so far ! I have updated your Telerik points.

We are going to investigate this further and do our best to provide a fix as soon as possible.

Best wishes,

Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Kenneth Jamieson
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Kenneth Jamieson
Top achievements
Rank 1
Share this question
or