Telerik Forums
UI for WinForms Forum
4 answers
1.2K+ views

I am using RadGridView. I insert datas to RadGirdView like this:

// I am using Lambda Expression to get datas from Database.
var o = _vt.persons;
radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
radGridView1.Columns.Clear();
radGridView1.Rows.Clear();
radGridView1.MasterTemplate.AllowAddNewRow = false;
radGridView1.Columns.Add(new GridViewDecimalColumn("No"));
radGridView1.Columns.Add(new GridViewTextBoxColumn("Puanı"));
radGridView1.Columns.Add(new GridViewTextBoxColumn("Sonuç"));
radGridView1.Columns[0].Width = 8;
radGridView1.Columns[0].ReadOnly = true;
{
    var enumerable = o.ToArray();
    foreach (var m in enumerable)
    {
        var r = radGridView1.Rows.AddNew();
        r.Cells[0].Value = m.no;
        r.Cells[0].Tag = "no";
 
        r.Cells[1].Value = m.puani;
        r.Cells[1].Tag = "puani";
 
        r.Cells[2].Value = m.sonuc;
        r.Cells[2].Tag = "sonuc";
    }
}
radGridView1.ClearSelection();
radGridView1.CurrentRow = null;

You knoew, when double-click on a cell, it forms to editable mode. You enter a new value an when you click anywhere on the form or click enter, new value appears in the cell. But when I lick anywhere on the form or click enter, I want to save new value to the database. For this, I am using CellEndEdit event, but I did not manage to save new value to database.

 

Kind regards,

Mehmet.

 

SarperSozen
Top achievements
Rank 1
 answered on 12 Feb 2017
3 answers
114 views
I am unable to select a theme for the RadDiagram.  I am trying to apply the Windows8Theme, but the dropdown list in the properties windows only shows: Reset and ControlDefault.  I did apply the to the form, but for some reason I can't get it to apply to the diagram.
Dimitar
Telerik team
 answered on 10 Feb 2017
1 answer
426 views

I have a situation where I'd like to theme the RadTextBox differently when the text box is set to ReadOnly = True. I currently have a custom theme for the application that applies the general theme I want which is basically that when a text box is editable, it's the standard white background with black text, when it's disabled, it's a dark gray background with black text. However, I have a form with a number of text boxes on it where I need some of the capabilities you get with an enabled text box (copy-able, scroll-able, a border, etc.) that you don't get with, say, a label but yet I don't want the user to actually be able to change anything and I'm not willing to change the basic look of the text box when it's disabled as that's useful elsewhere in the application.

Setting the text box to ReadOnly functionally works perfectly from a functional viewpoint, but I'd like a visual indication to the user that the text box is not one that they can edit. Now, I understand that this could be done a number of ways - I could, for example, easily write code that sets the background and foreground colors subtly different. Writing code to do this basically defeats the idea of the theme however. Ideally, I was hoping that in the Element States I could add a ReadOnly state and be done with it, but when I click on the Add button in the Available States dialog, it doesn't appear to be an option.

So, my question is: am I missing something here? Is there some way to add to the Available States list? If not, is there a way I could maybe create a repository item that I could then apply to the control directly in code, basically manually themeing the control? This last way is not much different than just coding the colors myself, but at least the settings are in the theme and the other devs here don't have to worry about the exact colors, so there's that - also, when we make additional themes just swapping out the theme file would adjust the colors as well. Any guidance you can give on this would be appreciated.

Dimitar
Telerik team
 answered on 10 Feb 2017
14 answers
403 views
Why is the GridViewDateTimeColumn not showing like the raddatetimepicker ?

How can i put a raddatetimepicker in a column?
Dimitar
Telerik team
 answered on 10 Feb 2017
2 answers
124 views

Hi,

I created a Tree View inside Page View and manually Make NODE. now

I would like to open a new tab when you click on a node that is related to a specific form.
is it possible?
The sample was up to me to create?

