Telerik Forums
UI for WinForms Forum
20 answers
473 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
225 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
2 answers
108 views

Is there any way to double click the ruler and get the time at the point of the cursor click, in order to schedule a new appointment at that time?  When the schedule gets crowded, it's easier to click on the ruler versus finding an empty spot at the desired time to click.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 May 2019
3 answers
188 views

I have Appointments table (name table is "Plan"). This table have are 83092 rows. (This data on 2015-2019 years)

Next code working very slow(near 2 minutes).

How can Scheduler get rows from DataSet, on selecting date in SchedulerNavigator?

 

AppointmentMappingInfo planmapping = new AppointmentMappingInfo();
           this.schedulerBindingDataSource1.EventProvider.DataSource = this.planBindingSource;
           planmapping.Description = "Comment";
           planmapping.End = "DateEnd";
           planmapping.MasterEventId = "MasterEventID";
           planmapping.RecurrenceRule = "RecurrenceRule";
           planmapping.ResourceId = "id_PlanType";
           planmapping.Start = "Date";
           planmapping.Summary = "LastName";
           planmapping.UniqueId = "id";
           planmapping.FindBySchedulerProperty("ResourceId").ConvertToDataSource = ConvertResourceToDataSource;
           planmapping.FindBySchedulerProperty("ResourceId").ConvertToScheduler = ConvertResourceToScheduler;
           this.schedulerBindingDataSource1.EventProvider.Mapping = planmapping;
           ResourceMappingInfo plantypeMapping = new ResourceMappingInfo();
           plantypeMapping.Name = "Name";
           plantypeMapping.Id = "id";
           this.schedulerBindingDataSource1.ResourceProvider.DataSource = this.medClinicDataSet.PlanType;
           this.radScheduler1.DataSource = this.schedulerBindingDataSource1;
            
           this.planTableAdapter.Connection.ConnectionString = CData.Setting.SQLConnectString();
           this.planTypeTableAdapter.Connection.ConnectionString = CData.Setting.SQLConnectString();
 
           // TODO:"medClinicDataSet.PlanType".
           this.planTypeTableAdapter.Fill(this.medClinicDataSet.PlanType);
           // TODO:  "medClinicDataSet.Plan".
           this.planTableAdapter.Fill(this.medClinicDataSet.Plan);
            this.radScheduler1.GroupType = GroupType.Resource;
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 May 2019
5 answers
337 views

Is there a best practices method to saving a dock or grid layout to a SQL server 2016 column, instead of a file?  And should the column be xml type?

I have seen two methods discussed by Telerik.  This first one creates an xml string with a utf-16 header.  Eg: <?xml version="1.0" encoding="utf-16"?>.  When 'Inserted Into' the db, and error results - XML parsing: line 1, character 39, unable to switch the encoding.

Dim wr As StringWriter = New StringWriter()
radDock1.SaveToXml(wr)
Dim layout As String = wr.ToString() 

 

The second method creates an xml string with a utf-8 header, which can be 'inserted into' the sql db without error.

Using ms As MemoryStream = New MemoryStream()
    radGridView1.SaveLayout(ms)
    Dim layout As String = Encoding.ASCII.GetString(ms.GetBuffer(), 0, CInt(ms.Length))
End Using

 

Overall what is the best method/technique for saving this xml data to a sql server db?  Thanks.

Brendan
Top achievements
Rank 1
 answered on 30 Apr 2019
2 answers
183 views
I want to create multiple pages on one `Form` without showing tab pages!   
How can i do that?  
How can i hide PageView's header of pages?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[This video][1] shows a trick using panels.   
But what is the correct way using Telerik PageView?

  [1]: https://www.youtube.com/watch?v=-rtGpZGyjZY
Zakhaliya Ivarnovich
Top achievements
Rank 1
 answered on 30 Apr 2019
5 answers
263 views
Hello. I'm going to create a special chart in my project. One of the requirements of this particular chart is the possibility of bullet deformation for lines drawn. Is there a possibility to change bullet points on the chart into shapes or images? And is there a possibility to paint several grids?
If this is possible, please provide guidance on how to implement this item?
The image is in the attachment.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Apr 2019
4 answers
224 views

I want to add RadTitleBar to the RadForm, so I'v created a RadTitleBarElement variable, how do i add it to RadForm(FormElement)?

My goal is to add a close, minimize, and maximize function  to the RadForm.

 

 public RadForm1()
        {
            InitializeComponent();

            
            titleBar = new RadTitleBarElement();

            titleBar.FillPrimitive.Visibility = ElementVisibility.Hidden;
            titleBar.MaxSize = new Size(0, 30);
            titleBar.Children[1].Visibility = ElementVisibility.Hidden;
            titleBar.AllowResize = false;
            titleBar.CloseButton.Parent.PositionOffset = new SizeF(0, 0);
            titleBar.CloseButton.MinSize = new Size(10, 10); 
            titleBar.CloseButton.ButtonFillElement.Visibility = ElementVisibility.Collapsed;

            titleBar.MinimizeButton.MinSize = new Size(10, 10);
            titleBar.MinimizeButton.ButtonFillElement.Visibility = ElementVisibility.Collapsed;

            titleBar.MaximizeButton.MinSize = new Size(10, 10);
            titleBar.MaximizeButton.ButtonFillElement.Visibility = ElementVisibility.Collapsed;

            titleBar.CloseButton.SetValue(RadFormElement.IsFormActiveProperty, true);
            titleBar.MinimizeButton.SetValue(RadFormElement.IsFormActiveProperty, true);
            titleBar.MaximizeButton.SetValue(RadFormElement.IsFormActiveProperty, true);
            titleBar.BackColor = Color.Red;
            titleBar.Close += new TitleBarSystemEventHandler(titleBar_Close);
            titleBar.Minimize += new TitleBarSystemEventHandler(titleBar_Minimize);

            titleBar.MaximizeRestore += new TitleBarSystemEventHandler(titleBar_MaximizeRestore);

    
            this.RadFormElement ?????
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Apr 2019
9 answers
356 views

I've a RadCollapsiblePanel that contains a radpanel (dockstyle.left) plus a  radsplitcontainer (dockstyle.fill).

The radcollapsiblepanel sizing mode is set to .FitToContentHeight.

It collapses ok, but when it expands it seems to resize to the content height correctly but the contents aren't being restored with it. See attached file.

I've tried resetting the contained splitcontainer dock to botton, then fill, but that made no difference.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Apr 2019
3 answers
491 views

how i can Adjust height of RadGridView (agendaview) automatically in UI for WinForms

thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Apr 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
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
DateOnlyPicker
TimeOnlyPicker
+? 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?