Telerik Forums
UI for WinForms Forum
1 answer
69 views
Hi,

I have developed a smart client desktop application using SCSF.

It has an MDI and MDI child forms opens over it(It is similar to windows menu based application using MDI) .

The problem is that the MDI child forms (i.e. the views) take a few seconds to open and load.

Is there any way of minimising the time it takes.

The forms are having simple telerik text boxes and telerik labels and telerik  grids(which has two columns and is not populated during load)

I call a webservice at form load and have tried to comment the service call; Even then it takes the same time so I have ruled out the possibility of service delay.

Nothing else is done at the form load except the form is rendered

Is it because I am using telerik that the form is taking time to render the telerik controls or because of SCSF CAB.

But a simple windows forms in the same project gets loaded faster than the telerik one.

May be SCSF might be tuned up to load the views faster or there is some way to make the CAB work faster which I am unaware of.


Thanks in advance.



Jordan
Telerik team
 answered on 28 Jul 2009
6 answers
468 views
I am new to the Telerik WinForms controls (so be gentle if this is dumb question).

I have looked through the doc, watched videos and searched the forums, but I can not figure out how to set a theme that applies to an entire application or even all controls on a form.  It seems like you have to set the theme on every control on every form.  What am I missing?

- Jim
kottu
Top achievements
Rank 1
 answered on 27 Jul 2009
5 answers
341 views
Hi!!!
First of all i would like to thank you guys for this excellent looking product.
i have just started making some test apps and i am in a bit of a problem.
Problem...
I have made a elliptical carousel and added some rad image button element. i have been trying to animate these buttons when ever a mouse enters the button element or leaves and if a person double clicks it. The animation includes changing picture to another (to a  bigger resolution one), moving the image etc. But strangely i haven't been able too. i know its something very easy, but i couldn't find how to..
Can u please help me quickly with this i would be really thankful.
Nikolay
Telerik team
 answered on 27 Jul 2009
1 answer
207 views

Does RadRadioButton support text wrapping?

See this picture : if I set or no TextWrap property - text is always in one line.

By the way, if I set proprety AutoSize to True, then False again - text is wrapped, but in designer, not during execution. And after closing/starting Visual Stiudio - text is again in one line.

PS: Same question about RadCheckBox control.

Boryana
Telerik team
 answered on 27 Jul 2009
3 answers
287 views
I'm trying to create a control with formatted entry and a drop-down suggestions list, specifically an am / pm time field with seconds with a list of suggested but not mandatory times.  I'm trying to use a RadComboBox and setting its FormatString Property to do this.  I couldn't find any docs on this Property so I tried using the Mask characters from the RadMaskedEditBox docs.  I've tried "HH:mm:ss tt" and simply "##:##:## LL".  In neither case did it restrict values to the specified format or move the cursor to next wildcard section when I tried to type or right-arrow past non-wildcard characters of the mask or press space in front of non-wildcard characters like RadMaskedEditBox does.  I've tried setting FormattingEnabled to True and False.  Any ideas?  Thanks.

BTW, what are the DisplayMember and ValueMember Properties for?
Boryana
Telerik team
 answered on 27 Jul 2009
5 answers
116 views
User is unable to enter filter values when MasterGridViewTemplate.AllowEditRow is false.
Jack
Telerik team
 answered on 27 Jul 2009
1 answer
153 views
My main form loads a RadDock and a toolWindow containing a PanelBar and RadList.

On clicking items in the RadList a new DocumentWindow is opened. This window is a class which inherits from DocumentWindow.

This loads the document window
LogDocument documentLog = new LogDocument(); 
documentLog.Text = documentTitle; 
documentLog.CurrentFileId = selectedIndex; 
 
documentLog.Load();  // Loads data into grid 
 
AirFile.AddNewMostRecentFile(documentTitle, selectedIndex); 
 
this.radDock.AddDocument(documentLog); 

