Telerik Forums
UI for WinForms Forum
1 answer
159 views

Hello Telerik

 I have a RadPageView in Strip Mode and I would like to highlight some pages on runtime.

By highlighting I mean change the theme color for the different state (selected, mouse over, etc.) of the RadPageView. The business need is to show the user which pages needed an action.

 

I have found how to change the backcolor of a RadPageView but not for the different state of the control. Is there a way to do it without handling multiple event ?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Sep 2015
4 answers
250 views

Hi,

I'm facing a strange behaviour when i export a userControl containing a ChartView as a png picture.
Let's explain my issue with code.

First i create a userControl, this userControl has a title ( label) and a chartView.

this chart is slightly customized, i want to show checkboxes as legend items. to do this, i have followed an example mentioned in the forum.

If the checkbox is unckeced the related serie is hidden.

 

var myUserControl = new StatisticLayoutWithAdditionalStats();
 
myUserControl.ChartView.ChartElement.LegendElement.VisualItemCreating += LegendElement_VisualItemCreating;
/// Set layout properties
myUserControl.Title = "Blablabla";
myUserControl.ChartView.AreaType = ChartAreaType.Cartesian;
myUserControl.ChartView.ShowLegend = true;
 
LineSeries serie1 = new LineSeries();
LineSeries serie2 = new LineSeries();
 
 
serie1.DataSource = new BindingList<Coordinate>(Serie1DataSource.Coordinates);
serie1.CategoryMember = "Abscissa";
 
serie2.DataSource = new BindingList<Coordinate>(Serie2DataSource.Coordinates);
serie2.CategoryMember = "Abscissa";
serie2.ValueMember = "Ordinate";
 
myUserControl.ChartView.Series.Add(serie1);
myUserControl.ChartView.Series.Add(serie2);

 

// This class is used to customize legend items
public class CheckBoxLegentItemElement : LegendItemElement
{
 private RadCheckBoxElement checkBox = new RadCheckBoxElement();
 
public CheckBoxLegentItemElement(LegendItem item)
{
 this.checkBox.ToggleStateChanged += checkBox_ToggleStateChanged;
}
 
 void checkBox_ToggleStateChanged(object sender, StateChangedEventArgs args)
        {
            if (args.ToggleState == Telerik.WinControls.Enumerations.ToggleState.On)
            {
                this.LegendItem.Element.IsVisible = true;
            }
            else
            {
                this.LegendItem.Element.IsVisible = false;
 
            }
        }
 
 
}

 

If i display this userControl in a Form it works fine.

But i want to export this userControl as a picture, the userControl can't be displayed in a form, juste created in memory.

 

myUserControl.Size = new Size(600,400);
Bitmap bitmap = new Bitmap(600, 400);
myUserControl.DrawToBitmap(bitmap, (myUserControl.ClientRectangle));

If all checkboxes are checked, the image is good.

But if, at least, one of them is uncheck the graph doesn't display.

Do you have any explanation ?

Regards,

Mathieu

Hristo
Telerik team
 answered on 08 Sep 2015
1 answer
247 views

Hi,

I have a question about charts localization.

 

I create a chart, the horizontal axe is a DateTimeCategoricalAxis.

The format of the label is (Month - Year).

I display the graph with english and french culture, the month is translated correctly, which is very good !! :)

My question :  is it possible the force the graph to display in french culutre even if the current culture is english  ? 

 

Regards,

 Mathieu.

 

Dimitar
Telerik team
 answered on 08 Sep 2015
6 answers
442 views

Hello,

 

I noticed that when I try to dispose a ListView control from its own double click event the application crashes.

The control can be disposed from any other source (e.g. a button click) and this behavior occurs even on an empty List View.

Am I doing something wrong or is this a bug?

 

Thanks.

Dimitar
Telerik team
 answered on 08 Sep 2015
5 answers
440 views

I want to toggle only between Ascending and Descending when the user clicks on the column header.  I do not want the None option.  Not sure what one would use the None option for anyway. That is not a sort.

 

 

Stefan
Telerik team
 answered on 08 Sep 2015
14 answers
295 views
I'm trying to implement a custom TreeView editor on the GridView and I'm experiencing two problems.
1. My editor is confined to the size of the cell and it needs to be much larger than that
2. When I attempt to data bind the control nothing is displayed.

Sample code:
public class TreeEditor : BaseGridEditor
      {
       
      protected override RadElement CreateEditorElement ()
          {
          RadTreeViewElement treeViewElement = new RadTreeViewElement ();           
          //BindData (treeViewElement); // This doesn't work
          LoadData (treeViewElement); // This displays data
          return treeViewElement;
          }
 
      private static void BindData(RadTreeViewElement treeViewElement)
      {
          List<NodeData> Nodes = new List<NodeData>();
          NodeData root = new NodeData() { ID = 0 };
          root.Children.Add(new NodeData() { ID = 1 });
          root.Children.Add(new NodeData() { ID = 2 });
          Nodes.Add(root);
          treeViewElement.DataSource = Nodes;
          treeViewElement.DisplayMember = "ID\\ID";
          treeViewElement.ChildMember = "Nodes\\Children";
      }
 
      private static void LoadData (RadTreeViewElement treeViewElement)
          {
          RadTreeNode root = treeViewElement.Nodes.Add ("Root");
          root.Nodes.Add ("First", 1);
          root.Nodes.Add ("Second", 1);
          }
 
      public override object Value
          {
          get
              {
              RadTreeViewElement editor = (RadTreeViewElement) this.EditorElement;
              if (editor.SelectedNode == null)
                  return string.Empty;
 
              return editor.SelectedNode.ToString ();
              }
          set
              {
              //TODO: ?
              }
          }
      }
Hristo
Telerik team
 answered on 07 Sep 2015
3 answers
209 views

I am using a PivotFieldList associated to a PivotGrid which is bound to an in-memory table.

The Grid and the Field List work OK, but my problem is my table has too many columns. More than 200.

This make it a bit difficult for the user to choose fields from the field list.

I was wondering if there is a way to group fields in the PivotFieldList. Something like the "date" fields. Each group would be a node opening on user click and showing the available column.

 

Hristo
Telerik team
 answered on 07 Sep 2015
1 answer
159 views
# Context
- Using RadGridView
- Having a column named "MyDataColumn", which contains different decimal values, including zero.
- Using UI, add filter on "MyDataColumn" : "Greater than: 0"
- Added a calculated column named "MyCalculatedColumn", using expression "MyDataColumn / MyDataColumn".
- Note that, at this point, it doesn't crash since we added the "Greater than: 0" filter on "MyDataColumn" ... without that filter, it will crash, as we all know division by zero is impossible.

# Behavior
- Using UI, add a filter on "MyCalculatedColumn"
- Application crash
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Sep 2015
2 answers
170 views

On my grid I am grouping by one field, and have gridview1.mastertemplate.ShowTotals = True so that I can show a grand total for columns when that grid is grouped.  My issue is that I need to change the appearance of the grand total row differently than the other (group) summary rows in ViewCellFormatting.  Is this possible, and if so how can I do it?

 

Thanks

William
Top achievements
Rank 1
 answered on 03 Sep 2015
4 answers
534 views
When in the edit mode, GridSpinEditor inside RadGridView allows the numeric value to change by scrolling mouse centerl scroll wheel. I need to disable this. How can I disable this feature?

This feature lets the users to scrolldown to negative values, which is not desirable.

Thanks.
Jose
Top achievements
Rank 1
 answered on 03 Sep 2015
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
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
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?