Telerik Forums
UI for WinForms Forum
3 answers
388 views

The attached pic is (touched up) what my designer has asked me to produce for our first rewrite of our product. We've moved to telerik control set from an in house one which is looking dated. The 2nd one is my first attempt.
I've googled for an answer and seen several responses to people wanting to drop the space between tiles, or for ASP css, but in my case where the tiles are created and added to the panorama dynamically, they're all joined together and however much I've played with margins and padding I don't seem to be able to get a space around them.
Can anybody tell me how to do this very simple thing please?

Dimitar
Telerik team
 answered on 08 Jul 2016
17 answers
436 views

Good Afternoon,

 I've recently downloaded the latest trial release of WinForms UI controls and our code to set a custom contextmenustrip on a Grid view no longer works.

 We need to do this programatically, based on the row being clicked as below:

 

Private Sub radGrdHistory_ContextMenuOpening(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.ContextMenuOpeningEventArgs) Handles radGrdHistory.ContextMenuOpening
    If TypeOf e.ContextMenuProvider Is Telerik.WinControls.UI.GridHeaderCellElement Or TypeOf e.ContextMenuProvider Is Telerik.WinControls.UI.GridFilterCellElement Then
        radGrdHistory.ContextMenuStrip = Nothing
    Else
        BuildAppointmentTypeRightClickMenu()
        radGrdHistory.ContextMenuStrip = cmsAppointment
    End If
End Sub

 

 Using the Q1 2014 version this correctly showed our cmsAppointment contextmenustrip when rightclicking a grid element but this no longer occurs. I just see a context menu with 'Copy' and nothing else.

 All the reading on the docs just says to use the ContextMenu properly and doesn't say anything about ContextMenuStrip. Has support been discontinued for this? Do I need to change all my contextmenustrips to contextmenus? Or do I need to write the code to show the CMS manually (say, off a right click event?).

 

 

 

Josef
Top achievements
Rank 1
 answered on 08 Jul 2016
2 answers
176 views

Hi. This is my first encounter with the Telerik control set.

As I don't have a clue yet, I'm amending a code fragment I found online to create a custom RadTileElement for my needs.

I'm passing in a database record to a constructor. I've then overridden the CreateChildElements method to map out the grid and set the strings etc according to whatever's passed in. But I noticed, when stepping through the code, that CreateChildElements was being called before my parameterized constructor.

Am I correct in assuming that the base constructor is calling a virtual method?

If the child elements are created before my constructor gets it's turn to set up the control then is there a better way to handle this?

ty in advance

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jul 2016
1 answer
136 views

I need to show something different that Text in ToolTip.

How to get other property like Id, Start, End etc (binded row)... connected with GanttViewTaskElement?

 

private void GanttView_ToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
{
  if(sender.GetType() == typeof(Telerik.WinControls.UI.GanttViewTaskElement))
  {
    var task = (Telerik.WinControls.UI.GanttViewTaskElement)sender;
    //e.ToolTipText = task.Id.Text.ToString();
  }
}

 

Hristo
Telerik team
 answered on 07 Jul 2016
5 answers
347 views

Hello, i have this, were working using microsoft grid, how can i make it work with the winforms grid?

When i try to add a new row raise an exception like 'System.MissingMethodException' no parameterless constructor.

[Serializable]
public class ScheduledMovement : NotifyPropertyChanged
{
    //various props
    public excMovements Movements
      {get;set;}
    //other
}
 
public class excMovements :
  BindingList<ScheduledMovementDetail>, IBindingList
{
  protected override object AddNewCore()
  {
      ScheduledMovementDetail n = new ScheduledMovementDetail(parent);
      Add(n);
      return n;
   }
}

Dimitar
Telerik team
 answered on 07 Jul 2016
1 answer
135 views

Hi,

 

I've been trying to figure out how to get my radgridview to colour/put a border around the selected cell only when the user clicks on it. At the moment, using the following code, the grid draws horizontal borders on the selected row when a cell is selected (image attached).

 

    Private Sub gridView_CellFormatting(sender As Object, e As CellFormattingEventArgs) Handles gridView.CellFormatting

        If Not e.CellElement.IsCurrent AndAlso
            e.CellElement.RowInfo.IsCurrent Then
            e.CellElement.BorderColor = Color.FromArgb(208, 215, 229)
        Else
            e.CellElement.ResetValue(LightVisualElement.BorderColorProperty, ValueResetFlags.Local)
        End If

    End Sub

    Private Sub gridView_RowFormatting(sender As Object, e As RowFormattingEventArgs) Handles gridView.RowFormatting

        e.RowElement.DrawFill = False
        e.RowElement.DrawBorder = False

    End Sub

 

How can I get those lines above and below the row to go away?

Thanks for your help.

Mary
Top achievements
Rank 1
 answered on 06 Jul 2016
0 answers
97 views

Hello.
after applying localization for RadReminder, returned value for reminder in "Appointment Form" limited and after reopened the form, reminder value changed to hours.
for example "5 minutes" changed to "5 hours".
applied culture is set to "fa-IR".

Thank you.

Raminmjj
Top achievements
Rank 1
 asked on 05 Jul 2016
1 answer
202 views

Hi,

how can I get the user selected PDF file location from RadPdfViewerNavigator?

thanks

Georgi

Dimitar
Telerik team
 answered on 05 Jul 2016
3 answers
139 views

Here is a sample BarSeries:

01.BarSeries barSeries = new BarSeries("Performance", "RepresentativeName");
02.barSeries.Name = "Q1";
03.barSeries.DataPoints.Add(new CategoricalDataPoint(177, "Harley"));
04.barSeries.DataPoints.Add(new CategoricalDataPoint(128, "White"));
05.barSeries.DataPoints.Add(new CategoricalDataPoint(143, "Smith"));
06.barSeries.DataPoints.Add(new CategoricalDataPoint(111, "Jones"));
07.barSeries.DataPoints.Add(new CategoricalDataPoint(118, "Marshall"));
08.this.radChartView1.Series.Add(barSeries);
09.BarSeries barSeries2 = new BarSeries("Performance", "RepresentativeName");
10.barSeries2.Name = "Q2";
11.barSeries2.DataPoints.Add(new CategoricalDataPoint(153, "Harley"));
12.barSeries2.DataPoints.Add(new CategoricalDataPoint(141, "White"));
13.barSeries2.DataPoints.Add(new CategoricalDataPoint(130, "Smith"));
14.barSeries2.DataPoints.Add(new CategoricalDataPoint(88, "Jones"));
15.barSeries2.DataPoints.Add(new CategoricalDataPoint(109, "Marshall"));
16.this.radChartView1.Series.Add(barSeries2);

How can I

1) Asign some value (e.g, an Id) to a BarSeries?

2) Asign a ContextMenu to a BarSeries to get its Id?

Dimitar
Telerik team
 answered on 05 Jul 2016
3 answers
143 views
Hello,

 

Is there a way to set alignment  (like right, center) of CaptionText and ContentText?

Kind regards...

Hristo
Telerik team
 answered on 05 Jul 2016
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?