This old code (below) still works, but I get compile warnings for the obsolete items. How would I change this code to the new way of doing things?
At this point I'm wondering if we will even be able to do what we did up to now. We changed the column EditorSettings based on the type of data that was to be entered in the cell where the user was currently entering data. Since we have different types of data in each row of a column (dates, combo values, strings, currency etc.) we just pogrammatically adjusted the editor settings based on the data that needed currently to be edited. So in the cells of a column, depending on the row, the user might be entering a date, or he had to pick a value out of a combo box.
But now since you have a GridViewComboBoxColumn class now, this may not be possible anymore, which would severly impact us.
This is the code I would like to modify.
ComboBoxEditorSettings comboBoxEditorSettings = new ComboBoxEditorSettings();
comboBoxEditorSettings.DisplayMemberPath = "txtCmbString";
comboBoxEditorSettings.SelectedValuePath = "txtCmbString";
comboBoxEditorSettings.ItemsSource = _cmbAuswahl.ComboboxRecordsColl.Where(c => c.txtKey == txtKey);
((GridViewDataColumn)this.UIRadGridFormular.Columns["UIValue"]).EditorSettings = comboBoxEditorSettings;
Thanks for any insights. Gerry.
At this point I'm wondering if we will even be able to do what we did up to now. We changed the column EditorSettings based on the type of data that was to be entered in the cell where the user was currently entering data. Since we have different types of data in each row of a column (dates, combo values, strings, currency etc.) we just pogrammatically adjusted the editor settings based on the data that needed currently to be edited. So in the cells of a column, depending on the row, the user might be entering a date, or he had to pick a value out of a combo box.
But now since you have a GridViewComboBoxColumn class now, this may not be possible anymore, which would severly impact us.
This is the code I would like to modify.
ComboBoxEditorSettings comboBoxEditorSettings = new ComboBoxEditorSettings();
comboBoxEditorSettings.DisplayMemberPath = "txtCmbString";
comboBoxEditorSettings.SelectedValuePath = "txtCmbString";
comboBoxEditorSettings.ItemsSource = _cmbAuswahl.ComboboxRecordsColl.Where(c => c.txtKey == txtKey);
((GridViewDataColumn)this.UIRadGridFormular.Columns["UIValue"]).EditorSettings = comboBoxEditorSettings;
Thanks for any insights. Gerry.