Is there any method like this:
product.supplier = combobox.SelectedItem as suppier
in devexpress LookUpEdit?
I believe you can use approach demonstrated in the following KB-article:
How to obtain the selected row from the LookUp editor
PS. The official DevExpress Support Center is much better than Google or Stackoverflow when you are searching anything related to DevExpress controls.
Related
I have enabled multiple selections in the radDropDownList with below code.
radDropDownList1.DropDownListElement.SelectionMode = SelectionMode.MultiExtended;
This list has 10 options and each user can choose one to 10 of them
Now I want to retrieve the user selection that I saved in an array list
ArrayList UserChoose = new ArrayList();
UserChoose = getUserChoose("username");
How can I through the code,Return user selections to the radDropDownList?
radDropDownList.Select = UserChoose ?
There is 2 ways how you can achive that. It will be little complex but it will work for you I believe.
Way 1:
As I think, you might not able to do that using only radDropDownList. If still you want to do that using radDropDownList then you have to customized radDropDownList like in the telerik dicussion forum. Source code link is here.
Way 2:
You can use RadMultiColumnComboBox. It will be easy to implement. At the same time it has more features. Check link of telerik over here=>RadMultiColumnComboBox Documentation.
Note: Personally I support the latter one rather than the former one.So, way 2 is much more effective.
The easiest replacement for a Windows Forms dropdown with multiple selection using Telerik is the RadCheckedDropDownList control, that is intended to provide that particular functionality.
It is available since version 2018.1.116.
In Microsoft Ribbon Control, there is RibbonRadioButton where we can use on the Ribbon tab.
Are there equivalent in DevExpress WPF Controls?
As an equivalent of RibbonRadioButton you can use the BarCheckItem. Bar check items can be combined into a group via the GroupIndex property. Checking one item within a group automatically unchecks the other items. For more details, please read this article: The List of Bar Items and Links
P.S. Check if DevExpress Search Engine is able to answer questions faster than I do.
Yeah I am looking for some C# code of a multi-column TreeView where each cell can be inline-edited and also dragging the rows is supported.
Do you have any good examples of such a custom component?
You can check out the TreeListView example, that gives you a good intro into the GridViewRowPresenter that can be used in this scenario.
http://msdn.microsoft.com/en-us/library/ms771523.aspx
This gives you multi-column and editing can easily be done with databindings in the template.
For D&D you have to look somewhere else. But probably this blog entry of Bea Costa you can adapt to you're needs http://bea.stollnitz.com/blog/?p=53.
hth,
Martin
SharpDevelop has a TreeViewEx that supports multi-column, etc...
I want my ListBox to have columns, and one of those columns have to be a clickable URL.
How can I achieve this?
You can't do it in a ListBox. You can create your own control, or settle for another existing one. Based on the question, I'd guess you're not yet at the stage where you're creating your own controls. That takes a pretty good understanding of existing controls and the way they work under the covers (but a google search for creating Winforms Controls should yield plenty of instructions.) Edit added It looks like te 4th and 5th links in combination on that google search should get you what you need. You can create your own user control and then do an array of them)
As far as for other possible alternatives, have you considered a DataGridView? A DataGridView can have a hyperlink and it can have checkbox columns, so this would be one possible alternative.
Here's a link for having a Hyperlink column in a DataGridView.
Well, it is possible by using the CustomTabOffsets property (unreliable) or the DrawItem event. And implementing the MouseDown event to find out if that particular 'column' was clicked.
But there's little point, a ListView control with View = Details gives you the same functionality.
I'm very new to WPF, and am trying to set the datasource (which the WPF Grid doesn't have as a property) of my grid to take a List. Does anyone have any code examples of how to do this. I have googled it, but can't find any really good examples.
(Oh, and can anyone suggest a good site for all round WPF Code examples?)
Thanks
If you're referring to a WPF Grid, you can't bind it to data; it's meant for layout purposes only; you might want to look into one of the controls that inherit from ItemsControl, such as ListView.
The property you'd bind your list to, is called ItemsSource.
The other control you might be thinking of is the GridView
There's also the DataGrid (Note old link) in the WPF Toolkit which implements a lot of the same functionality as the WinForms DataGridView