Telerik Forums
UI for WinForms Forum
1 answer
238 views

I'm using the RadSpreadsheet control, and it's ribbon bar.

I have a simple menu, which when clicked, calls another dialog.

But the menu structure overlays the new dialog:

The menu items have gone, including the one which the user just clicked, which is good, but the outline of the ribbon is still visible.

I don't have any control over the popup window, as it comes from another application, so I can't tell it to 'bring to top'.

Has anyone else seen this ? I don't think it's specific to the RadSpreadsheet ribbon bar - i've seen the same effect on other ribbon bars.

Is there any way to avoid this ? Not a disaster, but it just looks poor. The blank space does go away, but only once everything else has completed.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Dec 2021
2 answers
238 views

Hi guys,

I am new in the C# winform design and I am trying to create a scheduler to help manager organize employee timesheet and do the punch-in punch-out. There are couple things I need some helps.

1) When I am reading the help form, I found a video about introduction of RadScheduler. https://www.youtube.com/watch?v=RHgMwE2vlsc&t=10s

But when I'm going to Blogs.telerik.com/robertshoemate I cannot find source code. Could you tell me where I can find source code? That really help me to understand how radscheduler working

2)

When I am desining Radscheduler form, The UI is always said "new appointment" and when I click "add new appointment" button the edit appointment textbox is setup in specifc form (I attached picture down below)

Could tell me where I can design this edit_appointment form? I want to change this UI. For example, change the subject Name or delete couple textbox

Regards,

Mike

Mike
Top achievements
Rank 1
Iron
Iron
 answered on 20 Dec 2021
1 answer
127 views

Hi all,

Does anyone know if there will ever be new themes or updates to the themes?

Would like to see some new ones at some stage. Or does have any they could share?

Thanks

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Dec 2021
1 answer
157 views

Hi all,

Best greetings to you all. I am currently working with a custom RadGridView in WinForms form. I am using Office 2019 Light theme along with Visual Style Builder to customize (just start as amateur). When applying the theme, I think the theme manager is overriding my code with background color and Selection Mode which was initially subscribed to FullRowSelect but later changed to CellSelect and also the application freeze as well.

I am attaching some files in the below. 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Dec 2021
1 answer
167 views

Hi there,

can I draw a polygon with stripes (lines) on RadMap?

I know how to make a plain (one color) polygon but it is possible to have stripes on the polygon?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Dec 2021
0 answers
157 views

hi

how handling error

System.ArgumentOutOfRangeException: 'Day must be between 1 and 29 for month 12.

Parameter name: day'

 

i try handling in key peress but show error

my cod is

 

                                        

public static bool CheckIsLeapYear(DateTime date)
        {
            PersianCalendar pc = new PersianCalendar();
            int year, day;
            year = pc.GetYear(date);
            day = pc.GetDayOfMonth(date);
            bool result = false;
            bool isleapyear = false;
            isleapyear = pc.IsLeapYear(year);
            if (isleapyear!=true && day>29)
            {
                result= true;


            }
            return result;



        }

 

----------------------------------------------------------------------------------------------------

 

 

 private void radDateTimePickerDateOfBirth_KeyDown(object sender, KeyEventArgs e)
        {
           

            
           
                if (CheckIsLeapYear(radDateTimePickerDateOfBirth.Value))
                {


       
                radDateTimePickerDateOfBirth.Value = DateTime.Now;
                 
                }
            }


ebrahim
Top achievements
Rank 1
Iron
Iron
 asked on 08 Dec 2021
1 answer
431 views

When I use the excel like filters of equals, greater than, or greater than or equal to with date columns I find no matches. 

My DateTime values bound to the column have 00:00:00.0000 as the time component, like 9/30/2008 00:00:00.00000.  When I pick this date on the calendar control in the excel like filter popup it works fine, but if I pick Available Filters -> Equals (or greater than, or greater than or equal to) and enter 9/30/2008 then it does not match the 9/30/2008 00:00:00.00000 rows. 

