Telerik Forums
UI for WinForms Forum
5 answers
959 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.5K+ 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
273 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
544 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
426 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
131 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
349 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
250 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
715 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
168 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
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
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
ScrollablePanel
DataEntry
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
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?