Telerik Forums
UI for WinForms Forum
1 answer
85 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
195 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
644 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
214 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
110 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
260 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
477 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.2K+ 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
1 answer
1.0K+ views

I have a rich text editor with rubber bar (playing with Telerik's demo project), and I would like to disable the user from changing printer settings (and to change the printer in particular). So, for plain print I have this code (please correct me if there's a better way):

private void radRichTextEditor1_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
  if (e.Command is PrintCommand)
  {
    e.Cancel = true;
    radRichTextEditor1.Print(false);
  }
}

 

But how to prevent the print dialog from print preview dialog? Also, how to prevent print settings dialog as well? Ideally I would like the print button to just print immediately, and print settings button to disappear.

Dimitar
Telerik team
 answered on 20 Aug 2018
12 answers
427 views

At startup, I am adding the last x number of messages, but the control doesn't scroll to the bottom. How can I ensure the last message is visible?

Also, the last x messages span across more than 1 day, but my time separator always says Today.

The date in the ChatTextMessage constructor looks correct, and it is adding separators between the dates, but they all say Today

Thanks!

Kabir
Top achievements
Rank 1
 answered on 17 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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?