Telerik Forums
UI for WinForms Forum
1 answer
246 views

 Hi, we use the rich text editor with the ribbon bar that has all the options to edit the text, we can select the font size from the drop down, but this only have integer values, we need it to be able to type the size we desire (in this case with decimals), well at least we need a .5 (8.5, 9.5, 10.5, 11.5 and 12.5)

 

Is there a way to achieve this? Please

 

I'm using 2017 Q1

 

Thank you all.

Hristo
Telerik team
 answered on 13 Feb 2017
2 answers
114 views

Hello,

I'm using a GridView for which I'm defining some default values.

When clicking on the NewRow, it displays the default values but if the user doesn't change any of row values, the row is never validated.

In the DefaultValuesNeeded event, I'm actually defining a specific column to have a specific ID each time, and I wish this could be sufficient to be able to validate the row. This used to work in Winforms Q1 2015...

OD
Top achievements
Rank 1
 answered on 13 Feb 2017
9 answers
162 views
Hi everbody,

I'm trying to format a bound DateTimeColumn to show only the short dateformat without the time. I have tried everything, but it does not work.

I tried:

Format = Short and Custom
FormatString = {0:d}
FormatString = d


I read the online documentation but it does not work. Does anyone have a solution for this?

Thank you very much and have a nice christmas!

Markus
Dimitar
Telerik team
 answered on 13 Feb 2017
5 answers
862 views
How do you change the default DateTime editor for a cell in a gridview date time column

I have tired using the DataEditFormatString, which according to the documentation is what you are supposed to use eg

gridView.Columns[5].DataEditFormatString = "{0:d}";

But it does not work.
Dimitar
Telerik team
 answered on 13 Feb 2017
2 answers
131 views

HI,

I want to add a "FilterClearButton" in every FilterCell. We are changing from Infragistics to Telerik and our users are familiar with that behaviour so I tried to create my own FilterCell but it was not working as expected. Everytime i click in my Filtercell, a EditorElement appears and my FilterClear button is not visible anymore. I think I have done smth wrong.

 

So has someone here tried anything similar?

Sincerely,

Dominik

Dominik
Top achievements
Rank 1
 answered on 13 Feb 2017
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
122 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
454 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
423 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
132 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
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?