Binding GridPresenter to List<...> and UXComboBox within grid cells bound to different item source

3 replies. Last post: September 22, 2010 6:36 AM by Cyle Witruk
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Cyle WitrukMember

Hi,

Story: I'm trying to create a little UI where a user can define comparison rules.  I want there to be three columns: Left, Operator and Right.  For "Left" and "Operator" there are fixed enumerations (exposed as properties on the ViewModel) that the user can select from, which I want to be done via an inline drop-down list in the column.  The contents of "Right" will differ based on the combination of selections of "Left" and "Operator" (not worried about that now).  I would also like all columns to only display text (instead of combo boxes) when not in edit mode.

Additional Requirements: The grid is mapped to an observable list of complex objects; e.g. the combo box items are objects of type MyObj which should be populated from a fixed enumeration from the ViewModel.  The combo box selected values should be bound to the corresponding property of type MyObj on the complex object represented in the row. 

The reason that I've chosen to begin with the GridPresenter is I want to take advantage of the "AllowAddNew" functionality instead of writing custom logic to deal with CRUD operations on the comparison rules list.

Question: What is the best way to go about this using the controls contained within the ClientUI suite?  Should I be using a ComboBox?  Is this possible with GridPresenter?

Thanks,

Cyle

All times are GMT -5. The time now is 7:33 AM.
Previous Next