I am converting a windows form application to wpf that allows the user to fill in a grid by clicking a cell, which opens a menu below the cell, then clicking a menu item. After the user clicks the menu in the first column, the menu choice determines which menu appears in the second column and so on for the third column. I have the menus running by attaching each menu as a custom editor. Each row in the second and third columns get a unique menu using the Editor Style Selector which is working when the field layout initializes. The last piece I need to make this all work is to be able to somehow manually cause the Editor Style Selector to run after I get a menuitem choice in a running grid.
How do I programmatically trigger an Editor Style Selector event?
Hello Sue,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hello Stefan,
Thanks for the response. The second link definitely helped in achieve what I was looking for.
Sue.
Thank you for your post. I have been looking into it and I can suggest you see these two forum thread:
http://es.infragistics.com/community/forums/p/74264/375525.aspx
and
http://es.infragistics.com/community/forums/t/60097.aspx
where similar questions have already been discussed.
has there been a solution for this?? Either in XAML or Code behind??
Just like most styles can use a styletrigger/DataTrigger - how can a styleselector have the same behaviour??
Any help in this aspect is much appreciated..
Thanks,Sue
I have a similar issue in that the editor I display in field 2 depends on the value entered in field 1. In some situations I want a XamComboEditor and in others a XamTextEditor. I used the EditorStyleSelector of the FieldSettings and it works for the initial values.
However, it doesn't respond to a change in value of field 1.
Surely for this behaviour I should't have to clear the datasource and re-instate it. There has to a better way.
And I would appreciate a timely reply from Infragistics on this - as replying in 3 weeks time isn't of much use.