Hi,
I was looking through your documentation searching for a way to have RadGrid Checkboxes with bool columns (a thing the MS DataGrid does out of the box).
And by this is stumbled over the topic Insert/Update/Delete...Data Editors.
What I saw there was really interesting.
There is a sample for a ComboBox column.
No XAML at all - but interesting code behind.
.....Columns[2].EditorSettings....
This looks extreme like ASP.NET where I have to access some unnamed HTML things and change values.
I just think about the co worker who decides to change the column order for some reason :=
And what I see here (beside the unsafe and "design == extremely code bound" thing) looks like a windows form application where I had to do it this way.
The "XAML Way" would be a column whit some kind of a template (style, datatemplate, whatever) where the databinding is defined to some source.
This Is what I do, if I build something in "native XAML" (without third party controls).
For RAD controls I would expect - something like a "RadGridComboColumn".
Yes - I found something by accident - GridViewComboboxEditor.
I'm not sure if this is what I think about because the documentation is a bit short.
>>Represents ComboBox editor for GridViewCell
I'm (after the fun with editing) not willing to find this out by trial and error (I'm tired) - but maybe tomorrow I can find an example about it.
Regards
Manfred
I was looking through your documentation searching for a way to have RadGrid Checkboxes with bool columns (a thing the MS DataGrid does out of the box).
And by this is stumbled over the topic Insert/Update/Delete...Data Editors.
What I saw there was really interesting.
There is a sample for a ComboBox column.
No XAML at all - but interesting code behind.
ComboBoxEditorSettings comboBoxEditorSettings = new ComboBoxEditorSettings(); |
comboBoxEditorSettings.ItemsSource = GetCountries(); |
((GridViewDataColumn) this.radGridViewEditors.Columns[2]).EditorSettings = comboBoxEditorSettings; |
This looks extreme like ASP.NET where I have to access some unnamed HTML things and change values.
I just think about the co worker who decides to change the column order for some reason :=
And what I see here (beside the unsafe and "design == extremely code bound" thing) looks like a windows form application where I had to do it this way.
The "XAML Way" would be a column whit some kind of a template (style, datatemplate, whatever) where the databinding is defined to some source.
This Is what I do, if I build something in "native XAML" (without third party controls).
For RAD controls I would expect - something like a "RadGridComboColumn".
Yes - I found something by accident - GridViewComboboxEditor.
I'm not sure if this is what I think about because the documentation is a bit short.
>>Represents ComboBox editor for GridViewCell
I'm (after the fun with editing) not willing to find this out by trial and error (I'm tired) - but maybe tomorrow I can find an example about it.
Regards
Manfred