Telerik Forums
UI for WinForms Forum
1 answer
152 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
202 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
401 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
338 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
137 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
145 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
156 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
3 answers
280 views
Hi,

I am looking at creating the columns dynamically and one of the column should be link column. How do we create link button type column in rad grid view? Please help.
Nikolay
Telerik team
 answered on 15 Dec 2011
5 answers
117 views
I am doing a schedule and found the next problem with the control RadDateTimePicker when i press the key suppress in the keyboard and then i go back to the control and try to choose the number 12, its doesn't work or i can't see the number 12 and of fact i checked the telerik Demo and found the same..

do you know if its is a problem with the control..or what i can do in this case?

Thanks for your Help.

Peter
Telerik team
 answered on 14 Dec 2011
2 answers
140 views

Has anyone here managed to upgrade a RadTabStrip to a RadPageView?


Jack
Telerik team
 answered on 13 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)
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?