Telerik Forums
UI for WinForms Forum
3 answers
296 views
Hi,

I am trying to get the correct row from my grid for the Event RadGridView1.DragDrop.

In http://www.telerik.com/community/forums/thread/b311D-baegte.aspx#410155 you advised to use the GetElementAtPoint method, which is exactly what I need. Has this been removed in Q1_2008 ? Whats the correct way to get a Row by mousecoordinates?

My code looks like this

    Private Sub RadGridView1_DragDrop(ByVal sender As ObjectByVal e As System.Windows.Forms.DragEventArgs) Handles RadGridView1.DragDrop 
        If e.Data.GetDataPresent(GetType(Resource)) Then 
            Dim draggedResource As Resource = CType(e.Data.GetData(GetType(Resource)), Resource) 
            ' GetElementAtPoint does not exist 
            ' Dim target As RadElement = RadGridView1.GetElementAtPoint(New System.Drawing.Point(e.X, e.Y)) 
        End If 
    End Sub 


Jack
Telerik team
 answered on 07 May 2008
1 answer
141 views
Hi everyone, I'm curently writing a 100% keyboard application (of course you can use the mouse too but it's faster when you use the keyoard only) . My prolem is when I have more than 1 result to a query I need too show the result and let the user choice which one he want to use... But I use the SelectedItemChange Event to set something else. So when the user use the keyDown to move in the combobox that call the SelectedItemChange Event but I don't want this. With the VS Combobox I setted a boolean to true when the user pressed the keydown , but in the RadCombobox the keydown event comes before the SelectedItemChange Event so my way is impossible. If you can just show me an other way I would be happy.

Thanks and sorry for all english mistakes
Georgi
Telerik team
 answered on 07 May 2008
0 answers
190 views
SORRY - I found this is addressed in another Thread.


Hi,

while TAB (next control in tab order) works on RadTextBox -
SHIFT-TAB (prev control in tab order) does not work.

Replaceing RadTextBox with Forms.Textbox makes SHIFT-TAB work.
So I guess it is a problem with RadTextBox.

Regards

Manfred
ManniAT
Top achievements
Rank 2
 asked on 07 May 2008
3 answers
265 views
Hi!

I'm trying to to a master-detail view inside a gridview from my own objects but can't get it working ...
trying a details into master object approach only the first item has children , so tryed a object list with parent items and another object list with children items and made a relation inside gridview object but then none of the items have children in the grid ...

Can you help me please?

I've found in this forum about hierachical items from objects not working on jan'07 but the answer from telerik is that it will be solved in q2 release and i'm trying the q3 release , it's possible it's not implemented yet?

thanks
Jack
Telerik team
 answered on 07 May 2008
3 answers
107 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
125 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
178 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
153 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
109 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
280 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
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?