We are using dynamically creating combo column. please give us some suggestions:
Purposes:
1. dynamic columns
2. dynamic columns with combox box.
3. after selection, combobox will effect other columns (calculation)
It is impossible to declare GridViewComboBoxColumn in xaml because of columns is dynamic.
There will have serveral dynamic columns which are combobox and each row has different itemsource.
We have tried following possible workaround but it fails including
1. blank cell when loading
2. selection is not reflect back to cell.
Event
Issue see 1.jpg.
Please advise us for how to resolve this issue.
After a lot of reference, there are some workaround, but still failed:
1. create custom cell control and override createCellEditTemplate Method.
2. using xml.loader for cellEditTemplate xml.
3. using dynamic runtime object when dropdown list is open.
4. using datacontext and dataproxy to dropdown list.
5. assign itemssouce to combobox.
6. set itemssourcebinding to combobox.
After all. The precondition is those columns are dynamic. so some solutions may not working for our project.
Please give us some solutions.
Thanks
Purposes:
1. dynamic columns
2. dynamic columns with combox box.
3. after selection, combobox will effect other columns (calculation)
It is impossible to declare GridViewComboBoxColumn in xaml because of columns is dynamic.
There will have serveral dynamic columns which are combobox and each row has different itemsource.
We have tried following possible workaround but it fails including
1. blank cell when loading
2. selection is not reflect back to cell.
Event
private
void
RadTreeListView1_DataLoaded(
object
sender, System.EventArgs e)
{
GridViewComboBoxColumn column =
new
GridViewComboBoxColumn();
column.SelectedValueMemberPath =
"TestID"
;
column.UniqueName =
"Hello"
;
column.ItemsSourceBinding =
new
Binding(
"MySchool"
);
column.DataMemberBinding =
new
Binding(
"ID"
);
column.DisplayMemberPath =
"Name"
;
this
.RadTreeListView1.IsSynchronizedWithCurrentItem =
true
;
this
.RadTreeListView1.Columns.Add(column);
// TODO: Add event handler implementation here.
}
Issue see 1.jpg.
Please advise us for how to resolve this issue.
After a lot of reference, there are some workaround, but still failed:
1. create custom cell control and override createCellEditTemplate Method.
2. using xml.loader for cellEditTemplate xml.
3. using dynamic runtime object when dropdown list is open.
4. using datacontext and dataproxy to dropdown list.
5. assign itemssouce to combobox.
6. set itemssourcebinding to combobox.
After all. The precondition is those columns are dynamic. so some solutions may not working for our project.
Please give us some solutions.
Thanks