Can DevExpress repositoryItemCheckedComboBoxEdit support single selection? - combobox

Hi
I am using the repositoryItemCheckedComboBoxEdit in DevExpress. But I want it only supports single selection not multiple selection it supports by default. Is there any setting property could help on this?
Thanks!

By default, the CheckedComboBoxEdit works in multiselect mode only. We suspect that if the end-user wants to select a single item, it is necessary to use the common ComboBoxEdit.

Related

how to show multiple fields in a single column editor in extjs grid

We are building an application which is using the grid to show records. Now we cam across with a requirement to show 2 fields(1combo and 1 textfield) in a single cell editor. we have tried with 2columns with 2editors but the problem here is we need to enable the both cell editors at the same time.
this link http://blog.platinastudio.com/?attachment_id=2485 can be helpful for understanding the requirement clearly.
any help will be greatly appreciated!!
Thanks
Sanjeeva
If you are able to use two columns and 2 editors, then you should just need to do the wiring manually, and it should work okay.
For each editor, listen for the beforeedit event
In the handler, call startEdit on the other editor
You'll need to configure the editors to not reset on blur probably, and there may be additional configuration needed to get the interactions right, but in theory it should work out.
If you are trying to use two editors in the same cell, then you can mention xtype:'container' in the editor configuration of the column and add your fields in this container.
An example of this is given here

WPF Toolkit Propertybox does not display nullable Enums

I'm currently using the Extended WPF Toolkit and from that i'm using the Propertybox. This box displays all properties of a bound element. While this works great, there is one problem. I'm using Nullable... so it does not display this enum correctly (it just gives a textbox). If i changed the enum to a normal enum (not nullable), then it displays the items correctly in a combobox.
To solve this, i tried the IItemsSource interface as described in the documentation, but this won't allow me to add a "null" value either.
I know i could solve this by adding a fake "null" value to my enumlist, but i would like to avoid this. Does anyone here know how i could make my nullable display correctly?
Kind regards
Tom
Control documentation:
https://wpftoolkit.codeplex.com/wikipage?title=PropertyGrid
UPDATE SOLUTION:
I "solved" it by using a different control. http://www.codeproject.com/Articles/87715/Native-WPF-4-PropertyGrid. This grid supports it out of the box.
SOLUTION: I "solved" it by using a different control. https://github.com/xceedsoftware/wpftoolkit. This grid supports Nullable out of the box, and has some filtering functions for the properties you want to display that are not included in the Community Edition of the WPF Toolkit.
Update 2020: Added link to current webpage.

Shared Column Headers in XamDataGrid via GUI at runtime

How does the user change the columns in a XamDataGrid such that it sets the ColumnSpan and/or RowSpan properties? I know how to do this programatically, but I can't seem to figure out how to do it via the keyboard and mouse at runtime. Are there any options I need to set on the grid in order for this to work?
By default this isn't supported in the XamDataGrid. Doing this programmatically is the only way to achieve this so if you have some mechanism in place to change these programmatically during runtime then you can do it but it's something you'll need to write yourself.
This does sound like a very useful feature though so you should head on over to the Infragistics site and submit a feature request for this.
https://www.infragistics.com/my-account/feature-request/

DevExpress column a multi select field

I'm trying to create a drop down / combo box in dev express with check boxes, to allow the user to select multiple options.
Something like this:
I've found some documentation but nothing that tells me what to do. Can anyone help?
Use checkedComboBoxEdit control and use it's drop down list as you want..
Refer - CheckedComboBoxEdit - add AllowMultiSelect property devexpress thread and attached example..
you can easily implement the required logic manually using a piece of code. Simply handle the SelectedIndexChanged event and check the selected items.
Hope this help...

wpf - display, update, insert modes

Is there a simple way in WPF to create a usercontrol with different modes for display, update or insert a new object?
I'm thinking (coming from a web background) something like a listview control where you can create display templates for the different modes. You can then quickly change the mode, depending what you need to do.
Any links that points me in the right direction is very welcome.
Thanks
The closest option to what you're thinking would to be to use a DataTemplateSelector. Set ListView.ItemTemplateSelector to an instance of your class, and then based on the current mode of your app you can return the appropriate template for that mode.
You might also consider using the VisualStateManager to create states for your control for each of the modes, and then change the template (or parts of the template) based on the state of the control.

Resources