Telerik Forums
UI for WinForms Forum
1 answer
117 views
hello i am facing this problem : for any keypress on the combobox, the window where I use this multicolumn combo box is closing and this error appears:
"System.InvalidCastException: Unable to cast object of type 'Telerik.WinControls.UI.RadMultiColumnComboBox' to type 'Telerik.WinControls.UI.RadGridView'."
i am using q2 2009.
thanks in advance
Jack
Telerik team
 answered on 13 Mar 2012
1 answer
252 views

Hi,

I am trying to to save and load the grid layout settings to/from a file. i am able to save the layout settings to a file but unable to load from the file, getting the below error. Here i have created custom header cell for my grid.

Could you please help me in resolving this issue?

Below is the code  snipper for Save / Laod

private void SaveLayout_Click(object sender, EventArgs e)
        {
            this.radGridView1.SaveLayout(@"C:\\xyz.xml");
        }
  
private void RestoreLayout_Click(object sender, EventArgs e)
        {
            this.radGridView1.LoadLayout(@"C:\\xyz.xml");
        }

Stack Tracer of the issue:
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
  at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
  at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
  at System.Activator.CreateInstance(Type type, Boolean nonPublic)
  at Telerik.WinControls.XmlSerialization.RuntimeInstanceFactory.CreateInstance(Type instanceType)
  at Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadMergeCollection(XmlReader reader, Object parent, PropertyDescriptor parentProperty, IList toRead, String uniquePropertyName, Boolean preserveNotSerializedExistingElements, Boolean disposeObjects)
  at Telerik.WinControls.UI.GridViewLayoutSerializer.ProcessListOverride(XmlReader reader, Object listOwner, PropertyDescriptor ownerProperty, IList list)
  at Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)
  at Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object parentObject, Object toRead)
  at Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadElementInObject(XmlReader reader, PropertyDescriptor property, Object toRead)
  at Telerik.WinControls.XmlSerialization.ComponentXmlSerializer.ReadObjectElement(XmlReader reader, Object parentObject, Object toRead)
  at Telerik.WinControls.UI.RadGridView.LoadLayout(XmlReader xmlReader)
  at Telerik.WinControls.UI.RadGridView.LoadLayout(String fileName)
  at GridApplication.Form1.RestoreLayout_Click(Object sender, EventArgs e) in E:\Telerik POC\GridApplication\GridApplication\Form1.cs:line 200
  at System.Windows.Forms.Control.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnClick(EventArgs e)
  at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ButtonBase.WndProc(Message& m)
  at System.Windows.Forms.Button.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
  at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
  at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
  at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
  at System.Windows.Forms.Application.Run(Form mainForm)
  at GridApplication.Program.Main() in E:\Telerik POC\GridApplication\GridApplication\Program.cs:line 18
  at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
  at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
  at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
  at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
  at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
  at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
  at System.Threading.ThreadHelper.ThreadStart()

Thanks & Regards
Muralidhar Dasari
Jack
Telerik team
 answered on 13 Mar 2012
1 answer
104 views
Just reporting what I think might be a bug.
This happens in a scheduler in weekview mode with the RightToLeft property set to True (2011 Q3):
When for example the last time slot of the Wednesday is selected, if DOWN arrow is pressed, the first time slot of Tuesday will be selected. It goes back instead of going forward to the next day.
The same problem exists with the UP arrow. It goes to next day instead of previous day.
Ivan Todorov
Telerik team
 answered on 13 Mar 2012
5 answers
230 views
In my app, i have an radpanelbar that is populated at runtime with multiple radpanelbargroupelements (variable number, depending on the user's role), where in each of those elements, there is a radgridview.

I want to give the user the possibility to choose his layout: outlook, explorer, list,toolbox.

I works fine in outlook and list style.

When choosing explorer style, i want each radpanelbargroupelement to expand and evenly fill the available space in the radpanelbar.

The expanding works, but i cannot set the height of the contentpanel to take up as much space to evenly fill the radpanelbar.
I can this be done?

walter
Nikolay
Telerik team
 answered on 13 Mar 2012
1 answer
198 views
Hi

I can bring my toolwindow outside the my main program it is working great. Floating function works fine. But Sometime our customer want to some new features. They bring toolwindow outside program and minimize main program they only want to see toolwindow. but they dont see. cause when they minimize main program (main program owner the dock (toowindow)) toolwindow minimize together main form. how can I block this. Forexample if your toolwindow is floating after you want to minimize your main program. I dont want to minimize the toolwindow in this time. How can I do this.

I use Telerik 2011 Q2

Best Regards
Julian Benkov
Telerik team
 answered on 13 Mar 2012
2 answers
256 views
Hi!

I'm trying to insert a single item in a DataList, but i only get a null point exception (Object reference not set to an instance of an object..) If i "add" the same item first and then "insert" it's working, but not with insert alone...

This is not working:
lvServiceResult.Items.Insert(0, new ListViewDataItem(text + @"..."));

This is working:
lvServiceResult.Items.Add(new ListViewDataItem(text + @"..."));
lvServiceResult.Items.Insert(0, new ListViewDataItem(text + @"..."));

Any ideas?

BR,
Erlend Haukland
Øystein Olsen Holt
Top achievements
Rank 1
 answered on 13 Mar 2012
2 answers
111 views
Hello,
I have downloaded the trial version of winforms. I cant add most of the components from toolbox, it gives the following error.


Also every time i built my project it gives to following error.


My System is:
Windows 7
Visual Studio 2010 with SP1
Ivan Petrov
Telerik team
 answered on 13 Mar 2012
2 answers
154 views
Hi All,

I use datatable to connect gridview. After that I would like to have filer on column 1 but not all columns

.EnableFiltering = True
.MasterTemplate.EnableFiltering = True

This code switched the whold grid filter on.

Any idea to that?

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 12 Mar 2012
2 answers
148 views
I have a problem with ribbonBar on backstageView mode. The button which open backstage isn't fit to other tabs.    
Picture below decribe this situation:

I would like have a effect for example with MS Outlook program, next picture show those tabs.

Someone can resolve this problem ?

Thanks.
Dawid
Top achievements
Rank 1
 answered on 12 Mar 2012
3 answers
175 views
I am working my way through evaluating Telerik as a replacement for Syncfusion.

One of the requirements for the application is to show nine columns for example but fill the window with just the first four leaving the rest scrollable. This needs to happen when the screen is initially displayed and anytime it is resized. The four columns should shrink and expand as required to fill the space in the grid and should adapt to whether the grid is grouped or not.

Granted this was done with some hard won knowledge of how Syncfusion's GroupingGrid works but I need to be able to accomplish the same thing with GridView to make it a viable replacement.

Is this possible with GridView?
Svett
Telerik team
 answered on 12 Mar 2012
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?