Telerik Forums
UI for WinForms Forum
2 answers
165 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
270 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
58 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
212 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
1 answer
184 views
Is there a way to change the size of the Headers for the Document Window or Tab Tittles. I have put in this link an image and the parts I wanted to change the size are annotated with square boxes.
Anton
Telerik team
 answered on 12 Dec 2012
6 answers
136 views
Hi!

How can i use custom- and basic filtering combinded ?

There is a customFilterRow example, but it does not contains the basic filter row either.

I have a textBox, and on the textChanged-event i refresh the masterTemplate and the customFiltering-event is fired.
Then i do my filterSearch. Everything works fine, like in the customFiltering-example.

But after that, i want to use the basicGridFilter, but it doesn't work. if i clear the textBox i set the enableCustomFiltering to false,
and then the grid is empty. i only get basic or customFiltering to work, not both.

Thx !

The textBox (customFilter) is used for a search on the whole grid.
The FilterRow should be used to filter each row.
Julian Benkov
Telerik team
 answered on 12 Dec 2012
3 answers
2.2K+ views
Hi! I am creating a panel with rounded corners, I followed the documentation here and was able to get that. The problem comes when I wanna change the color of the panel. For instance, I have a gray background on my app, and the panel has a white background. Instead of only seeing the rounded corners on the panel... I am seeing the square corners in white and then a rounded border around the panel. See screenshot. Suggestions on how to hide the square corners?


Thanks!
Plamen
Telerik team
 answered on 12 Dec 2012
2 answers
181 views

Hi there,

is it possible to disable the Key Tips for some specified controls in the RadRibbonBar?

I have placed a RadImageButtonElement and a RadDropDownListElement in the same RadRibbonBarGroup.

I would like to disable the Key Tip feature only for this both controls. All the other controls should be accessible by the Key Tip.

I have set the Property -> radRibbonBar1.EnableKeyMap = true; and for the other controls in the RibbionBar I assigned the KeyTip too.

At the moment the RadImageButtonElement and RadDropDownListElement get a numeric automatic key tip.

I use  RadControls for WinForms  Q3 2011 SP1.

If anyone has any ideas I would appreciate

Thanks in advance

Sascha

Sascha
Top achievements
Rank 1
 answered on 12 Dec 2012
2 answers
96 views
I have a few global static events that some of my forms subscribe to.  The subscription happens in the Form.Load event of each form.  Those forms are added to a DocumentWindow then to the DockManager.  The subscription is great, everybody's listening fine.  Now when I close a DocumentWindow, the forms OnClosing events doesn't happen thus not unsubscribing to the static event I had wired.  So now when another form (document window) fires the static event I get an exception from the closed form where the static handler is trying to work but the form doesn't exists anymore.

Any ideas on how to unsubscribe to static events on forms that are children to DocumentWindows once closed?

Thanks,
Byrd
Julian Benkov
Telerik team
 answered on 12 Dec 2012
1 answer
94 views
Hello,
  Im using telerik 2010.2.10.713 version library, i want on my radgridview to validate the filled fields by the user at the end of editing the row, i have as selection mode the fullrow select, for that purpose i used row validating event wich i used on datagridview but this didnt work on radgrid view, im trying:

if (radGridView1.Rows[e.RowIndex].Cells["usu_clave"].Value == null)              {                    radGridView1..Rows[e.RowIndex].Cells["usu_clave"].ErrorText ="some error";               e.Cancel = true;     //prevent the user to save changes                       return;             }


<code style="color: #000;">if (radGridView1.Rows[e.RowIndex].Cells["usu_clave"].Value == null)</code><code style="color: #069;font-weight: bold;"></code><code style="color: #000;">              {</code><code style="color: #000;">                    radGridView1..Rows[e.RowIndex].Cells["usu_clave"].ErrorText ="some error";</code><code style="color: #069;font-weight: bold;"></code><code style="color: #000;">               e.Cancel = true;     //prevent the user to save changes      </code><code style="color: #069;font-weight: bold;"></code><code style="color: #000;">                 return;</code><code style="color: #069;font-weight: bold;"></code>             }<br><div style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;"></code></span></span></div>

what is going wrong?

thanks!
Svett
Telerik team
 answered on 11 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)
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?