Telerik Forums
UI for WinForms Forum
2 answers
207 views

Hi,

I would like to add a Dropdown in one of my Filtercells. Every entry in the Column should be displayed in this dropdown so the user can choose just elements which are already in the column of the grid. Is there a property to achieve this behaviour or do I have to create a Customcontrol to handle this?


Could you please send me a simple example how to solve this task?

 

Sincerely,

Dominik Zöbl

Dominik
Top achievements
Rank 1
 answered on 27 Feb 2017
1 answer
145 views

here is the scenario..  

I am trying to create some wrapper classes for controls that display text such as labels, etc.  What I am seeing is that I am copy and pasting the same font override function for each control.  

 

Is there a recommended way of overriding the RadControl.Font and utilize that?  The problem, is the wrapper class can only have a single base class..  MyRadLabel : RadLabel

 

any pointers would be nice.  I hope I am just missing something small that I am not thinking of..

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Feb 2017
2 answers
248 views

How can I center image and text of RadMenuItem when AutoSize is false? See attached screenshot.

 

Thanks..

Renbert
Top achievements
Rank 2
 answered on 24 Feb 2017
2 answers
84 views

Hello,

I am looking for a way to find all the images from a document and run them through a compressing do reduce the document size.

I found a way to find all images and I have the code to compress them but I am not sure how to replace the image after I find them.

foreach (Section section in this.radRichTextEditor1.Document.Sections)
{
    foreach (Block block in section.Blocks)
    {
        Paragraph p = block as Paragraph;
        if (p != null)
        {
            foreach (Inline inlineElement in p.Inlines)
            {
                ImageInline image = inlineElement as ImageInline;
                if (image != null)
                {
                    Telerik.WinControls.RichTextEditor.UI.BitmapSource bitSource;
                    bitSource = image.ImageSource;
                }
            }
        }
    }
}

Regards, Dan

Hristo
Telerik team
 answered on 23 Feb 2017
1 answer
144 views

I'm not using themes in my project yet but I would like this to work as if I were.  I'm setting up some RadLabels to contain both the name of the piece of information and the value of it.  I.E. RadLabel1.Text = string.Format("<html><color=Navy>Item Number: <color=Black>{0}", theItemNumber);

