Telerik Forums
UI for WinForms Forum
3 answers
802 views
Hello,

i used to have a code in vb that used to retrieve all the forms in my project and add them to a group box, here it is: 

Dim formType As Type
 
       'An assembly in .NET is an executable file (.EXE or .DLL)
       'GetType returns the type object for the specified typename
 
       For Each formType In sender.GetType().Assembly.GetTypes()
 
           'Select only the application forms inherited from the generalfunctionsform and add them to formList
           If UCase(formType.BaseType.ToString).Contains("SYSTEM.WINDOWS.FORMS.FORM") Then
               MsgBox(formType.BaseType.ToString)
               formList.Add(CType(Activator.CreateInstance(formType), Form))
           End If
       Next
 
       'Convert each form reference to a name string and add an entry to the formNames list
       For Each form As Form In formList
           formsListBox.Items.Add(form.Name.ToString)
       Next

but now that im using radForms, it doesnt seem to be able to return them to me as it loops throught the types in the projects. Anything i can do to get a ll the radForms in my project?

Thank you in advance
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 May 2019
2 answers
244 views

Hi,

I have a Chart with dateTimes on the X Axis. I would like to print only the hour and minutes as it isn't readable otherwise (Original.PNG).
When I try to format it by using categoricalAxis on each series, it formats it correctly but creates an axis for each serie (Formatted.PNG).

I haven't found a way to keep only 1 Axis but with the formatted dateTimes.
I joined a copy of the important part of my code.

Dimitar
Telerik team
 answered on 07 May 2019
1 answer
118 views

Hello. the image I've attached basicly tells the outcome I'm looking for. The only difference would be that I would like to keep the date part. So instead of 'John's BD' - It would be '8 John's BD'. I can't find any documentation on this.

Thanks in advance

Dimitar
Telerik team
 answered on 07 May 2019
1 answer
168 views

Hello,

Again a problem regarding the hierarchy mode of the RadGridView. Datasource is a hierarchy object with multiple levels (based on BindingList).

  1. If the childrows are expanded and then the row is moved (in this case via drag & drop, but the actual move done via the list) and the row is expanded again, the childrows are the rows of the old item. If the childrows are not expanded bevor the move operation they are displayed correctly)

    Sample project and screen recording is attached.
    (In the screen recording, after the move the child rows of "Item 1" should be "Item 1 - 1 - x" but they are "Item 1 - 2 - x")

  2. Also, in this mode the custom GridDataRowBehavior (as it's described in the examples) is not working, the OnMouseDownLeft is never called. Is this a bug or is it an expected behavior?

Kind regards,

Christian

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 May 2019
6 answers
170 views
Hi,

Is it possible to create a CheckBox that looks like:

Title
 ⃞ Description

There is one TextPrimitive in the ImageAndTextLayoutPanel. Is it possible at all to add another one dynamically? 

I am just trying to learn your framework to make my own controls.

- jorge
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 May 2019
3 answers
228 views

Hello I find the spell checking function provided in Telerik controls to be confusing.   Is there an example of using the spell checker against standard text boxes in a winforms application?   All the documentation that I have found so far only refers to RichTextEditor input, or else RichTextbox, which I understand to be deprecated, but I need to spell check a standard windows textbox.   I also need it to be able to check uppercase as a option.

Thanks 

Dimitar
Telerik team
 answered on 03 May 2019
1 answer
69 views

My model of  'Car' class , and all its datamembers and attributes is defined in the server of WCF project.

In my client I use the RadDataEntry to view List of 'Car's.

But even that I've  defined in the model on some datamebers as [Browsable=('False')] or [RadSorOrder(1)] ,in the client it does not has any impact on the RadDataEntry Ui element.

But if I save the model (or just give refernce in the client), it works correctly.

What do I need to do in order to keep the model only in the sever and also gets all the attributes work correctly in the client/Ui?

Thanks

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 May 2019
2 answers
137 views

I have a spreadsheet with about 30,000 rows and 20 columns. The "find" functionality works as expected, but the search itself takes over 5 seconds for it to find the relevant data. The same functionality in excel takes miliseconds.

I realize that it will never be as fast as searching in excel, but is there any way to improve performance to get closer to the excel search times (i.e. Indexing the data or only allowing searching through specific columns). 

Here is how I am loading the data currently: 

            string fileName = @"C:\temp\large_data.xlsx";
            var formatProvider = new XlsxFormatProvider();
            using (Stream input = new FileStream(fileName, FileMode.Open))
            {
                radSpreadsheet1.Workbook = formatProvider.Import(input);
            }

Canon Fazenbaker
Top achievements
Rank 1
 answered on 01 May 2019
20 answers
522 views


Hello Telerik Team,


I have a question about the radcollapsiblepanel. When

I create a new collapsiblepanel programmatically the isExpanded property is not

working.

01.public partial class Form1 : Form
02.  {
03.      public Form1()
04.      {
05.          InitializeComponent();
06.          RadCollapsiblePanel pn = new RadCollapsiblePanel();
07.          pn.Dock = DockStyle.Left;
08.          pn.ExpandDirection = RadDirection.Right;
09. 
10.          pn.IsExpanded = false;    <------ Is not working
11. 
12.          this.Controls.Add(pn);          
13.         
14.      }
15.  }



 



Is there something that I’m missing?





Kindest
regards,

Arif

Dimitar
Telerik team
 answered on 01 May 2019
1 answer
280 views

I have an application in which I create the GUI controls programatically without using the designer.  The main body of the application uses a RadPanel which has a RadPageView docked to fill with several RadPageViewPages.

When creating the pages, I create all the controls for each page from the constructor and program the layout and size of the controls in the resize event.  There are several custom RadListView and Gridview's which need to be sized according to the size of the screen dimensions.

The problem I have is that the actual size of the Page does not seem to take effect until it is actually displayed in form itself.  The initial display of the page does not trigger the resize event the first time, but does if I re-call the sizing method once it is displayed on screen.

In order to fix this, I'm using a "dirty" method of displaying a splashscreen on top of the form, and displaying the pages one by one in the background once the main form's Main_Shown() is triggered.  Once all pages have been displayed the first time, I select the start page and close the splashscreen to show the application.  This works "fine" in that the components all have the right layout and sizing because they have already been displayed once, but I would like to know if there's a better way to go about this.  I don't want to have to rely on hiding and toggling through all the pages as a method of setting the correct sizes for the components and their visual items.

I have tried calling the layout setting method from Resize and SizeChanged events in the RadPaveViewPages, but this does not seem to work.

Thanks

Dimitar
Telerik team
 answered on 01 May 2019
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)
Chart (obsolete as of Q1 2013)
Form
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
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
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
NavigationView
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?