Telerik Forums
UI for WinForms Forum
3 answers
81 views
I have a MaskedEditBox set up to allow drag-and-drop, and I've encountered what I must believe is a bug of some sort.

The control is set up with a mask for a standard North American phone number -- (###) ###-#### -- and during the DragEnter event I compare the drag data to a regex that confirms it has a phone number in it.  In the DragDrop event, I have the following code:

        private void txtConnectToPhone_DragDrop(object sender, DragEventArgs e) 
        { 
            Match dropPhone = phoneRegex.Match(e.Data.GetData(typeof(string)).ToString()); 
            if (dropPhone.Success) 
                txtConnectToPhone.Value = dropPhone.Value.RemoveNonNumeric();    
        } 

You can ignore the "RemoveNonNumeric()" method -- that's an extension method I have created for the string class.

It works fine unless I have a subset of the control's text selected or the cursor positioned somewhere in the middle of the text.  For example, let's assume the control displays "(800) 555-1212" and I select the "555" portion of the string or position the cursor in front of the first 5.  If I were to drag text containing "8135551212" into the control, it would display "(800) 813-5551" indicating that it's inserting the dragged text at the point of the selection.

The only way to get this behavior not to happen is to set the value to "" prior to setting it to the new number.  I can't imagine why this behavior would be by design.

Josh
Boyko Markov
Telerik team
 answered on 07 May 2008
1 answer
98 views
I have to display a couple of charts in both left to right (LTR) and right to left (RTL) orientations, depending on the CurrentUICulture. It seems the chart doesn't support this.

My current solution is to use code to move around the elements on the chart based on the culture. Here's the code I'm using:

private void LocalizeChart(RadChart chart) 
    bool isRtl = RightToLeft == RightToLeft.Yes; 
    chart.Legend.Appearance.Position.AlignedPosition = isRtl ? AlignedPositions.Right : AlignedPositions.Left; 
    chart.PlotArea.YAxis.Visible = isRtl ? ChartAxisVisibility.True : ChartAxisVisibility.False; 
    chart.PlotArea.YAxis2.Visible = isRtl ? ChartAxisVisibility.False : ChartAxisVisibility.True; 
    chart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = CHART_X_AXIS_TEXT_ANGLE * (isRtl ? 1 : -1); 
}

This solves some of the display issues, but I couldn't find any easy way to cause the charts to appear in the "top left" quadrant so the values on the x-axis "increase" from right to left. The alignments should automatically "reverse" direction in RTL mode.

Actually, I think there should be a property to specify whether a chart should stick to mathematical quadrants for the plot area, or to standard control alignment and direction. Not all charts show pure mathematical data.

Is there any way currently to get the chart to reverse the x-axis direction?

Thanks for any assistance!
Dwight
Telerik team
 answered on 07 May 2008
1 answer
158 views
Hi,
We have purchased the Telirik Rad controls for winformsQ1 2008.
After installing that,we got all controls popped into the Tool Box automatically,
except  "Rad Grid View".I have tried to get Rad Grid View control into ToolBox manually by "Choose Items" then adding the DLL,"Telerik.WinControls.GridView.dll" in the C:\ProgramFiles\Telerik\Rad controls for winforms Q1 2008\bin.
It is throwing an Exception/Error Message Box saying
 "There was an Error loading  types from Assembly "C:\ProgramFiles\Telerik\Rad controls for winforms Q1 2008\bin\Telerik.WinControls.GridView.dll" Could not load type 'System.ComponentModel.PropertyChangingEventArgs' from Assembly 'System,version=2.0.0.0,culture= neutral'"
Kiril
Telerik team
 answered on 07 May 2008
1 answer
138 views
Hi,

I'm having some trouble quickly figuring out how to place the ticks on a radchart.

I need to plot realtime data (temperature against time) on a line chart. The data required the series orientation to be flipped to the Y Axis. Since I've changed the series orientation I don't get the minor tick. I'm sampling 4 readings a second. The chart should contain data worth 17 minutes.