How can I get the color name for the text at the top of the RadForm (or any control's forecolor that is used to display text)?

Also, where I'm setting the color back to the default for the label, is Black the default or is there some place to find that color as well?

Thank you,

Gary

Dimitar
Telerik team
 answered on 23 Feb 2017
2 answers
120 views

Hello,

I'm using Q1 2017 radcontrols for winforms (vb.net).

I have a radporama with a radtile, and a radpropertygrid, with the radtile as selectedobject.

When i set an image to the radtile using the radpropertygrid, everything works fine. But i dont know how to reset the image to nothing. If i select the image in the radpropertygrid, and the press "delete" on my keyboard, nothing happens.

I need a solution without clicking on the square and reset.

Could you help me?

Thanks in advance.

 

Best regards.

 

OD
Top achievements
Rank 1
 answered on 23 Feb 2017
2 answers
157 views

Hello,

I'm using Q1 2017 radcontrols for winforms (vb.net).

When you bind the radpropertygrid to an objet that have a font property for instance, you have in the radpropertygrid an arrow appearing.

My question is : is-it possible to disable or hide the "plus" sign ?

Thanks in advance.

 

Best regards.

OD
Top achievements
Rank 1
 answered on 23 Feb 2017
5 answers
269 views
Hello friends,

I need any change in the schedule is saved automatically. I am building the project in vb.net. In my code below that the problem happens when I save a new appointment, the appointment is saved twice. Appear when two close and open again the agenda. Can you help me? Below is the code:

 Private Sub FrmPortal_Load(sender As Object, e As EventArgs) Handles Me.Load
        AddHandler Me.RadScheduler1.Appointments.CollectionChanged, AddressOf Appointments_CollectionChanged
        Me.RadScheduler1.ActiveView.StartDate = Date.Now
End Sub

 Private Function Appointments_CollectionChanged(ByVal sender As Object, ByVal e As NotifyCollectionChangedEventArgs) As String
        Select Case e.Action
            Case NotifyCollectionChangedAction.Add
                CollectionChangedCompleted("Add")
            Case NotifyCollectionChangedAction.Batch
                CollectionChangedCompleted("Batch")
            Case NotifyCollectionChangedAction.ItemChanged
                CollectionChangedCompleted("ItemChanged")
            Case NotifyCollectionChangedAction.ItemChanging
                CollectionChangedCompleted("ItemChanging")
            Case NotifyCollectionChangedAction.Move
                CollectionChangedCompleted("Move")
            Case NotifyCollectionChangedAction.Remove
                CollectionChangedCompleted("Remove")
            Case NotifyCollectionChangedAction.Replace
                CollectionChangedCompleted("Replace")
            Case NotifyCollectionChangedAction.Reset
                CollectionChangedCompleted("Reset")
        End Select
        Return String.Empty
    End Function

    Private Function CollectionChangedCompleted(ByVal action As String) As Boolean
        If RadScheduler1.Appointments.IsUpdated Then
            performAction(action)
            Return True
        Else
            Return False
        End If
        Return False
    End Function

    Private Function performAction(ByVal action As String) As Boolean
        Select Case action
            Case "Add"
                Call SalvarAgenda()
            Case "Batch"
                Call SalvarAgenda()
            Case "ItemChanged"
                Call SalvarAgenda()
            Case "ItemChanging"
                'Call SalvarAgenda()
            Case "Move"
                Call SalvarAgenda()
            Case "Remove"
                Call SalvarAgenda()
            Case "Replace"
                Call SalvarAgenda()
            Case "Reset"
                Call SalvarAgenda()
        End Select
    End Function

 Sub SalvarAgenda()
        AppointmentsTableAdapter.Adapter.AcceptChangesDuringUpdate = False
        Dim deletedChildRecords As ERPDataSet.AppointmentsResourcesDataTable = TryCast(Me.ERPDataSet.AppointmentsResources.GetChanges(DataRowState.Deleted), ERPDataSet.AppointmentsResourcesDataTable)
        Dim newChildRecords As ERPDataSet.AppointmentsResourcesDataTable = TryCast(Me.ERPDataSet.AppointmentsResources.GetChanges(DataRowState.Added), ERPDataSet.AppointmentsResourcesDataTable)
        Dim modifiedChildRecords As ERPDataSet.AppointmentsResourcesDataTable = TryCast(Me.ERPDataSet.AppointmentsResources.GetChanges(DataRowState.Modified), ERPDataSet.AppointmentsResourcesDataTable)
        Try
            If deletedChildRecords IsNot Nothing Then
                AppointmentsResourcesTableAdapter.Update(deletedChildRecords)
            End If
            AppointmentsTableAdapter.Update(Me.ERPDataSet.Appointments)
            If newChildRecords IsNot Nothing Then
                AppointmentsResourcesTableAdapter.Update(newChildRecords)
            End If
            If modifiedChildRecords IsNot Nothing Then
                AppointmentsResourcesTableAdapter.Update(modifiedChildRecords)
            End If
            Me.ERPDataSet.AcceptChanges()
        Catch ex As Exception
            '    MessageBox.Show(String.Format("An error occurred during the update process:" & vbLf & "{0}", ex.Message))
        Finally
            If deletedChildRecords IsNot Nothing Then
                deletedChildRecords.Dispose()
            End If
            If newChildRecords IsNot Nothing Then
                newChildRecords.Dispose()
            End If
            If modifiedChildRecords IsNot Nothing Then
                modifiedChildRecords.Dispose()
            End If
        End Try
    End Sub
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Feb 2017
6 answers
97 views
In my grid, text is black.  When a row is selected, the text turn to grey  (that's ok).  But when I move the selection to another row, text on previously selected row remains grey (see picture).  How can I make the text turn back to black (its original color).  I looked at the visual designer but haven't find the element or attribute that is responsible for this behavior.
Claude
Top achievements
Rank 1
 answered on 22 Feb 2017
2 answers
1.2K+ views
Is there a clean way to set the line spacing for all text in a document (add both via import and user typed)?

I found the RichTextEditor.Document.LineSpacing property, but this appear to set an absolute of the spacing between the bottom of each instead the of space between each line, which would have to be based on font size.

I assume I could use this property and go through line by line looking at the font size and setting it when anything changed on the document, but that sounds like it would result in an excessive amount of overhead.

I'm not looking to use any special spacing or anything like that, just enforce single line spacing on the document regardless of font size and apply to to both imported text and user typed text.

Any help would be appreciated.
Hristo
Telerik team
 answered on 22 Feb 2017
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
CheckedListBox
StatusStrip
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?