Telerik Forums
UI for WinForms Forum
9 answers
765 views
How do you detect what data item a user clicks on with the mouse.
For example a user clicks on a certain piece of a pie chart or a specific bar on a barchart.  Another possible feature would be to detect the X position in a line chart while the mouse hovers over it so you could display the Y value.

John Schneider
Ales
Top achievements
Rank 1
 answered on 17 Dec 2011
1 answer
170 views
Hi Telerik

I want to replace the image displayed when ShowCloseButton is active on a document tabstripitem while maintaining its hover and pressed image behaviour.

I create the dodument window at run time and I can get the image to change to a static image using the following line

            document.TabStripItem.CloseButton.Image = Resources.GreenTickNormal22;

where "document" is typeof(DocumentWindow)

I also have added the following lines to get the image to change but these lines don't seem to be working

            document.TabStripItem.CloseButton.ImageHovered = Resources.GreenTickHover22;;
            document.TabStripItem.CloseButton.ImageClicked = Resources.GreenTickClick22;

Am I missing and event somewhere which needs to be raised?

Regards
Ian Carson
Stefan
Telerik team
 answered on 16 Dec 2011
2 answers
118 views
Hi,

I have rad grid as per my requirement I need to show the details in one to many relations. As per my finding I found that it will possible on tab wise(Side by side)

http://www.telerik.com/help/winforms/gridview-hirarchical-grid-hierarchy-of-one-to-many-relations.html.


But my requirement is one to many relations is one followed by another not side by side.


Please let us know what we need to do to get this to work.


THANKS!
Jack
Telerik team
 answered on 16 Dec 2011
1 answer
129 views
Hello,

Using a RadGridView to make operation on a datatable/dataset,

If I create or edit a record, and the click on another line, or event some times on another cell from the same line/record,

I get an exception in 'Program.cs' (the starter class generated by Visual Studio containing Main() method)
on line  Application.Run(new MyForm());
It say 'NoNullAllowedException crosser a native/manager boundary.'/'Column ... does not allow null.'

It seems that this exception can not be caught so my app crashes.
It doesn't seem to be firing the cell end edit event.

I understand this come from the dataset validation.

If the user strictly can not click out of the row while all data are not filled and valid, I think that's too restrictive.

How could I catch or manager this exception in a more user friendly way ? If possible.


Thank you for help,

Thomas
Julian Benkov
Telerik team
 answered on 16 Dec 2011
5 answers
162 views
I have the problem that, when i use the SelectedObject method from the propertygrid then will be the grid initialized again.
and the current view from the grid will be set to the default view.  for example (all open properties will be closed)

the WindowsForm PropertyGrid do this not!
how can i change this behavior?

BR
Sebastian
Ivan Petrov
Telerik team
 answered on 15 Dec 2011
10 answers
341 views
If yes, then when I try to export, I get this error...

System.InvalidOperationException: {"Could not find neighbour element!"}

and the stack trace is at

Telerik.WinControls.UI.Export.ExportToExcelML.SearchForNeighbourElement(List`1 radElementList, Int32 index) at Telerik.WinControls.UI.Export.ExportToExcelML.CreateStyleElement(GridViewRowInfo gridViewRowInfo, Int32 cellIndex) at Telerik.WinControls.UI.Export.ExportToExcelML.CreateRowElement(WorkBookElement workbook, GridViewRowInfo gridViewRowInfo) at Telerik.WinControls.UI.Export.ExportToExcelML.AddWorkSheetWithHeaderRow(WorkBookElement workbook, FileStream fileStream, Int32& currentSheet, Int32& currentRow) at Telerik.WinControls.UI.Export.ExportToExcelML.RunExport(String fileName)


The code being used is
Dim cc As New ExportToExcelML(grid)
 cc.ExportVisualSettings = True
 cc.RunExport(saveFileDialog1.FileName)
Stefan
Telerik team
 answered on 15 Dec 2011
5 answers
280 views
How can I keep the gridview from applying its filterdescriptor untill the user presses enter in the filtercell (or leaves the cell by tab or click ie: the cellEndEdit event has passed (with rowIndex == -1))?

eg:
i have a column and I enter the filter string "abc" by typing the 3 character. Normally the grid will first add the fitlerdescriptor A  then AB then ABC. Now  I would like the behaviour of my gridview to be abc + "LEAVES FILTERFIELD" and then apply only 1 filterdescriptor ABC..

I have tried using a boolean "holdFiltering" which i set to true when the cellBeginEdit is fired on RowIndex == -1  and then i set it back to false at cellEndEdit, but unfortunately the cellEndEdit is fired AFTER the FilterChanging event (where i used the holdFiltering to set the e.Cancel = true & return from the method), this resulted in no more filtering whatsoever ;-)

Can anyone point me to or show me a working code snippet?

thank you in advance!
Stefan
Telerik team
 answered on 15 Dec 2011
1 answer
112 views
The GridViewCollectionChangingEventArgs on the FilterChanging event does not appear to be updated correctly.  After the first filter change event, subsequent filters do not update NewItems and OldItems correctly.

The NewItems(0) does not reflect the updated filtered text.  However, the NewValue does show the updated text.   The OldItems(0) always equals zero, but OldValue is correct.

In addition, if the filter operator changes, the same discrepancy occurs, however the NewValue and OldValue are changed to an number.  I'm assuming it is the enumerator of the operator.

See the screenshot and code example.  I've opened a support ticket in case it is an actual bug, but hoping it is not and I'm just using it incorrectly.

Imports System.ComponentModel
 
Public Class Form1
 
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
 
        Dim foo As New BindingList(Of Person)
 
        Dim i As Integer
        Do Until i = 100
            foo.Add(New Person("Name " & i.ToString))
            i = i + 1
        Loop
 
        RadGridView1.DataSource = foo
    End Sub
 
 
    Public Class Person
        Property Name As String
 
        Public Sub New(ByVal Name As String)
            _Name = Name
        End Sub
    End Class
 
 
    Private Sub RadGridView1_FilterChanging(sender As Object, e As Telerik.WinControls.UI.GridViewCollectionChangingEventArgs) Handles RadGridView1.FilterChanging
        TextBox1.Text = e.NewItems(0).ToString
        TextBox2.Text = e.NewValue
 
        If e.OldItems IsNot Nothing Then
            TextBox3.Text = e.OldItems(0).ToString
            TextBox4.Text = e.OldValue
        End If
    End Sub
End Class
Jason Parrish
Top achievements
Rank 1
 answered on 15 Dec 2011
3 answers
109 views
Hi, I had version Q2 2011 WinForms VISUAL Style Builder, and change to the NEW VERSION OF Q3 2011, but there were some problems with DropDownButton because I can not change the properties of the button or save the changes. This problem only happens with this element (DropDownButton). How can I solve the problem?

Best Regards, Rui Silva
Jack
Telerik team
 answered on 15 Dec 2011
1 answer
115 views
Hi!

I've been having trouble with the maskededitbox valuechanged event. Please check the following example:

Private Sub RadMaskedEditBox1_ValueChanging(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles RadMaskedEditBox1.ValueChanging
 
MessageBox.Show("Value=" & RadMaskedEditBox1.Value)
 
End Sub

It does not show the proper value.

Also, I'd like to know if there is a way to disable the increase/decrease value using the up/down arrows.
 
Thanks for your help.
Peter
Telerik team
 answered on 15 Dec 2011
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
ProgressBar
CheckedDropDownList
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?