Telerik Forums
UI for WinForms Forum
6 answers
123 views
Hi there,

After upgrading my project to the latest telerik build, my ability to export to excel has broken. Here is the code i was using:

Dim Exporter As New Export.ExportToExcelML(activegrid)
        Try
            Exporter.RunExport(file)
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
End Sub

Any idea how this should be written now?

thanks!

Jonathan
Jonathan Hylton
Top achievements
Rank 1
 answered on 20 May 2011
1 answer
231 views
Hi Telerik Team ,
How to remove/ hide the close button from the rad message box control?
Thanks in advance
Ivan Petrov
Telerik team
 answered on 20 May 2011
2 answers
99 views
This question must be one of the top FAQ.  But I cannot find a concise, clear answer.  Let me try for a concise, clear question.

Given a "Lookup" table:

Code  Direction
1        South
2        East
3        North
4        West

And a "Main" table:

Name Vehicle Code
Bert    Truck1  1
Mac    Truck2  4

How do I make the RadGrid display as follows?  My RadGrid is readonly so no pulldowns are necessary on the third column.

Bert Truck1 South
Mac Truck2 West

I'm using OpenAccess ORM so my tables are in POCOs Lookup and Main.

Does the third column have to be a ComboBox column?  Or do I use CellFormatting event?  If I use a combobox column how do I set the three parameters (Main.Code, Lookup.Code and Lookup.Direction)?

Regards,
Guy


Ivan Petrov
Telerik team
 answered on 20 May 2011
13 answers
328 views
Hi,
 is there a way to print a RadGridView grid? The only solution i've found yet is to export the grid to excel, and then print it.

thx,
 Levi
Martin Vasilev
Telerik team
 answered on 20 May 2011
2 answers
96 views
If a sort is saved as part of a layout it is not honored when the layout is loaded. The column header has the sort indicator (black triangle indicating ascending/descending), but the data appears in the order of the underlying data source, not the order specified in the layout.

If I click on the column header the data is sorted, but the sort added as part of the layout definition is ignored. It almost seems as though there is some sort of "apply" method that needs to be called.

I believe that this worked in 2010Q1, but is broken in 2011Q1.
Martin Vasilev
Telerik team
 answered on 20 May 2011
2 answers
124 views
I am having an issue and am on the very latest version of the controls where CommandBarTextBox elements placed in CommandBars do not fire the LostFocus events.

The following used to work, but since the last upgrade does not fire.

cbTextBox.TextBoxElement.TextBoxItem.LostFocus += new EventHandler(TextBoxItem_LostFocus);

I have also tried the code below, but again nothing happens.

cbTextBox.LostFocus +=new EventHandler(TextBoxItem_LostFocus);

I could use the TextChanged event, but for filtering large datasets I do not want to filter for every keystroke, only when focus is changed.

These are being hooked in the constructor so the events should be firing.

Any ideas?
Ivan Todorov
Telerik team
 answered on 20 May 2011
1 answer
86 views
On upgrading the Winforms controls from Q3_2010 release to Q1_2011(just by changing the references), i have broke the aspect of all my forms where i had a TableLayoutPanel hosting RadDropdownList controls on rows with autosize (the height of the RadDropDownList controls has increased by 4 pixels) .

Can you advice a solution or explain me what change in RadDropDownList cause this?
Peter
Telerik team
 answered on 20 May 2011
4 answers
167 views
Hi,

when I'm writing in the dropdownlist the dropdown is automatically dropping down. That's great. But when I try to leave the dropdownlist by tabbing whilst the dropdown still is dropped down, the dropdown won't close...

Am I missing something?

Best regards
Anders
Peter
Telerik team
 answered on 20 May 2011
3 answers
87 views
Hi,

When filtering is on, an exception is thrown when you press the single quote key (or apostrophe). I guess it's an expression injection problem or something like that.

Any solution ?

Thanks
Jack
Telerik team
 answered on 20 May 2011
1 answer
151 views
Hi All,

I have a Grid bound to a Dictionary<> in C# (Actually bound to Dictionary.Values).  I am doing this because I am editing the values of the grid pretty often and have a large data set, so using the dictionary allows me to find the exact element I am trying to change without looping through the entire collection. 

This is working pretty well.  I realize that a Dictionary doesn't provide notification when the collection is changed, so to show changes in the Grid I call the following 2 lines of code when I change any Dictionary element:
grid.TableElement.Update(GridUINotifyAction.DataChanged);
grid.TableElement.Update(GridUINotifyAction.StateChanged);

This shows all updates!  Horray!  However, it does not resort the grid correctly.  So, if one of the fields that is being sorted changes, the rows do not move accordingly.  I was hoping that I could determine when I might need to resort and call a "Resort()" type method, but it seems like I can't.

How can I get the Grid to resort in this scenario?

Thanks All!
Emanuel Varga
Top achievements
Rank 1
 answered on 20 May 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
NavigationView
VirtualKeyboard
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?