Telerik Forums
UI for WinForms Forum
5 answers
920 views

Hi All,

How can we just clear radgridview, clear row, column, relation also on their template ?. Then radgridview being like the first time it loaded when then application run. So we can define columns on it over and over. Instead of using those :

        RadGridView1.DataSource = Nothing
        template.DataSource = Nothing
        template1.DataSource = Nothing

        While Me.RadGridView1.Rows.Count > 0
        Me.RadGridView1.Rows.RemoveAt(Me.RadGridView1.Rows.Count - 1)
        End While

        While Me.RadGridView1.Columns.Count > 0
            RadGridView1.Columns.RemoveAt(Me.RadGridView1.Columns.Count - 1)
        End While

        While template.Rows.Count > 0
        template.Rows.RemoveAt(template.Rows.Count - 1)
        End While

        While Me.RadGridView1.Relations.Count > 0
            Me.RadGridView1.Relations.RemoveAt(Me.RadGridView1.Relations.Count - 1)
        End While

 

Thanks in advance

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Nov 2018
16 answers
3.4K+ views
I would like to display two line of text in my header colums ... how can this be done ?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Nov 2018
8 answers
249 views
Or how can I change its color? I have changed FormBorderPrimitive's color,But it has not changed
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Nov 2018
5 answers
505 views

How select text/value in SpinEditor?

If set focus is object (method Enter) value SpinEditor select all

How to do it?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Nov 2018
6 answers
388 views

Hi, I was wondering if it was possible for a DescriptionTextListDataItem to have children in a dropdownlist control?

See on video DropDownList

I have the attached so far

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Nov 2018
1 answer
113 views

Hi~~

 

I want use the theme and change the  backcolor of timelineitem in TimelineItemFormatting

 

protected override void OnShown(EventArgs e)

{

     ThemeResolutionService.LoadPackageFile("CustomTheme.tssp");

     ganttview.ThemeName = "CustomTheme";

     // I Use CustomTheme after not change timeline backcolor

 

}

private void ganttView_TimelineItemFormatting(object sender, GanttViewTimelineItemFormattingEvent Args e)

{

    

    

      foreach(LightVisualElement element in e.ItemElement.BottomElement.Children)

      {

          if(holidayList.Contain(element .Start))

          {

             // not chage color

             // why?

                element.BackColor = Color.Red; 

                element.BackColor2 = Color.Red;

                element.BackColor3 = Color.Red;

                element.BackColor4 = Color.Red;

           }

     }

Hristo
Telerik team
 answered on 28 Nov 2018
5 answers
315 views
How can I scroll a appointment into view?

I can set focus to it, but when it's not in view, i can't seem to scroll to it. This is my code:
Private Sub FocusAppointment(afspraak As Agenda)
 
        Dim app As Appointment = RadScheduler1.Appointments.FirstOrDefault(Function(c) c.UniqueId.KeyValue.Equals(afspraak.AgendaID))
 
        If app IsNot Nothing Then
            For Each appElement As AppointmentElement In SchedulerUIHelper.GetAppointmentElements(RadScheduler1)
                Dim evnt As IEvent = appElement.Appointment
                If evnt.UniqueId.KeyValue = afspraak.AgendaID Then
                    RadScheduler1.FocusedElement = appElement
                    RadScheduler1.ScrollControlIntoView(appElement) '<- Telerik.WinControls.UI.AppointmentElement' cannot be converted to 'System.Windows.Forms.Control
                End If
            Next
        End If
 
    End Sub

When commenting the 'scrollintoview-line' the code works and the selected appointment does get focus, but out of view...
I obviously overlook something here.

Kind Regards,
Raoul
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Nov 2018
6 answers
224 views

Hello, we are currently in a final stage of our CRM development, and are using the control by importing a .docx file. Our problem now is we can't seem to make the content of the control reponsive. It works fine on the resolution our resolution, but when we go lower than that, it will look like the attached file.

 

Any solution to make the conrol work with lower resolutions too?

 

Thanks in advance

 

Hristo
Telerik team
 answered on 27 Nov 2018
1 answer
684 views
I'm unable to set the $ currency symbol as well as decimal places for radspinEditor, Please check image and do the needful.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Nov 2018
2 answers
138 views

How could I display multi-line (i.e. the text has a carriage return in it).

 

Thanks in advance.

James
Top achievements
Rank 1
Veteran
 answered on 26 Nov 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
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
WaitingBar
GroupBox
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
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?