Telerik Forums
UI for WinForms Forum
1 answer
187 views
Hello Dear Experts. :)
I would like to set the conditional formatting from the code for one column.
The row should change color when the value in column (type datetime) subtracted from the results of today's date is less than 1 month.
Is there any possibility to do this? Or do I have to subtract the date using sql, and select as an additional value?

Best Regards
Krzysztof
Jack
Telerik team
 answered on 28 Jul 2009
6 answers
594 views
I have a project that needs expedited and I'm new to Telerik components so I need some advice please.

I was hoping to use LINQ to populate my grid and I'm using a binding source as an intermediary. The grid was not saving my data and it is not clear by the documentation on how to do this. However, it appears, via forum suggestions, that I'll need to create some type of saving mechanism in the RowValidated event to accomplish this if I use LINQ.

So, would it be faster for me to use a dataset and tie the grid into that instead? Are there any considerations when doing it this way? I'm hoping that I can create the dataset, tie the grid to it and I'll be done.

Thank You.

Julian Benkov
Telerik team
 answered on 28 Jul 2009
1 answer
165 views
I can add the components for all the WinForm controls to our OpenSpan visual designer and they work awesomely. Great solid work Telerik. This allows my customers to drag n drop all the Telerik windows controls into the OpenSpan Studio so they can drive automations and integrations to any enterprise legacy application (win32, web, java, lotus, mainframe etc.,) running on the desktop.

However, in the demo, I can see the Win Integration components but they don't appear to be in the win.controls dll like all the other visual components.

Is there a plan to have them as components. OpenSpan Studio is a visual designer and automation IDE and I didn't want our customers having to drop to code per se' if they don't have to.

Thanks.

Francis Carden
Founder, OpenSpan Inc.,
www.openspan.com
Mike
Telerik team
 answered on 28 Jul 2009
1 answer
105 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
548 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
412 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
272 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
381 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
193 views
User is unable to enter filter values when MasterGridViewTemplate.AllowEditRow is false.
Jack
Telerik team
 answered on 27 Jul 2009
1 answer
197 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
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?