Telerik Forums
UI for WinForms Forum
1 answer
55 views
Hello, this is a quick post to see if there's a way I can revert back to the pre-SP1 (released yesterday) appearance of the split container control.  (This project needs to go out today and I probably shouldn't have updated without leaving myself more time).  

According to the release notes:
  • FIXED: Theme settings are applied only to the first SplitterElement.
  • FIXED: The image set for the grip of the splitters is not shown for all splitters.

I wasn't using a specific theme (default), and the splitter was a blue color (on my system) without a grip (they are fixed panels).  Now it is gray with a grip.

Given more time, I'm sure I could find the properties, but if you could help, I'd appreciate it!!

Thanks,
Dan
Boryana
Telerik team
 answered on 14 Dec 2012
6 answers
1.0K+ views
I have a datetime picker that has a time format.
I'm wondering if it is possible to:

1. remove the seconds part, so it would only be HH:MM AM/PM?

2. limit the time that can be chosen (e.g. 8 AM to 5 PM)

2. set the interval of increasing and decreasing the Minutes part to 30 instead of 1?


EDIT:

Nevermind Question # 1.

CustomFormat in the properties gets the job done.
Peter
Top achievements
Rank 1
 answered on 14 Dec 2012
4 answers
291 views
Hi,

I am using Telerik for Winforms version 2012.3.1017.40.  I am using a RadGridView control to display some data.

The following is always true:
- First columns is a date
- All other columns are numeric
- I do not know at design time how many other columns there will be
- The data is at regular intervals (e.g. each row is a 2 minute step)

I am trying to achieve the following functionality:
For each cell value cell:
    Determine value
    Determine Previous Value
    If difference greater than 5:
        backcolour = green
    else if difference less than -5:
        backcolour = red

The 'previous value' cannot necessarily look at the previous row, I do not know what custom sorting the user will have done.  Rather the previous value should be taken from the row at the previous  point in time (according to the first column(date)).

I could achieve this by querying the underlying datasource (a DataTable) on the CellFormatting event, but can't help wandering if there is an easier way!

Thanks for any assistance.
Anton
Telerik team
 answered on 13 Dec 2012
1 answer
98 views
We are using  RadControls for WinForms Q3 2009 SP1.
In gridview control , we are using GroupByExpressions to club datas together.
When we try to insert a row at custom location  , it works weird .Instead of inserting a row at custom location, it puts a row in new group.
See the attachment files for more details.

Svett
Telerik team
 answered on 13 Dec 2012
1 answer
141 views
I am able to change the font but not the backcolor.  The line that sets the color is indeed being executed (e.RowElement.BackColor = ....) but the color does not change.  What am I failing to do?

void grid_RowFormatting(object sender, Telerik.WinControls.UI.RowFormattingEventArgs e)
        {
            try
                {
                 
                    if ((grid.MasterTemplate.Columns.Contains("colARRIVE")) && (grid.MasterTemplate.Columns.Contains("colDEPART")))
                    {
 
                        if ((TimeSpan)e.RowElement.RowInfo.Cells["colARRIVE"].Value == (TimeSpan) e.RowElement.RowInfo.Cells["colDEPART"].Value)
                        {
                            e.RowElement.Font = new Font(e.RowElement.Font, FontStyle.Strikeout);
                        }
                        else
                        {
                            e.RowElement.Font = new Font(e.RowElement.Font, FontStyle.Regular);
                        }
 
                    }
 
                    if (e.RowElement.RowInfo.Cells["colSRC"].Value.ToString() == "O")
                    {
                        e.RowElement.BackColor = System.Drawing.Color.AliceBlue;
                    }
 
            }
            catch (Exception ex)
            {
 
            }
        }
Anton
Telerik team
 answered on 13 Dec 2012
3 answers
101 views
Some component sizes (SplitPanel, RadDock) are set to 25x25 when upgrading to 2012.3.1017.40.
Jack
Telerik team
 answered on 13 Dec 2012
2 answers
180 views
We have found a serious bug in RadGridView for WinForms, whereby the user can become completely "trapped" in the application when entering an invalid value in a cell, then scrolling the grid.

You can reproduce the behaviour using the Winforms demo application: Demo Application - RadControls for WinForms Q3 2012:

1. Enter an invalid value in a cell, and press enter.
2. Scroll the grid, by clicking in the scroll bar.
3. Now you're stuck, if you scroll back the entered value is gone, but the row is still in error.

You are truly stuck, you can't clear the original error. The only way out I found is to force quit the demo application via the Task Manager.

By the way, don't click the down scroll box (I mean the little triangle at the bottom of the scroll bar) or the app will start scrolling endlessly and eventually crash.

So, how to work around this? One suggestion is to override the CloseEditor :

Public Class MyGridViewEditManager
    Inherits GridViewEditManager
    Public Sub New(ByVal gridView As RadGridViewElement)
        MyBase.New(gridView)
    End Sub
 
    Public Overrides Function CloseEditor() As Boolean
        Dim closeOnFail As Boolean = Me.CloseEditorWhenValidationFails
        Me.CloseEditorWhenValidationFails = True
        Dim result As Boolean = MyBase.CloseEditor()
        Me.CloseEditorWhenValidationFails = closeOnFail
        Return result
    End Function
End Class

and then in the New() of the form (where MyGridView is the name of my grid):

Me.MyGridView.GridViewElement.EditorManager = New MyGridViewEditManager(Me.MyGridView.GridViewElement)

This kind of works, but it always closes the editor whenever the user clicks anywhere outside the invalid cell. It avoids the problem of being trapped, but the behaviour is strange - you wouldn't expect the invalid value to disappear when you click outside the cell. The desired behaviour is that the editor is closed if the user scrolls.

One approach I tried without success is to disable scrolling while a grid cell is in edit mode, but no luck.

Does anyone have a good workaround for this tricky problem?
Svett
Telerik team
 answered on 12 Dec 2012
1 answer
283 views
Hi,

1) How can I change the font of the RadDropDownList items on the style builder ?
2) How Can I set the alignment of the RadDateTimePicker selected date to right on the style builder?

Thanks.
Anton
Telerik team
 answered on 12 Dec 2012
1 answer
64 views
Just wondering if the DateTimePicker can resolve xml date time ie: yyyy-mm-ddThh:mm:sszzzzzz.

I am trying to get/set the value to and from XML but cannot see how I can achieve this with this control. For example, provided it is possible, will it remember when it is UTC or Local.
Peter
Telerik team
 answered on 12 Dec 2012
3 answers
225 views
Can we add RichTextBox to PropertyGird?
also when i add a RadRichTextBox to Property grid it seem like showing the cursor somewhere else and even cant type.
please help!!

Ishara
Plamen
Telerik team
 answered on 12 Dec 2012
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
Iron
Iron
Sergii
Top achievements
Rank 1
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
Iron
Iron
Sergii
Top achievements
Rank 1
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?