This question is locked. New answers and comments are not allowed.
Hi
I'm trying to create a databound Listbox in a radGridView. I have come across some similar code you posted up on this thread (http://www.telerik.com/community/forums/silverlight/general-discussions/listbox-with-checkboxes.aspx) which places a Listbox in GridViewDataColumn.CellEditTemplate. Selecting the items are fine. However, once you have finished selecting items in the cell, click anywhere else and then come back to edit the cell, the selected items are not highlighted.
It looks like the ListBox binds itself to a new instance of its ItemSource everytime you enter the CellEditTemplate. I have tried specifying the ItemSource using xaml but the same thing still happens.
Any help to make the ListBox.SelectionItems persist would be much appreciated. The code I got from you in the afore mentioned thread can be found here: http://www.telerik.com/ClientsFiles/191387_listboxeditorcommaseparated.zip
p.s. I was also curious about 2 things in the example
1. Click on a ListBox item (but not on the checkbox) does not always tick the corrosponding checkbox. This is sporatic.
2. Are there many differences between the Telerik listbox and the normal windows Listbox? I cant seem to get the example to work with a Telerik listbox.
Thanks for your help.
I'm trying to create a databound Listbox in a radGridView. I have come across some similar code you posted up on this thread (http://www.telerik.com/community/forums/silverlight/general-discussions/listbox-with-checkboxes.aspx) which places a Listbox in GridViewDataColumn.CellEditTemplate. Selecting the items are fine. However, once you have finished selecting items in the cell, click anywhere else and then come back to edit the cell, the selected items are not highlighted.
It looks like the ListBox binds itself to a new instance of its ItemSource everytime you enter the CellEditTemplate. I have tried specifying the ItemSource using xaml but the same thing still happens.
Any help to make the ListBox.SelectionItems persist would be much appreciated. The code I got from you in the afore mentioned thread can be found here: http://www.telerik.com/ClientsFiles/191387_listboxeditorcommaseparated.zip
p.s. I was also curious about 2 things in the example
1. Click on a ListBox item (but not on the checkbox) does not always tick the corrosponding checkbox. This is sporatic.
2. Are there many differences between the Telerik listbox and the normal windows Listbox? I cant seem to get the example to work with a Telerik listbox.
Thanks for your help.