Telerik Forums
UI for WinForms Forum
5 answers
273 views
Hey,

Just wanted to inform from small issue with latest version of telerik.

When ever we try to add new radform into our project, VS2010 gives error and form aint added. We tested it out littlebit and 3 of our programers had this error and 1 didn't.
Ofcourse there is easy workarounds (add new normal form and swap it into radform, copypaste old one etc), but still wanted to inform you about it.

Cheers,

Toni


Here is the full error from error message:

Error occurred while running wizard.

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.VSX.Internal.ProjectManagement.ProjectFileLocator.GetProjectItemForPath(String relativePath)
   at Telerik.VSX.Internal.ProjectManagement.ProjectItemWrap.ContainedInProject(IProjectWrap porjectWrap)
   at Telerik.WinControls.VSX.TemplateProcessing.WFScenarioManager.Launch(IServiceProvider serviceProvider, String itemName, String scenarioPath, String scenarioName)
   at Telerik.WinControls.VSPackage.VSItemTemplateWizard.LaunchScenarioManager(ServiceProvider serviceProvider, Dictionary`2 replacementsDictionary)
   at Telerik.VSX.VSPackage.ItemTemplateWizardBase.RunStarted(Object automationObject, Dictionary`2 replacementsDictionary, WizardRunKind runKind, Object[] customParams)
   at Telerik.VSX.VSPackage.WizardBase.<>c__DisplayClass5.<Microsoft.VisualStudio.TemplateWizard.IWizard.RunStarted>b__4()
   at Telerik.VSX.VSPackage.WizardBase.CatchExceptionAndSendReport(Action action)
Momchil
Telerik team
 answered on 26 Mar 2014
3 answers
283 views
Hello.!

I am a user who uses your Telerik library.
Currently, I have been programming CharView on Winfom.
In case of the program that I develop, Whenever I click a button, it draws a chart then BindingList’s data is increasing continuously.
What I want to do is that let the Scroll bar be displayed when the number of data is over 20.
However, my program does not display Scroll bar when that happens.
My code is the following.

public partial class Form1 : Form
    {
        private BindingList<SampleData> _collectiontempsite1;
 
        public Form1()
        {
            InitializeComponent();
        }
 
        private void Form1_Load(object sender, EventArgs e)
        {
            _collectiontempsite1 = new BindingList<SampleData>();           
 
            radChartView1.ShowTitle = true;
            radChartView1.Title = "Sample";
 
            ClearChart();
            DrawChart();
        }
 
        private void ClearChart()
        {
            radChartView1.Series.Clear();
            radChartView1.Axes.Clear();
        }
 
        private void DrawChart()
        {
            CategoricalAxis horizontalAxis = new CategoricalAxis();
            horizontalAxis.PlotMode = AxisPlotMode.OnTicksPadded;
            //      horizontalAxis.LabelFitMode = AxisLabelFitMode.Rotate;
            //      horizontalAxis.LabelRotationAngle = 270;
            horizontalAxis.LabelInterval = 10;          
 
            LinearAxis verticalAxis = new LinearAxis();
            verticalAxis.AxisType = AxisType.Second;          
            verticalAxis.LabelInterval = 2;          
 
            CartesianSeries series1 = null;
            series1 = new LineSeries();
            series1.LegendTitle = "site1";
            series1.PointSize = new SizeF(5, 5);
            series1.HorizontalAxis = horizontalAxis;
            series1.VerticalAxis = verticalAxis;
            series1.BorderWidth = 2;
            series1.CategoryMember = "Time";
            series1.ValueMember = "Temp";
            series1.DataSource = _collectiontempsite1;           
            //series1.ShowLabels = true;
            series1.CombineMode = ChartSeriesCombineMode.None;
 
            radChartView1.Series.Add(series1);
            radChartView1.Area.View.Palette = KnownPalette.Summer;
 
            radChartView1.VerticalScroll.Enabled = true;
            radChartView1.VerticalScroll.Visible = true;
            radChartView1.HorizontalScroll.Enabled = true;
            radChartView1.HorizontalScroll.Visible = true;     
        }
 
        private void button1_Click(object sender, EventArgs e)
        {
            Random r = new Random(DateTime.Now.Millisecond);
 
            string strCurrentTime = DateTime.Now.ToString("hh:mm:ss:ffff");
            double dTemp = Convert.ToDouble(r.Next(70, 120));
            _collectiontempsite1.Add(new SampleData(strCurrentTime, dTemp));
        }
    }