My inherited class (only some of it for brevity)
    class LogDocument : DocumentWindow 
    { 
        public LogDocument() 
        { 
             AddGridToForm(); 
        } 
 
        public void Load() 
        { 
             LoadGridWithData(); 
        } 
 
 
        private void AddGridToForm() 
        { 
            RadTabStrip radTabStrip = new Telerik.WinControls.UI.RadTabStrip(); 
            TabItem tabGridItem = new Telerik.WinControls.UI.TabItem(); 
            TabItem tabDetailItem = new Telerik.WinControls.UI.TabItem(); 
 
            //  
            // radTabStrip1 
            //  
            radTabStrip.AutoScrollMargin = new System.Drawing.Size(0, 0); 
            radTabStrip.AutoScrollMinSize = new System.Drawing.Size(0, 0); 
            radTabStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(219)))), ((int)(((byte)(254))))); 
            radTabStrip.Dock = DockStyle.Fill; 
            radTabStrip.Location = new System.Drawing.Point(0, 0); 
            radTabStrip.Name = "radTabStrip"
            radTabStrip.ScrollOffsetStep = 5; 
            radTabStrip.TabScrollButtonsPosition = Telerik.WinControls.UI.TabScrollButtonsPosition.RightBottom; 
            radTabStrip.Text = "radTabStrip"
            //  
            // tabGridItem 
            //  
            tabGridItem.Alignment = System.Drawing.ContentAlignment.BottomLeft; 
            //  
            // tabItem1.ContentPanel 
            //  
            tabGridItem.ContentPanel.BackColor = System.Drawing.Color.Transparent; 
            tabGridItem.ContentPanel.CausesValidation = true
            tabGridItem.IsSelected = true
            tabGridItem.Margin = new System.Windows.Forms.Padding(4, 0, 0, 0); 
            tabGridItem.Name = "tabGridItem"
            tabGridItem.StretchHorizontally = false
            tabGridItem.Text = "Grid"
            //  
            // tabItem2 
            //  
            tabDetailItem.Alignment = System.Drawing.ContentAlignment.BottomLeft; 
            //  
            // tabItem2.ContentPanel 
            //  
            tabDetailItem.ContentPanel.BackColor = System.Drawing.Color.Transparent; 
            tabDetailItem.ContentPanel.CausesValidation = true
            tabDetailItem.Margin = new System.Windows.Forms.Padding(4, 0, 0, 0); 
            tabDetailItem.Name = "tabDetailItem"
            tabDetailItem.StretchHorizontally = false
            tabDetailItem.Text = "Item Detail"
             
            // TODO 
            // Add controls to show current row details in a form 
 
 
 
            grid.Dock = DockStyle.Fill; 
            grid.RowsChanged += new Telerik.WinControls.UI.GridViewCollectionChangedEventHandler(GridRowsChanged); 
            grid.DoubleClick += new System.EventHandler(GridDoubleClick); 
            // 
            // Add TabItems to TabStrip 
            // 
            radTabStrip.Items.AddRange(new Telerik.WinControls.RadItem[] { tabGridItem, tabDetailItem }); 
            // 
            // Add grid to tab 1 
            // 
            tabGridItem.ContentPanel.Controls.Add(grid); 
            // 
            // Add tab strip to form 
            // 
            Controls.Add(radTabStrip); 
        } 
 
 
        /// <summary> 
        /// Persist changes to current row to database. 
        /// </summary> 
        /// <param name="sender"></param> 
        /// <param name="e"></param> 
        private void GridRowsChanged(object sender, GridViewCollectionChangedEventArgs e) 
        { 
            Save(); 
        } 
 
 
 




In the constructor I add controls to the document including a RadGrid. When many documents are opened I have a UI similar to VisualStudio.

My Main form has a menu containing a delete button. When this button is clicked I want to delete the current grid row on the current active window.

My difficulty is that I cannot figure out how to reference the "delete item" code in the class LogWindow:
        public void DeleteRow() 
        { 
            // Delete code here 
 
            // then save changes to db 
            Save(); 
 
        } 


Any help would be appreciated.



Boryana
Telerik team
 answered on 27 Jul 2009
2 answers
393 views
Hi,

may be this question has been solved here but I cannot find it in the different threads. I have a class deriving from RadGridView. For example, say the class Grid in the test namespace. In design mode, the ThemeClassName property is set to the actual class name by the designer, so test.Grid in the example. But the problem is that I cannot find the theme names I want in  the drop down list. If I force the ThemeClassName property to "Telerik.WinControls.UI.RadGridView", the drop down list is filled with the right theme names but as soon as I save the file the designer reset the ThemeClassName to test.Grid, as I can see it in the file.
So I found the way to force ThemeClassName"Telerik.WinControls.UI.RadGridView" in the test.Grid constructor but it works in run time only; I cannot see the theme names in design mode.
What is the good way to proceed to apply themes to a derived class ?

thanks.
jpl
Top achievements
Rank 1
 answered on 25 Jul 2009
2 answers
87 views
Hello,

If I have a RadgridView and group by a column, colapse all the rows, then right click on one of the rows (on the blue group name in the RadGridView) I get the following error:

Object reference not set to an instance of an object.

at Telerik.WinControls.UI.RadGridView.ValidateColumnChange(GridViewColumn column)

at Telerik.WinControls.UI.GridViewTemplate.SetCurrentColumn(GridViewColumn column, Boolean update, Boolean shift, Boolean control)

at Telerik.WinControls.UI.BaseGridBehavior.SetCurrentPosition(GridRowElement row, GridCellElement cell)

at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDownRight(MouseEventArgs e)

at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDown(MouseEventArgs e)

at Telerik.WinControls.UI.RadGridView.OnMouseDown(MouseEventArgs e)

at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at Telerik.WinControls.RadControl.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Richard Slade
Top achievements
Rank 2
 answered on 24 Jul 2009
2 answers
308 views
Hi,

I was wondering why the ButtonElement of the RadButton is not available through the designer. I see that rootElement is, but if I add a screen tip to that, then the screen tip doesn't show, which is quite confusing.

I've had to add a shared method to our controls project to allow us to add screen tips to buttons like so..
 
 
    Public Shared Sub AddScreenTip(ByVal button As RadButton, ByVal headerText As StringByVal bodyText As String)  
        If Not button.ButtonElement.ScreenTip Is Nothing Then 
            button.ButtonElement.ScreenTip.Items.Clear()  
        End If 
        Dim Tip As New RadOffice2007ScreenTipElement()  
        Tip.CaptionLabel.Text = headerText  
        Tip.MainTextLabel.Text = bodyText  
        button.ButtonElement.ScreenTip = Tip  
    End Sub 
 
 

It seems strange to have to add screen tips this way. Could a Screen Tip interface be added to the RadButton at it's root level please?
Thanks

Richard
Richard Slade
Top achievements
Rank 2
 answered on 24 Jul 2009
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?