Telerik Forums
UI for WinForms Forum
7 answers
247 views

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?

红耀
Top achievements
Rank 1
 answered on 28 Aug 2018
5 answers
134 views

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

 

Dimitar
Telerik team
 answered on 28 Aug 2018
1 answer
59 views

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()

 

Vesko
Telerik team
 answered on 24 Aug 2018
0 answers
154 views

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);
                }
            }
        }

红耀
Top achievements
Rank 1
 asked on 24 Aug 2018
14 answers
558 views
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;
When I Use RadComboBox instead RadDropDown property works.
Hristo
Telerik team
 answered on 24 Aug 2018
3 answers
170 views
In demo project if I set radRichTextEditor1.RichTextBoxElement.BackColor = Color.Aqua in constructor I see the background color changed in web layout. But in print layout only the color of the background behind the pages is changed. How to change the color of the pages too?
Dimitar
Telerik team
 answered on 23 Aug 2018
6 answers
87 views

     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...

Dimitar
Telerik team
 answered on 23 Aug 2018
3 answers
198 views
Hi!

I am trying to replace standart winforms PropertyGrid, which actually does the job, by RadPropertyGrid but faced up with an issue. Editing object contains string typed property, which stores value of a color, also there is custom editor based on UITypeEditor which should render the value inside property grid. In debug I see that in case of RadPropertyGrid, methods of my editor are not invoked and thus no rendering happens, while everything works ok with standart property grid. How may I make it work with RadPropertyGrid? 

Considering that a code base, I'm working is deep legacy, I tried to create a symplified sample app that demonstrates a use case in our app, described upstairs.
https://github.com/vklu4itesvet/ICustomTypeDescriptor-advantures/tree/master/TelerikPropertyGrid
here is the code 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Aug 2018
9 answers
394 views

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

Dimitar
Telerik team
 answered on 22 Aug 2018
25 answers
1.0K+ views

Hi

I need to remove the selectedRows in a Radgrid. I used the following code:

 

GridViewSelectedRowsCollection RowCollection = m_radGridSource.SelectedRows;

 

foreach (GridViewRowInfo GridDataRow in RowCollection)

{

    m_radGridSource.Rows.Remove(GridDataRow

as GridViewDataRowInfo);  

 

 

}

 

 



But exception was thrown as enumerator modified.

Please let me know how ro remove selected rows.


Sangeetha.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Aug 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?