Telerik Forums
UI for WinForms Forum
10 answers
338 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
275 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
109 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
108 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
113 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
243 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
81 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
113 views

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


Jack
Telerik team
 answered on 13 Dec 2011
1 answer
405 views
I know it's an unusual situation, but I have a case where I'm adding the items to the context menu's items collection in code... I build the context menu when the form loads. When I call the .show method, it works fine when there are not many items in the .items collection... maybe >20. In many cases, I have 100+ and it effectivly does not work.... minutes later, the context menu finally pops.

I replaced the control w/ the free one that ships from Microsoft and it works fine with no other changes to the code.

In the form's load event....
cm = new RadContextMenu();
foreach (string g in groups)
      {
          RadMenuItem mnu = new RadMenuItem();
          mnu.Text = g;
          mnu.Click += new EventHandler(cmclick);
          cm.Items.Add(mnu);
      }

showing the context menu...
cm.Show(radChart1, new Point(0, 0));
Jack
Telerik team
 answered on 13 Dec 2011
1 answer
119 views
Hi

Is there a way to capture a mouse event on a tilegroupelement ? I have tried the obvious but it doesn't fire any events that I could see.

Thanks in advance for any help.


Regards


Paul.
Ivan Todorov
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)
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
ProgressBar
CheckedDropDownList
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
VirtualKeyboard
NavigationView
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?