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

Bound ComboBoxColumn failing after LoadLayout

1 Answer 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Baldwin
Top achievements
Rank 1
Baldwin asked on 05 Aug 2010, 11:31 AM
Hi.

I've encountered the following strange bevaviour in my GridViews.

Some GridViews in my application use bound ComboBox columns (NOT multi column).
Recently, I added functionality for saving/restoring the grid layout to/from files, using SaveLayout() and LoadLayout() functions of the grid.
Now, it seems, that after calling LoadLayout, my ComboBox columns are no long working properly. When I try to edit the content, I can see the DrowDown-Arrow button, but no content is displayed. The same code works perfectly when I leave out the LoadLayout() call.

I've debugged the code a bit, and it seems to me, that the combo box column "forgets" its data source (assigned during design time) upon calling LoadLayout(). If I re-assign the data source to the column in code after calling LoadLayout(), everything's fine again.

I can live with this workaround, but still wanted to ask if this is a known issue, or if I'm doing something wrong.

Thanks

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 10 Aug 2010, 04:05 PM
Hello Baldwin,

Thank you for writing.

I managed to reproduce the described issue. It seems that the data source reference is not serialized correctly and this affects the combobox column, as you have noticed. We will do our best to address this issue in a future release. Currently, you can workaround this through manually resetting the data source after loading the layout.

Thank you for bringing this issue to our attention. I have updated your Telerik points. Let me know if you have any other questions.

Kind regards,
Martin Vasilev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Baldwin
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or