Telerik Forums
UI for WinForms Forum
1 answer
303 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
388 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
124 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
320 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
1 answer
101 views

Hello,

is it possible to set shape name by UI? I don't see name in Settings Pane. Or can I somehow customize Settings Pane to edit name of shape?

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

Hi, I made my own inherited version of RadDropDownList that uses own inherited version of RadAutoCompleteBoxElement for a TextBoxElement (I wanted tokenized text items). I also got my own custom arrow that inherits RadArrowButtonElement, because I do not use the DataSource at all (only Suggest items popup is shown by this custom arrow).
This control works fine if it is used in Designer of the regular form, but when created dynamically the AutoCompleteSuggestHelper.DropDownList.Popup.Click() event does not fire (sidenote: the event AutoCompleteSuggestHelper.DropDownList.KeyDown() event works).

When the control is not created in code behind it is working completely fine. Any suggestions on how to fix it?

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Nov 2021
1 answer
282 views

Hi, I have a problem with convert "Telerik.WinControls.Ui.RadDropDownList" to "System.Windows.forms.Control"



I used "Control" from "System.Windows.Forms.Control" to find the elements used in an application I'm reverse engineering, and found a "RadDropDownList" as per the attached screenshot:


I would like to change the index of this list, but I can't convert from "Control" to "RadDropDownList".

Can anyone help me?

Translating the print error:
Cannot cast type "System.Windows.Forms.Control" to "Tlerik.WinControls.UI.RadDropDownList"

Adding:

I already tried to cast "Control" to "ComboBox" and got the following error when running the application. So I tried to cast it with "RadDropDownList":

 

Translating the error:

An unhandled exception occurred in the application. If you click continue, the application will ignore this error and try to continue. If you click Terminate, the application will terminate immediately.

Cannot cast an object of type 'Telerik.WinControls.UI.RadDropDownList' to type 'System.Windows.Forms.ComboBox'

 

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Nov 2021
2 answers
728 views

Hello,

I'm using VS 2019 (Image 0)

Since the last update I'm getting this error trying to update projects: (image 1)

Failed to execute command.

System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\users\jonovoa\appdata\local\microsoft\visualstudio\16.0_8573c414\extensions\akzfqu3o.rq0\ProjectManagement\Upgrade\ScenarioDefinition.xml'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
   at System.Threading.CompressedStack.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
   at System.Xml.XmlTextReaderImpl.OpenUrl()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(String filename)
   at Telerik.VSX.WizardEngine.Configuration.ScenarioDefinition.Deserialize(String fileName)
   at Telerik.VSX.ProjectConfiguration.ProjectConfigurationTypeSelectorBase.GetScenario(ProjectManagementScenarioPath path)
   at Telerik.WinControls.VSX.ProjectConfigurators.ProjectConfigurationTypeSelector.ProjectUpgrade(IPropertyDataDictionary additionalPreWizardData)
   at Telerik.WinControls.VSX.ProjectConfigurators.StreamlinedProjectConfiguration.StartUpgradeWizard()
   at Telerik.WinControls.VSPackage.CommandExecutor.Execute(UInt32 commandId)
   at Telerik.VSX.VSPackage.PackageBase.CommandCallback(Object sender, EventArgs e)

 

 

I have tried to remove and reinstall from Telerik control panel, it didn't work.

I also tried removing and reinstalling the extension within visual studio. it didn't work. 

 

I have found that the path c:\users\jonovoa\appdata\local\microsoft\visualstudio\16.0_8573c414\extensions\akzfqu3o.rq0 (image 2)

does not contain the folder mentioned in the error description: 

c:\users\jonovoa\appdata\local\microsoft\visualstudio\16.0_8573c414\extensions\akzfqu3o.rq0\ProjectManagement 

 

I just noted that I have another path with all the files: (image 3)

C:\Users\jonovoa\AppData\Local\Microsoft\VisualStudio\16.0_8573c414\Extensions\p2gdkolo.2so\ProjectManagement\Upgrade

 

Finally:

Visual studio throws a couple of warnings due to UNRESPONSIVE EXTENSIONS, with the following offenders:

"Progress Telerik  UI for Winforms Extension version 2021.2.505.1" (image 4)

"Progess Telerik WInforms Converter version 2021.2.505.1" (image 5)

 

My installed version is: R2 2021 (2021.2.511.0) (image 6)

 

Please help me to solve this.

Thanks,

Jorge

GIAnet
Top achievements
Rank 2
Iron
 answered on 26 Nov 2021
2 answers
105 views

I'm currently migrating a 160-form application to the latest Telerik framework, and I need to do some processing which is common to all forms:

- checking for, and applying a user-saved theme

- positioning the form where the user last saved it.

I could implement a method call in the _load event for each form, but I wonder if there is a better way. Maybe a kind of 'load' event which applies to all forms. Or some way to modify RadForm - whilst still making the Designer work.

Does anyone have a soltion for this which is neater than adding a method call in each of 160 forms (and remembering to do it for any ones) ?

Ian
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 25 Nov 2021
2 answers
321 views

hi

Why do I want to uncheck all the form checkboxes, but the regular checkbox is done ?!

 

 

my code is

void ClearForm(GroupBox control)
        {
               
            
                foreach (Control chexkBox in control.Controls)
                {
                    if (chexkBox is CheckBox)
                    {
                        ((CheckBox)chexkBox).Checked = false;

                    }


                }

                foreach (Control textBox in control.Controls)
                {
                if (textBox.GetType() == typeof(TextBox))
                    {
                        ((TextBox)textBox).Text = "no";

                    }

                }
            

           


        }
Dinko | Tech Support Engineer
Telerik team
 answered on 25 Nov 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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
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?