Please respond to what I concern. Thank you.
Dimitar
Telerik team
 answered on 26 Mar 2014
2 answers
367 views
I'd love to use the RadCollapsiblePanel to provide drop down buttons in my application on certain menus, but my buttons currently are square. and I can't seem to modify the button shape in the panel without using the ControlSpy. Even then it seems odd that there is no "square" button shape to select and I have to make a custom shape for something so common.

My main problem at this point, however, is that any time I set the button element AutoSize to false, the button vanishes at runtime. I attached an image of how it looks at design time. I am able to use a larger image and resize the button, change the background, border, etc. I can't figure out how to make it square and at runtime, the button is gone and nothing in that area responds to a click.

George
Telerik team
 answered on 26 Mar 2014
1 answer
368 views
Please could someone let me know if it is possible to have a background image set to a specific cell on every row, but to also have a label/TextBoxCell in that cell too?

Any examples would be great.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Mar 2014
1 answer
261 views
I know this is posted somewhere here, so my search phrases must me horrible..

New to api, looking at how a can assign a form a theme during it's creation.   Want to be able to switch themes based on how a form is called.

I created a form which implements RadForm

on form_load I set ThemeNameClass and ThemeName, then Initialize is called.  c#, 2013, latest version for DevCraft.

Thanks
Mike
Dimitar
Telerik team
 answered on 26 Mar 2014
3 answers
135 views
Hi guys,

I am trying to do a few style changes to the scrollbar. I've attatched an image of how it looks currently.

1) There is a border on the whole left hand side of the control. I can't find anywhere in the element editor. Please can someone let me know which property I need to change to hide this?

2) You will notice I have take away the arrows. I want the scrollbar to not have arrows. But the area in which the arrows sit is still visible, can I remove this extra space?

Many thanks,

J
George
Telerik team
 answered on 26 Mar 2014
1 answer
324 views
Hello,
     i'm using a RadListView in DetailsView mode.

When i insert an element in the Items collection of the RadListView, the Vertical-scrollbar's thumb remains snapped on the bottom to ensure the visibility of the last item. Items are inserted at the speed of almost one item per seconds.

I would like to control this behaviour, because (as all of the most common software do) i would like to stop refreshing the scrollbar position when the user click on the scrollbar or scrolls the wheel up to check more accurately an item.

Actually i'm doing this:

item insert:
private void ListView1AddLogMessage(string message, DateTime? dateTime)
  {
      if (dateTime == null)
          dateTime = DateTime.Now;
 
      if (userClicked)
          this.radListView1.BeginUpdate();
 
      LogList.Add(new LogItem { Info = message, Timestamp = dateTime.Value });
 
      if (userClicked)
          this.radListView1.EndUpdate();
  }


The userClicked variable is a bool that it's initialized like
bool userClicked = false;


and when I configure the ListView i bind the click and scroll events to simple functions that turns userClicked to be true, so that no update is performed.
void ThumbElement_Click(object sender, EventArgs e)
{
    userClicked = true;
}

But there are two main problems.
1) I would like to create an event similar to this one, for example if the user scroll wherever on the radlistview, probably he wants to stop the autorefresh, as it would probably be if he clicks on an element.
2) i would like to restore programmatically the auto refresh(plus the scrollbar-thumb autosnap to the bottom) when the users drag the thumb to the bottom of the scrollbar track


This seems to be a common behaviour to me for other application but i can't implement it in this case.

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Mar 2014
1 answer
166 views
Here is an interesting situation :

- I use a RadDock containing 2 ToolWindows, docked in a shared TabStrip.
- I change win1's dockstate to 'floating'.
- I change win2's dockstate to 'autohide'.
- I save RadDock's configuration in an XML file.
- I use RadDock.Hide().

Now, to avoid a possible flicker on the screen, I wish to load the previous XML file before showing RadDock again. After RadDock.Show(), both ToolWindows are in a 'autohide' state ! If I 'unpin' win1, it gets back to the 'floating' state. But double-clicking on its title-bar won't dock it any more.

Is there a way to safely load a XML configuration while having RadDock hidden ?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Mar 2014
1 answer
73 views
How can I hide the horizontal grid lines in the GridViewMultiComboBoxColumn?



Thanks!
Stefan
Telerik team
 answered on 26 Mar 2014
2 answers
113 views
How can I hide the horizontal grid lines in the GridViewMultiComboBoxColumn?

Thanks!
Stefan
Telerik team
 answered on 26 Mar 2014
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?