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.
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;
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.
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 ?????
}
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.
how i can Adjust height of RadGridView (agendaview) automatically in UI for WinForms
thanks
Hi everyone,
as a key-feature for the RadTextBoxControl a localizable context menu is mentioned. I now have to take advantage of this feature, but cannot find any example or hint, how to do.
Additionally it would be interesting to know, how to customize a context menu and keep the standard functions like 'copy', 'paste', etc.
Any suggestions or examples?
Thanks in advance!
Hi,
I like to assign a FormatString to the CalculatorDropDown like Columns.FormatString in GridView-Control.
Example: A value 2.17 should be formated 2.17 m² to display the value in squaremeters.
Is there any property to set or any other solution to format the value in the Calculator-Control?
Regards
Hardy