Telerik Forums
UI for WinForms Forum
7 answers
1.9K+ views
Hi

I was looking for a way to add items to a radcombobox with a value and a different displayvalue.

For example Display member with Customer Name & Value member with Customer Id

Thanks

Raj
clint
Top achievements
Rank 1
 answered on 31 Oct 2014
3 answers
166 views
The latest release - Q3 2014 - has broken the dropdown control unless we are overlooking something.

Create a RadForm, drop a RadDropDownList control on the form.

Add _8_ items (enough so it goes beyond what shows in the list when you click the drop down) to the dropdown list.

Run the program.

Click the dropdown and you see items 1 through 6, now try to scroll to see items 7 and 8.  The dropdown immediately closes.

Unless we are overlooking something this seems fairly serious as it more or less breaks any app that uses the simplest of dropdown.
Stefan
Telerik team
 answered on 30 Oct 2014
0 answers
94 views
Hi,
I have a main grid on a winform.
When adding rows to it(ONCE) i use a background thread that creates a 2nd grid programmaticlly and adds the rows to it. when it finishes, the main thread calls MainGrid.AddRange(backgroundgrid.rows.toArray()).
It gets the info right, but the values aren't refreshed.
It seems to only refresh when the UNSEEN rows are shown:
When i scroll down the values that weren't shown(below) are correct, when scroll back up it refreshed the grid also.

How do i fix this situation?
NO DB no Dataset no datatable.
Zeev
Top achievements
Rank 1
 asked on 30 Oct 2014
1 answer
85 views
Hi,
I have a radgridview and it has 5 columns and 36 rows
(1 and 2 columns are GridViewTextBoxColumn and
 4 and 5 columns are GridViewComboBoxColumn)
.I wanna add the images as the combobox's items, so I search and
apply the source base on this example.
http://www.telerik.com/forums/gridviewcomboboxcolumn-that-displays-only-icons-images

When I finished the code and run it, some problems happened.

First, in the first picture,
When the scroll of the table is moved down, some cells not conserned with
image combobox display the images(solid dash line image).
I wanna know how to fix that.

Second, in the second picture, when I open and select the
image of comboBox, some texts are shown as figure.
Although these texts are disappeared if I clicked other place,
but I don't want skip that step. (In upper example source, that has same reaction.)
Can I fit that? If it could, I wanna know how to remove that step.

Third picture is about my source.
Please point out my problem.
And if it is possible, I wanna example source about
successful case of my problems.

Thank you.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Oct 2014
3 answers
401 views
I want to sort the grid only on Header click. In sorting when ever we modify the value of the sorted column the rows get auomatically sorted based on the value.
I just want to avoid this auto sorting during modifying the cell values, it should happen only on header click. Is this possible in RadGridView for win form ?
Dimitar
Telerik team
 answered on 30 Oct 2014
6 answers
423 views
Hi,

Is there a sample that shows me how use use a RadGridView in Unbound Mode, 4 Levels deep, using Load-On-Demand?
I found samples for Unbound Mode, samples for Load-On-Demand, but nothing for a combination of the two.

Thanks...
Henri
Top achievements
Rank 1
 answered on 30 Oct 2014
1 answer
79 views
Hi,

I am using the gridview Q1'14 in unbound mode and with load-on-demand.
Populating the grid and loading the child rows in the RowSourceNeeded Event works fine.

Adding new Rows in the MasterTemplate with Rows.AddNew works as well.

But adding a Row in MasterTemplate.Templates[0].Rows.AddNew always returns null.

Am I forgetting something?

Thanks in advance for a qujick response!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Oct 2014
1 answer
108 views
Hi,

I am using the GridView in Unbound Mode, and with load-on-demand.
Populating the grid, and loading the children in RowSourceNeeded works fine.

Adding a record in the mastertemplate with Rows.Addnew works as well.
But adding a record to a child level template with grid.MasterTemplate.Templates[0].Rows.AddNew always returns null.

Am I forgetting something?

Thanks in advance for a quick response!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Oct 2014
10 answers
1.2K+ views
Hi,

I would like to suggest an Inputbox for the Winforms control set. I think if you offer a radmessagebox it would only be normal to include an Inputbox.

Thanks
Guy
Top achievements
Rank 1
 answered on 30 Oct 2014
1 answer
170 views
Hi,

Sometimes I'm pedantic when it comes to the appearance of the application.
I have a RadGridView called cGrid with events:

private void cGrid_CellFormatting(object sender, CellFormattingEventArgs e)
{
    // simple background
    e.CellElement.BackColor = Color.FromArgb(186, 220, 230);
    e.CellElement.BackColor2 = e.CellElement.BackColor;
    e.CellElement.BackColor3 = e.CellElement.BackColor;
    e.CellElement.BackColor4 = e.CellElement.BackColor;
    e.CellElement.DrawFill = true;
}

private void cGrid_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    // border color from background
    Color color = e.CellElement.BackColor;
  
    // but if IsCurrent or IsSelected the border color should be red
    if (e.CellElement.IsCurrent || e.CellElement.IsSelected)
    {
        color = Color.Red;
    }
  
    // single border for nice looking
    e.CellElement.BorderBoxStyle = BorderBoxStyle.SingleBorder;
  
    // solid for using only one color
    e.CellElement.BorderGradientStyle = GradientStyles.Solid;
    e.CellElement.BorderColor = color;
  
    e.CellElement.DrawBorder = true;
}



And set:
this.cGrid.EnableHotTracking = false;
this.cGrid.HideSelection = true;
this.cGrid.MultiSelect = true;
this.cGrid.SelectionMode = Telerik.WinControls.UI.GridViewSelectionMode.CellSelect;



And now I see by selecting multiple cells (check attachment).
For cells ch last selected row can not see the bottom border.
Do you know a trick to solve this "problem"?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Oct 2014
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?