Telerik Forums
UI for WinForms Forum
3 answers
71 views
When I change either the MultiViewRows or MultiViewCols property of a calendar, it gives the error:

Object Reference not set to an instance of an object

This always seems to happen if I increase the number of Rows or Columns but also seems to happen occasionally if I decrease them.

The rows/col change was initially donein the SizeChanged event but to ensure that was not the reason for the problem, I set up a test with a button that just changes the Rows and Cols from 5 and 2 to 4 and 3 and the error happens every time.

Is anybody else experiencing this and is their a workaround that anybody can give me.

Thanks in advance
Dobry Zranchev
Telerik team
 answered on 07 Mar 2011
0 answers
149 views
Hi Guys,

I am developing a Windows App using C# 4.0. I have an MDI Application and when I add MDIChild forms to this app in maximize state there restore button is displayed although I have set control box to false, maximize box to false and minimize box to false. I want my child form to be always maximized. When i click the restore button it resizes to small size which I don't want.

Anyone please help.
Afraz Ali
Afraz Ali
Top achievements
Rank 1
 asked on 07 Mar 2011
1 answer
140 views
I have been using the RadDock control to manage my MDIs for me. This has been reasonably successful until I save a layout to reload later.

I am trying to reload the content using radDock1_DockWindowAdded()

                    if (e.DockWindow.Name.StartsWith("input1"))
                    {
                        input1 in1 = new input1();
                        in1.Text = e.DockWindow.Text;
                        in1.MdiParent = this;
                        ((HostWindow)e.DockWindow).LoadContent(in1);

This appears to work but I get an exception 

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.Docking.RadDock.RegisterWindow(DockWindow dockWindow)
   at Telerik.WinControls.UI.Docking.RadDock.EnsureRegisteredWindow(DockWindow window, RadDockTransaction transaction)
   at Telerik.WinControls.UI.Docking.RadDock.EnsureTransaction(RadDockTransaction transaction)
   at Telerik.WinControls.UI.Docking.RadDock.CommitTransaction(RadDockTransaction transaction)
   at Telerik.WinControls.UI.Docking.RadDock.CommitTransactions()
   at Telerik.WinControls.UI.Docking.RadDock.EndTransactionBlock()
   at Telerik.WinControls.UI.Docking.RadDock.LoadFromNewXml(XmlReader reader)
   at Telerik.WinControls.UI.Docking.RadDock.LoadFromXmlCore(XmlReader reader, Boolean oldXmlFormat)
   at Telerik.WinControls.UI.Docking.RadDock.LoadFromXml(String fileName)
   at TELMDI.Form1.LoadSavedLayout()

and the radDock1_LoadedFromXml never fires.

When I check my raddock1.MDIChildren they all appear to be there and they are also correctly applied on screen.

But when I then try to add new MDIs I cannot set the parent to be this; so something obviously gets corrupted.

If instead I change the order so that I LoadContent and then set MDI I get 2 new windows and the following exception
                        input1 in1 = new input1();
                        in1.Text = e.DockWindow.Text;
                        ((HostWindow)e.DockWindow).LoadContent(in1);
                        in1.MdiParent = this;


'System.InvalidOperationException' occurred in Telerik.WinControls.RadDock.dll
14:26:09 DockWindowAdded input13=System.InvalidOperationException: Cannot reload content for a HostWindow, which is bound to a MDI Child.
   at Telerik.WinControls.UI.Docking.HostWindow.VerifyContentChange()
   at Telerik.WinControls.UI.Docking.HostWindow.LoadContent(Control content)
   at TELMDI.Form1.radDock1_DockWindowAdded(Object sender, DockWindowEventArgs e) in E:\VS2008 Projects\telerik_test\TELMDI\Form1.cs:line 153

Does anyone know the correct way of reloading MDI content after loadfromxml?

 Thanks in advance.
Nikolay
Telerik team
 answered on 07 Mar 2011
0 answers
107 views
HI

let me know any way to store formattedvalue of a perticular cell in to variable rather than value of the cell

Thanks
Somnath
Top achievements
Rank 1
 asked on 07 Mar 2011
3 answers
155 views
I just download Trial for Telerik Winform and this trial reminder popup annoying me and less productive exploring your product, even your demo application display this popup.

Why don't you record popup reminder by session, when popup has show in current user session, like when first time build project, swicthing into design mode, or run mode.
Rather than popup every time I switch to designer mode, and other random time.
Nikolay
Telerik team
 answered on 07 Mar 2011
3 answers
255 views
Hello,

I'd like to be able to select a row in a gridview, then click a button that would insert a new row in the same gridview with the same values as the selected row.

Any help to get me started would be appreciated.

Thanks
Francis
Richard Slade
Top achievements
Rank 2
 answered on 05 Mar 2011
4 answers
86 views
Hi
I am working in bilingual form
      when i call a form as Showdialog then it cant be change as culture .
      Like when i want to see English in English culture and Arabic in Arabic culture.
meraj
Top achievements
Rank 1
 answered on 05 Mar 2011
7 answers
581 views
Hi There.  I'm trying to dynamically disable/enable buttons in the grid but every command is becoming disabled...  
any ideas?

Thanks.
 


private
void gvMainInfo_CellFormatting(object sender, CellFormattingEventArgs e)
 {
            if (e.CellElement.Value != null)
            {
                if ((e.CellElement.ColumnInfo).HeaderText == "Status")
                {
                    GridCommandCellElement commandCell = (GridCommandCellElement)e.CellElement;
                    RadButtonElement buttonElement = (RadButtonElement)commandCell.Children[0];
 
 
                    if (e.CellElement.Value.ToString() == "Acitvate")
                    {
                            buttonElement.Enabled = true;
                     }
                    else
                    {
                        buttonElement.Enabled = false;
                    }
    }
}
Paul R.
Top achievements
Rank 1
 answered on 04 Mar 2011
11 answers
183 views
hey
1- i use dock control but autohideposition dont support "right top"
2-how to i  can select a icon for dock
Ivan Todorov
Telerik team
 answered on 04 Mar 2011
2 answers
190 views
Hello...
          I changed the theme of form and controls placed to "WinXPLuna" but they are not applying at runtime. Can u suggest me anything...

Thanks in advance...
Ivan Petrov
Telerik team
 answered on 04 Mar 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
CheckedDropDownList
ProgressBar
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?