Telerik Forums
UI for WinForms Forum
5 answers
394 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
257 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
363 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
179 views
User is unable to enter filter values when MasterGridViewTemplate.AllowEditRow is false.
Jack
Telerik team
 answered on 27 Jul 2009
1 answer
189 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
439 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
108 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
349 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
2 answers
157 views
I hope this is simple, how can I edit a cell to not allow spaces.  The cell is required, and if I hit the spacebar and then enter it accepts it. This is what I have to edit it right now:

 

private void StateRadGridView1_CellValidating(object sender, CellValidatingEventArgs e)

 

{

 

GridViewDataColumn column = e.Column as GridViewDataColumn;

 

 

if (e.Row is GridViewDataRowInfo && column != null && column.FieldName == "MntStaName")

 

{

 

if (string.IsNullOrEmpty((string)e.Value))

 

{

 

MessageBox.Show("Description cannot be blank.", "JMS Error Message", MessageBoxButtons.OK, MessageBoxIcon.Stop);

 

}

}

Victor
Telerik team
 answered on 24 Jul 2009
1 answer
253 views
Hi,

is it possible to dynamically load a default theme assembly at runtime an set the theme as application theme. The user should be able to choose between all available themes. Now I have an object for all themes on main form and a reference to each theme. But in order to save loading time I want to load the assembly of the configured theme at application start. I did not found any documentation or sample how to do this.


Regards,

Markus
Nikolay
Telerik team
 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)
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?