Telerik Forums
UI for WinForms Forum
1 answer
213 views
Hi
I want to disable all days except Monday for all Months in RAD dateTimePicker. I have wriiten the following Code but still able to select dates other than Monday... 

public Form1()
        {
            InitializeComponent();
            this.radDateTimePicker1.DateTimePickerElement.Opened +=new EventHandler(DateTimePickerElement_Opened);
           

   

        }

        private void DateTimePickerElement_Opened(object sender, EventArgs e)
        {
            CalendarTableElement table = ((this.radDateTimePicker1.DateTimePickerElement.GetCurrentBehavior() as
                RadDateTimePickerCalendar).Calendar.CalendarElement.CalendarVisualElement.Children[0].Children[1] as
                CalendarTableElement);
            foreach (CalendarCellElement cell in table.Children)
            {
                cell.Enabled = true;
               
                if (cell.Date.DayOfWeek != DayOfWeek.Monday)
                {
                    cell.Enabled = false;
                                     

                }

            }

Boyko Markov
Telerik team
 answered on 29 Jul 2009
1 answer
148 views
Dear Telerik,

I am currently having problems displaying a ComboBox column in RadGridView.  The following is my code:

         
            GridViewCheckBoxColumn colIsSelected = new GridViewCheckBoxColumn("Select"); 
            GridViewLookUpColumn colProjectRoles = new GridViewLookUpColumn("RoleID"); 
            colProjectRoles.DropDownStyle = RadDropDownStyle.DropDownList; 
            colProjectRoles.DisplayMember = "Name"
            colProjectRoles.ValueMember = "ID"
            colProjectRoles.DataSource = General.ProjectRoles; 
 
            rgvUsers.Columns.Add(new GridViewDataColumn("UserID")); 
            rgvUsers.Columns.Add(colIsSelected); 
            rgvUsers.Columns.Add(colProjectRoles); 
            rgvUsers.Columns.Add(new GridViewDataColumn("CompanyName")); 
            rgvUsers.Columns.Add(new GridViewDataColumn("LastName")); 
            rgvUsers.Columns.Add(new GridViewDataColumn("FirstName")); 
 
            rgvUsers.Columns["RoleID"].HeaderText = Properties.Resources.AssignUser_ProjectRole; 
            rgvUsers.Columns["CompanyName"].HeaderText = Properties.Resources.AssignUser_CompanyName; 
            rgvUsers.Columns["LastName"].HeaderText = Properties.Resources.AssignUser_LastName; 
            rgvUsers.Columns["FirstName"].HeaderText = Properties.Resources.AssignUser_FirstName; 
 
            rgvUsers.Columns["Select"].ReadOnly = false
            rgvUsers.Columns["RoleID"].ReadOnly = false
            rgvUsers.Columns["CompanyName"].ReadOnly = true
            rgvUsers.Columns["LastName"].ReadOnly = true
            rgvUsers.Columns["FirstName"].ReadOnly = true
 
            rgvUsers.Columns["UserID"].IsVisible = false
 
            foreach (TLUser user in userList) 
            { 
                object[] values = { user.UserId, false, Guid.Empty, user.CompanyName, user.LastName, user.FirstName }; 
                rgvUsers.Rows.Add(values); 
            } 

Boryana
Telerik team
 answered on 29 Jul 2009
2 answers
153 views
Hi Telerik team,
in our project we want to use Office2007Black, to do so I call following in base form's constructor ThemeResolutionService.ApplicationThemeName = "Office2007Black"
It works just fine. However I also want to override theme for specific component (for example RadGridView). I have placed RadThemeManager on our base From, but if Office2007Black is active, it supresses this the custom theme.
Is there any way to implement this to have simultaneously active Office2007Black for application and MyCustomTheme for RadGridView?
FilipN
Top achievements
Rank 1
 answered on 29 Jul 2009
1 answer
223 views
I extrapolated from the following Forum Post to figure out how to set ToolTips for my RadSpinEditor Control: http://www.telerik.com/community/forums/winforms/ui-controls/tooltip-does-not-work-on-radtextbox.aspx

I was able to set the ToolTip for the Up and Down Buttons of the Control but the one for the Text Box part of it doesn't appear to be working.  See code sample below:

        With CType(rspnNumPastUnits.RootElement.Children(0), RadSpinElement) 
            With .TextBoxItem 
                .AutoToolTip = True 
                .ToolTipText = "0 = Unit-To-Date" 
            End With ' --  
 
            With .UpButton 
                .AutoToolTip = True 
                .ToolTipText = "0 = Unit-To-Date" 
            End With ' --  
 
            With .DownButton 
                .AutoToolTip = True 
                .ToolTipText = "0 = Unit-To-Date" 
            End With ' --  
        End With ' -- CType(rspnNumPastUnits.RootElement.Children(0), RadSpinElement) 
 


Telerik Q1 2009 (v2009.1.9.414), VS 2005 (v8.0.50727.762 SP.050727-7600), XP SP3 on Core2Duo 2.99GHZ with 3GB.
Boryana
Telerik team
 answered on 29 Jul 2009
4 answers
113 views
Hi,
I am interested in posting articles about Telerik controls that i work with. It will be great if my question is answered.
How and where to posts articles and blogs about the work i do using Telerik RAD controls?
Sethuram Ragunathan
Top achievements
Rank 1
 answered on 29 Jul 2009
1 answer
178 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
562 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
157 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
98 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
525 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
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?