Hello
At this time I'm creating in unbound mode the ItemPropertyDefinition's based on the information I get for a list called 'fieldsInfo'.
ItemPropertyDefinition f = new ItemPropertyDefinition();
f.PropertyName = column.UniqueName;
f.DisplayName = fieldsInfo.Label;
f.PropertyType = ((Telerik.Windows.Controls.GridViewBoundColumnBase)(column)).DataType;
filterArray.Add(f);
.......
this.dataFilter.Source = null; //Unbound mode
this.dataFilter.ItemPropertyDefinitions.Clear();
this.dataFilter.ItemPropertyDefinitions.AddRange(filterArray.AsEnumerable());
Now I would need to create dinamically custom editors (ComboBoxes) for some of this fields that show a text and set a value to send back to server. Of course ComboBoxes will be fed from a list with text and value properties.
It is for a generic control and I didn't know which field will be affected at design time.
The question is, could I do that in code without EditorTemplateRules in XALM?
Thanks in advance
Martin
At this time I'm creating in unbound mode the ItemPropertyDefinition's based on the information I get for a list called 'fieldsInfo'.
ItemPropertyDefinition f = new ItemPropertyDefinition();
f.PropertyName = column.UniqueName;
f.DisplayName = fieldsInfo.Label;
f.PropertyType = ((Telerik.Windows.Controls.GridViewBoundColumnBase)(column)).DataType;
filterArray.Add(f);
.......
this.dataFilter.Source = null; //Unbound mode
this.dataFilter.ItemPropertyDefinitions.Clear();
this.dataFilter.ItemPropertyDefinitions.AddRange(filterArray.AsEnumerable());
Now I would need to create dinamically custom editors (ComboBoxes) for some of this fields that show a text and set a value to send back to server. Of course ComboBoxes will be fed from a list with text and value properties.
It is for a generic control and I didn't know which field will be affected at design time.
The question is, could I do that in code without EditorTemplateRules in XALM?
Thanks in advance
Martin