I have tried this with FilteringMode = Date and FilteringMode = All, but it does not seem to make a difference.  It seems like equals etc. is comparing it to like 9/30/2008 00:00:01.00000 or something crazy like that. 

Is there something I can do to get these equals etc. filters working?

 

Using version 2021.2.615.40

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Dec 2021
1 answer
572 views

I created an unbound MultiColumnComboBox and added the multi-select functionality from the how-to documentation. This works fine, but I'd now like to add some rows and set them as selected when the form loads up based on some text input. So I have gone with the below:

Imports Telerik.WinControls.UI

Public Class Form1
    Private Extender As New RadMultiColumnComboBoxSelectionExtender
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        InitCombo()

        Extender = New RadMultiColumnComboBoxSelectionExtender()
        Extender.AssociatedRadMultiColumnComboBox = combo1

        AddExtraItems()
    End Sub

    Private Sub InitCombo()
        combo1.MultiColumnComboBoxElement.Columns.Add("CaseCode")
        combo1.MultiColumnComboBoxElement.Columns.Add("Title")
        combo1.DisplayMember = "CaseCode"
        combo1.ValueMember = "CaseCode"

        combo1.EditorControl.Rows.Add("P1234", "Test Case 1")
        combo1.EditorControl.Rows.Add("A1234", "Test Case 2")
    End Sub

    Private Sub AddExtraItems()
        AddRow("T12345", "Test Case 3", True)
        AddRow("P23445", "Test Case 4", True)
    End Sub

    Private Sub AddRow(ByVal CaseCodeString As String, ByVal Title As String, Optional ByVal Pinned As Boolean = False)
        Dim row = combo1.EditorControl.Rows.NewRow()
        row.Cells(0).Value = CaseCodeString
        row.Cells(1).Value = Title

        If Pinned Then
            row.PinPosition = PinnedRowPosition.Top
            row.IsSelected = True
            row.Tag = True
        End If

        combo1.EditorControl.Rows.Add(row)
    End Sub

    Private Sub combo1_DropDownClosing(sender As Object, args As RadPopupClosingEventArgs) Handles combo1.DropDownClosing
        args.Cancel = True
    End Sub
End Class

This adds items to the list and has them ticked however items do not appear as tokens in the Combobox and if I open the combobox and tick/untick an item the application crashes and the form closes. Is there a specific way to do this? I have attached a small example project to demo what is happening.

Thanks in advance for any help!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Dec 2021
1 answer
188 views

Hello,

I have problem wit DesktopAlert control. We use it as notification popup and it works great. I can close on click all popups until I create new modal form on top of current form. Then I can close only newly created alerts, but old alerts stay there and cant be closed until modal form is closed. Is there solution to make closable all alerts at all time? Problem is that alerts can obfuscate UI of new modal form and I cant then close this form and there is no solution.

Here is sample project which simulate this problem.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Dec 2021
1 answer
574 views

Hi~!

I am using RadPropertyGrid in WinForm. 

One item of propertygrid is File Path(string). When user click the File Path element to edit, I want to show Openfiledialog.

When I use Windows default control, it works well, but when I use telerik control, it doesn't work.

{

        string _LogFile = "";

        [Category("Design")]
        [Editor(typeof(FileLocationEditor), typeof(System.Drawing.Design.UITypeEditor))]
        [Description("Viewer background image path.")]
        public string LogFileName
        {
            get
            {
                return _LogFile;
            }
            set
            {
                _LogFile = value;
            }
        }
    }

    public class FileLocationEditor : UITypeEditor
    {
        public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
        {
            return UITypeEditorEditStyle.Modal;
        }

        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            using (OpenFileDialog ofd = new OpenFileDialog())
            {
                // set file filter info here
                if (ofd.ShowDialog() == DialogResult.OK)
                {
                    return ofd.FileName;
                }
            }
            return value;
        }
    }
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Dec 2021
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
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?