Hi there,
I'm using a RadScheduler with the month view as ViewType in my WindowsForms application. The main goal is the following:
I need to set the width of each appointment based on integer values. For example: I have a total (100%) of 41. It should now create an appointment with value 41 with the full width. So far so good, this is easy. But I need now two different appointments ("Open" and "Done") with a percentage width of the 41. E.g. 27 "Open", so the width of this appointment should be about 66% of the full width. Then I have 14 for "Done", which should be an appointment with about 33% of the full width. I provided an example image of how it should look at the end.
I hope you know what I mean. Is this possible?
I add the appointments like this:
schedule.FocusedDate = DateTime.Today;schedule.Resources.Add(new Resource() { Id = new EventId(1), Name = "PlannedDay", Color = Color.LightGreen });schedule.GroupType = GroupType.Resource;schedule.ActiveView.ResourcesPerView = 2;schedule.Appointments.Clear();Appointment app1 = new Appointment(DateTime.Today.AddDays(2), new TimeSpan(0, 0, 5), "Total: 41 Boxes");Appointment app2 = new Appointment(DateTime.Today.AddDays(2), new TimeSpan(0, 0, 4), "Open: 27 Boxes");Appointment app3 = new Appointment(DateTime.Today.AddDays(2), new TimeSpan(0, 0, 3), "Done: 14 Boxes");app1.AllowEdit = false;app1.AllowDelete = false;app1.ResourceId = new EventId(1);app2.AllowEdit = false;app2.AllowDelete = false;app2.ResourceId = new EventId(1);app3.AllowEdit = false;app3.AllowDelete = false;app3.ResourceId = new EventId(1);schedule.Appointments.Add(app1);schedule.Appointments.Add(app2);schedule.Appointments.Add(app3);How can I only transfer Datagridview selected row to a Radgridview with the same columns ?

In RadGridView, the user can set the string to search.
How to determine that RadGridView is searching? Is it possible to programmatically interrupt the search process?
If there are many rows in the table, the search can take quite a long time. If the user does not wait for the end of the search and closes the form with the RadGridView, an error occurs.
************** Текст исключения **************
System.ObjectDisposedException: Доступ к ликвидированному объекту невозможен.
Имя объекта: "RadGridView".
в System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
в System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
в Telerik.WinControls.UI.GridSearchCellElement.searchRow_SearchProgressChanged(Object sender, SearchProgressChangedEventArgs e)
в Telerik.WinControls.UI.GridViewSearchRowInfo.OnSearchProgressChanged(SearchProgressChangedEventArgs e)
в Telerik.WinControls.UI.GridViewSearchRowInfo.ReportSearchProgress(Int32 percent, GridSearchResultCellInfo resultCell, GridSearchResultCellCollection resultCells)
в Telerik.WinControls.UI.GridViewSearchRowInfo.TraverseRows(DoWorkEventArgs e)


I use RadSpreadSheet to view xlsx stored in the database (so they need to be protected from editing). But for some worksheet, this leads to the following error:
System.ArgumentException: algorithmName
в Telerik.Windows.Documents.Utilities.Guard.ThrowExceptionIfNullOrEmpty(String param, String paramName)
в Telerik.Windows.Documents.Common.Model.Protection.ProtectionHelperBase.GenerateHashBase64(String password, String salt, String algorithmName, Int32 spinCount)
в Telerik.Windows.Documents.Spreadsheet.Model.Protection.ProtectionData.EnforceProtection(String input)
в Telerik.Windows.Documents.Spreadsheet.Model.Sheet.ProtectSheet(String password)
I cannot submit the file, as it contains confidential information. Perhaps the reason is that the worksheet contains links to other files that are not on this computer.
Here's a line from my program that causes an error:
tem.Protect("abc", WorksheetProtectionOptions.Default);
Hi,
I'm trying to create a ribbon menu without the backstage menu (an quickaccess, and titlebar).
By setting visibility to collabsed, I can remove all I want to remove, which is great. However, even though I have hidden the backstage menu, there is still room in the UI for it, so that the first ribbon tab is drawn as if it is there. I would like for the ribbon tabs to start on the left, as if the backstage menu was never there.
How do I achieve this?
Please see the screenshot for visual clue.
Regards
Thomas
When you have a Spreadsheet and there are n sheets on its workbook, I'd like to either get the Index of the Worksheet that is being Removed (or is Removed) or the Sheet itself when it is being removed (but when it is already removed before then I won't be able to use it to retrieve the index)
Is that possible?
The nearest event I saw was the Context Changed event of the Workbook element, but I couldn't figure it out.
| public partial class Form1 : Form |
| { |
| private readonly DataTable dtMain; |
| public Form1() |
| { |
| InitializeComponent(); |
| dtMain = new DataTable(); |
| CreateSampleTable(); |
| InsertValues(); |
| radGridView1.DataSource = dtMain; |
| } |
| private void CreateSampleTable() |
| { |
| dtMain.Columns.Add(new DataColumn("column1", typeof(String))); |
| dtMain.Columns.Add(new DataColumn("column2", typeof(String))); |
| dtMain.Columns.Add(new DataColumn("column3", typeof(String))); |
| } |
| private void InsertValues () |
| { |
| var drMain = dtMain.NewRow(); |
| drMain["column1"] = "1"; |
| drMain["column2"] = "One"; |
| dtMain.Rows.Add(drMain); |
| drMain = dtMain.NewRow(); |
| drMain["column1"] = "2"; |
| drMain["column2"] = "Two"; |
| dtMain.Rows.Add(drMain); |
| drMain = dtMain.NewRow(); |
| drMain["column1"] = "3"; |
| drMain["column2"] = "Three"; |
| dtMain.Rows.Add(drMain); |
| } |
| private void radGridView1_RowFormatting(object sender, Telerik.WinControls.UI.RowFormattingEventArgs e) |
| { |
| var gvri = e.RowElement.RowInfo; |
| var rbApply = gvri.Cells["column3"] != null && gvri.Cells["column3"].CellElement != null ? |
| gvri.Cells["column3"].CellElement.Children[0] as RadButtonElement : null; |
| if (rbApply != null) |
| { |
| rbApply.Text = "Apply"; |
| rbApply.TextAlignment = ContentAlignment.MiddleCenter; |
| } |
| } |
| } |

I have the following
class LookupItem
{
public Guid Id {get;set;}
public string Description {get;set;}
}
class SomeOtherClass
{
public int Key {get;set;}
public Guid LookupItemId {get;set;}
public string SomeProperty {get;set;}
}
Now.
The LookupItem class will be a part of a collection (or lookup list) e.g. List<LookupItem>
The SomeOtherClass is the selectedObject of the propertygrid
I have looked through the samples such as https://docs.telerik.com/devtools/winforms/knowledge-base/propertygrid-dropdown-editor
and whilst I can get the combobox or RadMultiColumnComboBox to display when editing, I need to be able to show the description value of the selected lookupitem in the propertygrid item. Currently its displaying the LookupItem.Id which is a Guid.
Any ideas? The simplest will suffice