Please See  My Attachment.
saeid
Top achievements
Rank 1
 answered on 10 Feb 2017
1 answer
66 views

Hello,

I've a display Ribbon popup's RadGalleryElement between Windows 10 build 1511 and 1607  

See File-Attachs

Screenshot on Windows 10 1511 : http://creiler.free.fr/1.jpg => NO BUG

Screenshot on Windows 10 1607 : http://creiler.free.fr/2.jpg => DISPLAY BUG

I tested on 4 differents computers (Lenovo and Dell) : 2 Windows 10 1511  and 2 Windows 10 1607

No specific code, simple filling

I tried use DropdownOpening Event but no success :

Private Sub RGEProducts_DropDownOpening(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles RGEProducts.DropDownOpening
    Try
        Dim iWindowWidth = Me.Width
        Dim iWindowHeight = Me.Height
        With Me.RGEProducts
            If .Items.Count > 0 Then
                With .GalleryDropDown
                    .AutoScroll = True
                    .SetAutoScrollMargin(0, 0)
                    .MaximumSize = New Size(540, 720)
                    .HorizontalAlignmentCorrectionMode = AlignmentCorrectionMode.None
                    .Size = New Size(540, 720)
                    .UpdateLocation()
                End With
            End If
        End With
    Catch ex As Exception
        MsgBox("RGEProducts_DropDownOpening: " & ex.Message, MsgBoxStyle.Critical)
    End Try
End Sub

 

A little bit information on origin of this issue :

I haven't this display bug, but my computer use a AMD Graphics Card with last driver 

All other PC with windows 10 1607 use Intel Graphics Card with Version Driver with last driver intel (DELL)

and 8.15.10.2900 26/11/2012 (Lenovo)

Maybe it's a issue in DirectX API and DirectDraw function with driver Intel with Windows 1607 and ribbon component !!!

After DirectX update , same issue.

I can't solve this issue !!!

Do you know this issue ?

Do you can help me ?

Hristo
Telerik team
 answered on 08 Feb 2017
8 answers
649 views
I populate a radgridview from a class with a method: xxx.DataSource = class.method(); This methos returns a datatable.
The first time it works fine.
When i insert a row into the radgridview and repopulate it with the classes method (xxx.DataSource = class.method();
) it works fine.
But when i update the radgridview and after thet try to repopulate the radgridview, it starts to fire these messageboxes with the error message:

Data Exception
Column 'xxx' does not belong to table Table

What am i missing?
Hristo
Telerik team
 answered on 08 Feb 2017
1 answer
127 views
When placing a dropdown button in a RadRibbonBar, the Visual Style Builder has a DropDownButtoninRibbon Control Structure element for editing the UI of the button. However, where does one edit the UI for the menu items appearing below the pressed dropdown button that is contained in the RadRibbonBar?
Hristo
Telerik team
 answered on 08 Feb 2017
4 answers
164 views

Hello,

I'm using UI for WinForms R1 2017 and have observed a problem with the drawing of RadTimePicker when in a disabled state (Enabled = false).

Please see the attached picture. Notice how the RadDateTimePicker control (on the left) has the expected disabled appearance. However, the RadTimePicker control (on the right) does not. Specifically, part of the RadTimePicker editor background is still drawn in a light color when the control is disabled.

Please let me know if there's a workaround for this, and thanks.

Regards,

Mark R.

Mark
Top achievements
Rank 1
 answered on 07 Feb 2017
8 answers
929 views

Now that we're including the Telerik UI in our project, we'd like to reduce our reliance on third party controls where possible. I'm looking at replacing ObjectListView and I presume the equivalient would be RadListView.

With ObjectListView the process is:

  1. Define the custom MyClass
  2. Define the columns at design time and associate each with a Property in MyClass
  3. At run time, use SetObjects to set the list content to the run time defined List (of MyClass). 

Is there a way to do this in RadListView without needing to maintain an external data source, or manually add each item as a new row in the ListView? 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Feb 2017
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?