Hello,
i want to write a text over several cells.
can I merge Cells into one RadGridView? As in Excel.
thanks
private void dropDownList_KeyDown(object sender, KeyEventArgs e){ if (e.KeyData == Keys.Enter) { this.ProcessTabKeys(true); }}private void dropDownList_KeyPress(object sender, KeyPressEventArgs e){ if (e.KeyChar == (char)Keys.Enter) { this.ProcessTabKeys(true); }}private void dropDownList_KeyDown(object sender, KeyEventArgs e){ if (e.KeyCode == Keys.Enter) { nextDropDownList.Focus(); e.Handled = true; }}private void dropDownList_KeyPress(object sender, KeyPressEventArgs e){ if (e.KeyChar == (char)Keys.Enter) { nextDropDownList.Focus(); e.Handled = true; }}void rgvOperationsGrid_ViewCellFormatting(object sender, CellFormattingEventArgs e) { if (e.ColumnIndex == 2) { ((RadCheckBoxElement)e.CellElement.Children[0]).CheckMarkPrimitive.CheckElement.ForeColor = Color.DarkGreen; } else if (e.ColumnIndex == 3) { ((RadCheckBoxElement)e.CellElement.Children[0]).CheckMarkPrimitive.CheckElement.ForeColor = Color.DarkRed; } }Hi
I'm using Q2 2011 SP1 (v2011.2.11.0831) and have discovered differences in Appointment.Start + End DateTime values between Dayview Viewtypes and Monthview,Timelineview.
//all views are initialized with if (utcPlusOneTimeZone == null) { //utcPlustOneTimeZoneInfo = new SystemTime.TimeZoneInformation(); //utcPlustOneTimeZoneInfo = TimeZoneInfo.Local; //utcPlustOneTimeZoneInfo.bias = -60; //utcPlustOneTimeZoneInfo.daylightBias = -60; //utcPlusOneTimeZone = new SchedulerTimeZone(utcPlustOneTimeZoneInfo, "CH"); utcPlusOneTimeZone = new SchedulerTimeZone(TimeZone.CurrentTimeZone); } switch (vt) { case SchedulerViewType.Day: if (_dayView == null) { _dayView = radScheduler1.GetDayView(); _dayView.DefaultTimeZone = utcPlusOneTimeZone; } break; case SchedulerViewType.Month: if (_monthView == null) { _monthView = radScheduler1.GetMonthView(); _monthView.DefaultTimeZone = utcPlusOneTimeZone; } break; case SchedulerViewType.Timeline: if (_timelineView == null) { _timelineView = radScheduler1.GetTimelineView(); _timelineView.DefaultTimeZone = utcPlusOneTimeZone; } break; //save function calls webservice DateTime start = app.Start.ToLocalTime(); DateTime end = app.End.ToLocalTime(); if (systemService.ChangePlanningElement(app.ElementGID.ToString(), start,end)) return true; - Month + Timelineview : app.Start.Kind = Unspecified and ToLocalTime() adds 2hours (utc+1 + Summertime)
- other dayview type : app.Start.Kind = Local and and ToLocalTime() = 0
//Workaround before calling webservice TimeSpan tsOffset = app.Start.ToLocalTime() - app.Start; DateTime start = app.Start.ToLocalTime() - tsOffset; //subtracts 0 or TimezonedifferenceWhy ist MonthCellElement.Date of Type Unspecified with TimezoneOffset=2h and SchedulerCellElement.Date of type Local with TimezoneOffset=0h
Thanks for clearing, Daniel
Greetings all
I have a simple winform app that loads a RadGridView and optionally exports it to Excel. The app works fine in the Development environment and as a standalone exe. However, when the code is moved to Citrix, the invocation of the RadGridViewExporter.Export method triggers an Excel error: "an error occured and this feature is no longer functioning properly". Once this error dialog is clicked, the export happens successfully.
I understand from various searches that this is likely a config issue with the server and not a Telerik internal problem. My hope is that someone has hit this before and might suggest a work-around from the application side.
We are using VS2010, .Net 4.0, and Q2/2011 Radcontrols for Winforms.
Relevant code follows. Many thanks for any advice.
private void Export(String filepath)
{
//this.radButtonExport.Enabled = false;
exporter =
new RadGridViewExcelExporter();
BackgroundWorker worker = new BackgroundWorker();
worker.DoWork +=
new DoWorkEventHandler(DoWork);
worker.RunWorkerCompleted +=
new RunWorkerCompletedEventHandler(bg_RunWorkerCompleted);
worker.RunWorkerAsync(filepath);
exporter.Progress +=
new ProgressHandler(exportProgress);
radProgressBar1.Visible = true;
radProgressBar1.Text =
string.Format("Exporting to {0}", filepath);
radProgressBar1.Width = radGridView1.Width * 2/3;
}
private void DoWork(object sender, DoWorkEventArgs e)
{
exporter.Export(radGridView1, (
String)e.Argument, "script results");
}
