Telerik Forums
UI for WinForms Forum
25 answers
469 views
When Pageview's viewmode is set as outlook,  two buttons can be used to set number of buttons listed on the panel after a pageview is loaded.

Question:
Is is possible to set  a fixed number of buttons shown when a pageview is loaded?

Eg.  We have 7 pageviewpages.  We want only show 3 buttons when the pageview is loaded and later we can do adjustment by using showing more buttons or showing fewer buttons.

See attached sampled image. We want to have sample_2 instead of sample_1 when a pageview is loaded.
Nikolay
Telerik team
 answered on 07 Mar 2011
5 answers
530 views
The following code does not work for Toolwindow in a radDock. The intriguing part is that it works when am debugging the application not when I run it. Could any of you please help.

private void toolWindow1_MouseLeave(object sender, EventArgs e)
        {
            toolWindow1.Hide();
        }

Thank You
Bob
Nikolay
Telerik team
 answered on 07 Mar 2011
3 answers
173 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
226 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
172 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
163 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
214 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
336 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
148 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
778 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
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?