I want to develop a WinForms application which is similar with Outlook. For the email list part, I use the custom item in the ListView to display the email information(From, Subject, Receive Time, Body Content). The ListView control is inside a split container(Dock Fill). So that, user can change the width of ListView.
The problem is, when the subject or body content is very long, I don't want the item to auto size. I want the item hidden the text when overflow. When user changes the width of ListView via split container, the text can be shown more or less according to the width of ListView. It likes in the outlook, you can change the width of the email list, the body content and the subject can be automatically displayed to fit the width. How to implement this function by using ListView?
How do I align the text in the header of a ToolWindow - See attached image
I tried following the steps here https://www.telerik.com/forums/problem-by-raddock-a8623cc5b85c but I am not getting the same results.
Note that I am using Telerik with Progress for .NET
Thanks

Any help or insights appreciated. This is for the WinForms library for VS2008.
When I try to create a new Telerick project, or convert an existing project, it fails. I'll paste in the error log below.
Yes I know VS2008 is old and I should be using a newer version, but 2008 has features I really like, esp the MDI editor.
What I've tried (suggested from Progress support folks) :
- Uninstalled, reinstalled
- Uninstalled, manually uninstalled the DLLs from the GAC, reinstalled, rebooted
Thanks for any assistance
Error log:
An error has occured while trying to create a new project.
System.NullReferenceException: Object reference not set to an
instance of an object.
at Telerik.VSX.DistributionListing.GACBasedDistribution.CheckAssemblyNamesEqual(AssemblyName
assemblyName1, AssemblyName assemblyName2)
at
Telerik.VSX.DistributionListing.GACBasedDistribution.PopulateItems(DistributionItemList
items)
at Telerik.VSX.DistributionListing.Distribution.get_Items()
at
Telerik.VSX.Helpers.DesignAssemblyGacHelper.GetDesignerAssembliesMissingFromDistribution()
at
Telerik.VSX.Controls.DesignAssemblyChecker.DetermineViewState(String
mainAssemblyLoadInfo, WizardContext context)
at Telerik.VSX.Controls.DesignAssemblyChecker.UpdateViewState(String
mainAssemblyLoadInfo, WizardContext context)
at
Telerik.VSX.Controls.DesignAssemblyChecker.ReInit(IPropertyDataDictionary
allPropertyValues, WizardContext context)
at Telerik.VSX.WizardEngine.Controls.WizardControlBase.Telerik.WizardFramework.ScenarioDriven.IWizardControl.ReInit(IPropertyDataDictionary
allPropertyValues, IWizardContext context)
at
Telerik.VSX.WizardFramework.Pages.DynamicPageController.Control_SyncNeeded(Object
sender, EventArgs e)
at
Telerik.VSX.WizardFramework.Pages.DynamicPageController.EnsureSync()
at
Telerik.VSX.WizardFramework.Pages.DynamicPageController.Control_SyncNeeded(Object
sender, EventArgs e)
at
Telerik.VSX.WizardFramework.Pages.DynamicPageController.EnsureSync()
at
Telerik.VSX.WizardFramework.Pages.DynamicPageController.Control_SyncNeeded(Object
sender, EventArgs e)
at
Telerik.VSX.WizardFramework.Pages.DynamicPageController.EnsureSync()
at
Telerik.VSX.WizardFramework.Pages.DynamicPageController.Init(IWizardPageDef
pageDefinition, IWizardContext wizardControlContext, IPropertyDataDictionary
allGatheredData)
at
Telerik.WizardFramework.ScenarioDriven.ScenarioWizard.OnBeforeShow(Boolean
movingNext)
at Telerik.WizardFramework.Wizard.EnsureInitialized()
at
Telerik.WizardFramework.ScenarioDriven.ScenarioWizard..ctor(IWizardContext
wizardControlContext, IDispatcher dispatcher, IWizardUI ui, PageCreator
createPage)
at
Telerik.VSX.WizardEngine.ScenarioManagement.ScenarioDefinitionExecutor.CreateWizard(IWizardContext
wizardControlContext, IDispatcher dispatcher, IWizardUI ui)
at
Telerik.VSX.WizardEngine.ScenarioManagement.ScenarioDefinitionExecutor.CollectData(IDispatcher
dispatcher)
at
Telerik.VSX.WizardEngine.ScenarioManagement.ScenarioDefinitionExecutor.CollectData()
at
Telerik.VSX.ProjectConfiguration.DiscontinuousProjectConfiguration.TryCollectData()
I want to develop a WinForms application which is similar with Outlook. For the email list part, I use the custom item in the ListView to display the email information(From, Subject, Receive Time, Body Content). The ListView control is inside a split container(Dock Fill). So that, user can change the width of ListView.
The problem is, when the subject or body content is very long, I don't want the item to auto size. I want the item hidden the text when overflow. When user changes the width of ListView via split container, the text can be shown more or less according to the width of ListView. It likes in the outlook, you can change the width of the email list, the body content and the subject can be automatically displayed to fit the width. How to implement this function by using ListView?
My custom item as below:
private class MailListVisualItem : SimpleListViewVisualItem { private LightVisualElement element1; private LightVisualElement element2; private StackLayoutPanel layout; protected override void CreateChildElements() { base.CreateChildElements(); this.layout = new StackLayoutPanel(); this.layout.EqualChildrenWidth = false; this.layout.Margin = new Padding(20, 0, 0, 0); this.element1 = new LightVisualElement(); element1.TextAlignment = ContentAlignment.TopLeft; element1.Size = new Size(260, 0); element1.MinSize = new Size(260, 0); element1.NotifyParentOnMouseInput = true; element1.ShouldHandleMouseInput = false; this.layout.Children.Add(this.element1); this.element2 = new LightVisualElement(); element2.TextAlignment = ContentAlignment.TopLeft; element2.Size = new Size(80, 0); element2.NotifyParentOnMouseInput = true; element2.ShouldHandleMouseInput = false; this.layout.Children.Add(this.element2); this.Children.Add(this.layout); } protected override void SynchronizeProperties() { base.SynchronizeProperties(); if (this.Data.GetType() != typeof(ListViewDataItemGroup)) { this.Text = ""; var bodyText = this.Data["BodyText"] == null ? "" : this.Data["BodyText"].ToString().Replace(System.Environment.NewLine, " "); this.element1.Text = "<html><span>" + "<span style=\"font-size:12\">" + this.Data["From"] + "</span>" + "<br><span style=\"color:#13224D;font-family:Segoe UI;font-size:10\">" + this.Data["Subject"] + "</span>" + "<br><span style=\"color:#13224D;font-family:Segoe UI;font-size:10\">" + bodyText + "</span></span></html>"; this.element2.Text = "<html><span> </span>" + "<br><span style =\"color:#13224D;font-family:Segoe UI;font-size:10\">" + this.Data["ReceivedTime"] + "</span></html>"; this.TextAlignment = ContentAlignment.TopLeft; } } protected override Type ThemeEffectiveType { get { return typeof(SimpleListViewVisualItem); } } }this.RadDropDownList_LocationType.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;this.RadDropDownList_LocationType.Location = new System.Drawing.Point(4, 4);this.RadDropDownList_LocationType.Name = "RadDropDownList_LocationType";this.RadDropDownList_LocationType.NullText = "Please Select";this.RadDropDownList_LocationType.Size = new System.Drawing.Size(123, 18);this.RadDropDownList_LocationType.TabIndex = 0;

Hey guys,my entire application is using VisualStudio2012Light theme of telerik 2015 and it's ok, the problem is when I upgrade to 2018, because it has increased size, and most of my controls get over each other. Can someone give me a version of this theme without the increased size? I want to use 2018 theme version because of clear buttons and etc...


Hello, does anyone knows a way to let the RadDataFilter to show the "DisplayName" of a property (as taken from a resource file) instead of the property name in unbound mode so that I do not have to write my own parser to convert the expression between "display" and "property" ?
[Display(Name = "DATAARR_DisplayProp", Description="DATAARR_zz_tooltip_", ResourceType=typeof(Warehouse.Magany2.loc.PKLIST_LOCALI))] public Nullable<DateTime> DATAARR { get; set;}
See attached image
Best Regards
Andrea

GridViewSelectedRowsCollection RowCollection = m_radGridSource.SelectedRows;
foreach (GridViewRowInfo GridDataRow in RowCollection)
{
m_radGridSource.Rows.Remove(GridDataRow
as GridViewDataRowInfo);
}
