Telerik Forums
UI for WinForms Forum
8 answers
1.9K+ views
I have a multi-column combo box which is populated via a LINQ query to an entity in my context

 //Grab the data from the table specified in the Model project
                    var query = from i in db.ItemTypes.AsNoTracking()
                                where i.Active == active
                                orderby i.Code

                                //This allows a switch between the ITNBR and the Description
                                select new { i.ID, i.Code, i.Description };

                    if (query.Count() > 0)
                    {
                        //Now we can bind the results to the control
                        cbo.DataSource = query.ToList();
                        cbo.ValueMember = "ID";
                    }

Which works fine and the data is populated correctly. I have used similar to populate other multicolumn combos elsewhere too.

As the form is instanciated the selected index is set to -1
The problem is when I go radMultiColumnComboBoxItemType.SelectedValue = 3 the SelectedValue still = null.

Any ideas folks?
Thanks.

Chris Kirkman
Top achievements
Rank 1
 answered on 27 Mar 2018
1 answer
272 views

Hi there,

 

Is there any way to select a row in RadGridView using an object as index?

 

Thank you and Regards!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Mar 2018
3 answers
466 views

Hello there, 

I meet the following issue.. I've created a custom theme in Visual Style Builder and I am trying to apply it in runtime using the following line: 

Telerik.WinControls.ThemeResolutionService.LoadPackageFile("C:/.../CustomTheme.tssp");
Telerik.WinControls.ThemeResolutionService.ApplicationThemeName = "CustomTheme";

The theme is being applied to most of the controls but not to all. I have solved this issue by subscribing to  "Telerik.WinControls.ThemeResolutionService.ApplicationThemeChanged" event and there I reset manually the properties that are not being overridden by the theme.

But I guess that it's not necessary and I am doing something wrong.

I will give an example of my issue:

If I add a new RadButton to my Form and leave its Fill.BackColor to 'Transparent', then the theme is being applied properly in runtime. But if I change its BackColor from WinForms Designer, then the theme does not override its value and needs reset in ApplicationThemeChanged event with the method: 

MyRadButton.ButtonElement.Fill.ResetValue(Telerik.WinControls.Primitives.FillPrimitive.BackColorProperty);

Any ideas?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Mar 2018
4 answers
269 views

Hello,

I need help.

I'm using a radBulletGraph.

Set BackColor1 and 2 of bulletGraphQualitativeBar1 to different colors, BrushType is gradient, GradientStyle is linear.

Gradient is from top to bottom, I want left to right, or right to left. What can I do?

 

Kind regards

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Mar 2018
1 answer
140 views

Hello,

how can I hide the "DragButton" or however it was called, on the left?

Kind regards

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Mar 2018
2 answers
78 views

Hello,

I am looking to set up my TreeView in such a way as to have the previously-selected node collapse when a different node at the same level is chosen. For example, if I had a tree like this:

 

RootNode

|_ NodeA

|     |_Node1

|     |_Node2

|_NodeB

|     |_Node3
|     |_Node4

 

If I choose NodeA, NodeB (if expanded) would close, and NodeA would expand. I want to do this so that the end user doesn't get lost with many nodes expanded. Any ideas?

 

Thanks,

Matt

Matt
Top achievements
Rank 1
 answered on 26 Mar 2018
1 answer
115 views
The size of the border is not the same and there is a problem.
When the outer border is 3 and the inner border is 1, the top of the border will protrude and the bottom will lack pixels.
Hristo
Telerik team
 answered on 26 Mar 2018
1 answer
1.4K+ views

So I have a DataTable object that has data with rows & columns. My question is do I convert that into a RadGridView and then try to export it to Excel? Is that the easiest way to do it? Or is there another way I can export the DataTable object without having to convert it to a RadGridView? If so, how can I go about doing that? Is it using RadSpreadStreamProcessing library?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Mar 2018
3 answers
629 views
This is for moving a pin to a precise location on the map.  I saw the example of moving a pin and dropping it to a list box, but not to another location on the map, then save that new locations coordinates.  Thanks!
Hristo
Telerik team
 answered on 26 Mar 2018
4 answers
198 views
I have a scenario where I need to allow users to edit the header text of the columns in my GridView. I'm not sure if this can be done but it would be nice to have the header text change to a text box when the user double clicks on the header.
Dimitar
Telerik team
 answered on 26 Mar 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?