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.
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.
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?
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 ?
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.
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:
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?