Dim Item As New Telerik.WinControls.UI.RadMenuItem
Item.Name =
"TestItem"
Item.Text =
"This is a test menu item"
RadRibbonBar1.StartMenuRightColumnItems.Add(Item)
Dim
cmdSQL As SqlCommand = New SqlCommand("ExecutiveReportOverView", sqlcon)
cmdSQL.CommandType = CommandType.StoredProcedure
cmdSQL.Connection.Open()
Dim da As SqlDataAdapter = New SqlDataAdapter(cmdSQL)
Dim ds As DataSet
ds =
New DataSet
da.Fill(ds)
I tried the Following Statements for RadChart it doesn't work.
RadChart1.DataManager.DataSource = ds
RadChart1.DataManager.DataBind()
What should I do to get the values in the chart?
Thanks
internal void FillDropDowns(bool bRefill) | |
{ | |
string sSuburbText = this.mcboSuburb.Text; | |
// string sTownText = this.cboTown.Text; | |
if (bRefill) | |
{ | |
this.LocationsSentTo.Clear(); | |
this.LocationsSentToTableAdapter.Fill(this.DataSet, "LocationsSentTo"); | |
} | |
this.mcboSuburb.DataSource = this.LocationsSentTo; // This is a wrapper property around the DataSet table referred to above. | |
this.mcboSuburb.DisplayMember = "postCode_prefix"; | |
this.mcboSuburb.ValueMember = "postCode"; | |
RadGridView gridView = this.mcboSuburb.MultiColumnComboBoxElement.EditorControl; | |
GridViewDataColumn prefixColumn = gridView.Columns["postCode_prefix"]; | |
prefixColumn.HeaderText = "Suburb"; | |
prefixColumn.Index = 0; | |
prefixColumn.BestFit(); | |
GridViewDataColumn postCodeColumn = gridView.Columns["postCode"]; | |
postCodeColumn.HeaderText = "PostCode"; | |
postCodeColumn.Index = 1; | |
postCodeColumn.BestFit(); | |
GridViewDataColumn sentToColumn = gridView.Columns["sentTo"]; | |
sentToColumn.HeaderText = "SentTo (D)"; | |
sentToColumn.Index = 2; | |
sentToColumn.IsVisible = Program.DebugMode; | |
sentToColumn.BestFit(); | |
GridViewDataColumn siteIdColumn = gridView.Columns["siteId_fk"]; | |
siteIdColumn.HeaderText = "Site ID (D)"; | |
siteIdColumn.Index = 3; | |
siteIdColumn.IsVisible = Program.DebugMode; | |
siteIdColumn.BestFit(); | |
if (this.mcboSuburb.EditorControl.MasterGridViewTemplate.FilterExpressions[this.mcboSuburb.DisplayMember] == null) | |
{ | |
FilterExpression filter = new FilterExpression( | |
this.mcboSuburb.DisplayMember, FilterExpression.BinaryOperation.AND, | |
GridKnownFunction.Contains, GridFilterCellElement.ParameterName); | |
filter.Parameters.Add(GridFilterCellElement.ParameterName, true); | |
this.mcboSuburb.EditorControl.MasterGridViewTemplate.FilterExpressions.Add(filter); | |
} | |
this.mcboSuburb.SelectedItem = null; | |
this.mcboSuburb.Text = sSuburbText; | |
} |
When populating a schedule with appointments from my database, i want to have the appointments automatically have their resources (people) assigned. How does this work? Am I to assign the ResourceID of the AppointmentMappingInfo object the resource ID from my database? I am using a business object for my appointments and populating the Resources collection of the RadScheduler manually with the resource name and ID.
What are the options of getting the appointments and resources to be related to each other so when the schedule is displayed, the resource drop down in the Edit Appointments Dialog is assigned the resource? Also, when viewing the schedule in resource grouping mode, the resources are assigned to their appointments.
Me.RadScheduler1.AppointmentFactory = New CustomAppointmentFactory
dataSource.EventProvider.AppointmentFactory = RadScheduler1.AppointmentFactory
Dim appointmentMappingInfo As New AppointmentMappingInfo()
appointmentMappingInfo.Start =
"Start"
appointmentMappingInfo.[End] = "End"
appointmentMappingInfo.Summary = "Subject"
appointmentMappingInfo.Description = "Description"
appointmentMappingInfo.Location = "Location"
appointmentMappingInfo.UniqueId = "Id"
appointmentMappingInfo.Exceptions = "Exceptions"
appointmentMappingInfo.ResourceId = "EmpID"
dataSource.EventProvider.Mapping = appointmentMappingInfo
' assign the generic List of MyAppointment as the EventProvider data source
dataSource.EventProvider.DataSource = appointments
Me.RadScheduler1.DataSource = dataSource
Hi,
In the DateTimePicker I'm looking for an event which happens when a user changes the date (by mouse or keyboard) but not when a date is set- (for example: DateTimePicker1.Value=DateTime.Now)
In other controls I found events or properties which supported this scenario, but in this case I couldn't find.
Thanks