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

[Solved] can not insert or delete rows (can edit)

5 Answers 106 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kirie
Top achievements
Rank 1
Kirie asked on 01 Aug 2011, 12:17 PM
Hi, i am having problems with RadDataGrid.
Items is a ObservableCollection, and each item in the collection has a BitTypeList, which is a List that implements the IList interface.
        [DataMember]
        public virtual IList<BitTypeEntity> BitTypeList { get; set; }


 I Can update items, but i can not delete nor insert items, even though the addnewitem line is visible, nothing happens when i press it. Any ideas what the problem is? If you need more code, let me know.

                <Controls:RadComboBox x:Name="mainComboBox" SelectedIndex="0" Width="150" ItemsSource="{Binding Items, Mode=TwoWay}"  DropDownClosed="mainComboBox_DropDownClosed" />
             
            </StackPanel>
        </StackPanel>
        <telerikGrid:RadGridView x:Name="itemsGrid" Grid.Row="1" AutoGenerateColumns="False" SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                                  CanUserInsertRows="True" ShowInsertRow="True" CanUserDeleteRows="True" ItemsSource="{Binding ElementName=mainComboBox, Path=SelectedItem.BitTypeList, Mode=TwoWay}"  />

5 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 01 Aug 2011, 01:31 PM
Hi Eirik,

Unfortunately, we can not determine what is going based on this description.

Could you please prepare and send us a sample project that reproduces this behavior and we will debug it immediately in order to see what is going on.

In order to be able to attach files, you will need to ask your licence holder to add you to the list of licensed developers.

We are looking forward to hearing from you.

Best wishes,
Ross
the Telerik team

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

0
Kirie
Top achievements
Rank 1
answered on 01 Aug 2011, 01:57 PM
I am sorry, but i do not know who's responsible to add developers in my company (which is huge).
Here is a working code example: 

http://dl.dropbox.com/u/4552022/SilverlightApplication1.zip
0
Rossen Hristov
Telerik team
answered on 01 Aug 2011, 02:26 PM
Hi Eirik,

Regarding the project, you can change the property type from IList to ICollection and it should start working.

Regarding the licensing issues...

Please, note that we can not always guarantee fast and timely support by a Telerik support officer on our public forums. In case you have obtained a copy of our controls through the company you work for, please ask the purchase holder to add you as a License Developer to the purchase. This will give you full access to the products your company has purchased, to our downloads section, and to our support ticketing system. Additionally, all your questions will be reviewed according to the license you have. More information on License Developers you can find here: www.telerik.com/faq.

Thank you for your understanding.

Greetings,

Ross
the Telerik team

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

0
Kirie
Top achievements
Rank 1
answered on 01 Aug 2011, 03:12 PM
Thank you for your swift reply.

I will investigate who is the purchaser, and ask him to add me to the Licensed Developer list. 

Is there any reason that IList is not working, and that i need to use ICollection?

Edit: I tried changing to ICollection, it did not work. Still same problem.

Edit2: Got it working by creating a new object in the AddingNewDataItem event.

Regards
Eirik
0
Rossen Hristov
Telerik team
answered on 02 Aug 2011, 07:59 AM
Hi Eirik,

We have fixed several issues since the official Q2 Release. Could you please try with our Latest Internal Build from yesterday. I have tested your project with it and it seems to work.

Let us know if you manage to crash it with the Latest Internal Build from August 1st. Also, tell us the exact steps that we need to take in order to reproduce it on our end.

Thanks in advance.

Kind regards,
Ross
the Telerik team

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

Tags
GridView
Asked by
Kirie
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Kirie
Top achievements
Rank 1
Share this question
or