Telerik Forums
UI for WinForms Forum
0 answers
161 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
111 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
162 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
261 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
87 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
605 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
188 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
193 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
11 answers
501 views
Is there a way to focus the scroll position of the scheculer to the current time of the day.

For example if the day view is set for 24 hour format(0-23 hours) and the current time is 5pm, Is it possible to set the scroll position of the scheduler to 1700 hrs than 0hr. 
Peter
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
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
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?