I would like to the ticks to be per minute (4 readings *16 seconds), but the ticks are showing up per reading.

I would like to give a user zoom in/out capability for the data. I need to label the ticks correctly.

If anyone could point me to some samples or more detailed documentation on labeling the X and Y axis I would really appreciate it.

g..
Dwight
Telerik team
 answered on 07 May 2008
1 answer
85 views
When user is editing a cell and press a button, to make some task in underlaying object then the objectdatasource don't have the changes.
In Q3 2007 i use :

if (radGridView1.EditingElement != null)

radGridView1.EditingElement.SaveValue();

In Q1 2008 no exists and my objects don't implement iNotifyProperty ( like..this).
when user click we need new value in object.
thanks


Dimitar Kapitanov
Telerik team
 answered on 07 May 2008
5 answers
245 views
Hello,
I use a DatabindingSource, BindingNavigator and r.a.d. GridView. When filtering the data in GridView, the BindingNavigator show still the recordcount all over the datasource within filter. Which property of GridView give back the current filter string?

I use version 2007 Q3

regards
Michael
Kiril
Telerik team
 answered on 06 May 2008
3 answers
179 views
I created a radgrid that gets refreshed every 2 seconds with new data.

I noticed that if the user is resizing a column during the refresh it causes an error.

To stop this from happening, before the refresh takes place I set the grid.enabled = false.  This solves that problem, but, everytime the data is refreshed, it seems the grid flashes a quick gray overlay color.  I can still see the data but there is just a flash of gray.

How can I get rid of this grey color?  I dont want any visual changes when the grid is not enabled?

If there is a better way around the problem of the grid resize on datasource update then please also let me know!!

Kiril
Telerik team
 answered on 06 May 2008
1 answer
129 views
I am using Q1 2008 and am creating my grids entirely in code due to the Visual Studio designer crash bug (which is really not that big of deal as it is probably better form anyway - no pun intended).

But I am running into a small problem. In my code I create a grid like this:

_rgvRequests = new RadGridView();  
_rgvRequests.Dock = DockStyle.Fill;  
           
_rgvRequests.ThemeName = "Telerik"

Other grid initialization code here...

This works fine on the first grid that is opened, but all forms (completely unrelated to the first) opened after the first, that have a grid on them, set that grid to the default theme (dark header, dark sand background).

I do use a some static helper methods on a utility class to create the grid rows but I do not believe this is causing a problem.

Has anyone else seen this?

Thanks,

Justin
Kiril
Telerik team
 answered on 06 May 2008
2 answers
73 views
Hi,

The localised string is not shown, instead the english version "Click here to add a new row". After clicking on the new row it changes to the correct String "(Neue Zeile)".
This only happens with the AddNewRowString , all others are displayed in German from the beginning.

I wrote my own RadGridLocalizationProvider (for german) and use this code

Public Class RadGridLokalisierungDeutsch
    Inherits RadGridLocalizationProvider
    Public Overloads Overrides Function GetLocalizedString(ByVal id As String) As String
        Select Case id
            Case RadGridStringId.AddNewRowString
                Return "(Neue Zeile)"
           ... ' More cases
            Case Else
                Return MyBase.GetLocalizedString(id)
        End Select
    End Function
End Class

I am guessing this is a bug ? Can you please look into it ?

Thanks in general for the great support, you have always been very helpful.

Regards
Falk Wegener
Top achievements
Rank 1
 answered on 06 May 2008
1 answer
71 views
Hello.

I am using the latest version of RadControls for WinForms.

I am using the Property Builder to specify the data fields and I am setting "Unique Name", "Data field" and "Header text" to different values.

However, after I click save and look in the generated Designer.cs file, they do not appear with different values. Instead, they all have the same value.
Dwight
Telerik team
 answered on 06 May 2008
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?