Telerik Forums
UI for WinForms Forum
3 answers
185 views

How can I change the font of DropDownList items?

How can I change focused color of DropDownList?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Apr 2016
2 answers
255 views

I have a Scheduler instance in TimeLine view using Resource grouping. I would like to take a radDropdownlist control and give the user the ability to filter the scheduler to just resources he/she is responsible for on the scheduler. Has anyone be able to filter the resources in Scheduler?

 

Thanks,

 

TomG

Tom Graham
Top achievements
Rank 1
 answered on 16 Apr 2016
5 answers
187 views

Hello,

I want to make a custom GridView  to fit a specific requirement. So I  changed the ViewDefinition to ColumnGroups View and I got the format I want. It is shown like picture "question.JPG".

 

But the header looks strange ...

1.How can I do to resize the height of header and  resize the height of filter row? 

2.If I want to hide the second row of header and the third row of header , how to do that?

 

Thanks and regards,

Jaspy

2016/04/14

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Apr 2016
1 answer
211 views

A lot of PDF documents (often but not always scanned ones) come out looking very bizarre in the PDFViewer (see attached). I have confirmed that the documents themselves are fine, as they look normal in other PDF viewers. The distortion is not dependent on PDF version or size. Is this a known issue? What's causing it?

Dimitar
Telerik team
 answered on 15 Apr 2016
4 answers
164 views

Hi

I have changed a heading-style in a RadDocument. I also want that the letters in the header be in upper case, i.e., HEADER instead of Header. How can it be done?

thanks,

Shahrzade.

Shahrzade
Top achievements
Rank 1
 answered on 15 Apr 2016
2 answers
156 views

Hi,

I have a RadRichTextEdior, the user selects a piece of text and wants to highlight it with a chosen color , e.g., by clicking on a button. How can I do it programatically? How can I get hold of the selected text (its start and its end)?

Is there anything like ChangeParagraphBackgroundColorCommand for  selected text?

 

Thanks,

 

Shahrzade.

Shahrzade
Top achievements
Rank 1
 answered on 15 Apr 2016
7 answers
133 views

Hello,

I use a hierarchical grid in my application. The grid has a master level and a child level.

I like the integrated search function of the grid and want to use it in my project.

I have a problem when I use the UseScrollbarsInHierarchy feature of the grid.

When I set it to False the search function works fine which means the table scrolls to each search hit (child and master hit alike) when the arrow buttons next to the search field are used.

When I set it to True (desired option because the child level can have several hundred rows) the grid does not scroll to the search hits anymore.

How can I achieve that the master scrollbar scrolls to the search hit and the child scroll bar too?

I tried using Databinding / Object Relational Mode / Load On Demand with the same result as described above.

 

I use the latest version of the UI for WinForms with .NET 3.0 (Unfortunately the highest version of target System).

 

Thanks for your help.

Regard

Ingo

 

LIMA Factory
Top achievements
Rank 1
 answered on 14 Apr 2016
5 answers
480 views

Hello,

I'm trying to cancel the RadGridView's FilterChanging event after the user enters text into the filtering row, but doing so does not undo any additional text that the user may have added to the filtering row. I have tried the following lines of code but neither worked (and I discovered the Value property does not match the RadGridView's filtering row text - it matches the actual value of the filter):

radGridView1.FilterDescriptors[0].Value = oldValue;
radGridView1.MasterView.TableFilteringRow.Cells[0].Value = oldValue;

How can I set the filtering row text back to its original value?

Thank you!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Apr 2016
2 answers
198 views

Hello,

I would like to display a RadColorBox inside a RadCommandBar. This would allow the user to select a color and to show him which color is currently selected.

Is this possible?

A DateTimePicker can be easily hosted inside the command bar inside a CommandBarHostItem. But I can get it to work with a RadColorBox

Thank You for Your help

Regards,

Ingo

 

LIMA Factory
Top achievements
Rank 1
 answered on 14 Apr 2016
2 answers
89 views

Dear readers,

i have a scheduler grouped by resources. I use a dropdown (selectionmode=Multisimple) to switch the resources on/off to show them side by side in the scheduler and AddHandler to each item in the dropdown.

In Form_Load() i use the following code

      
' Populates the dropdown
ddlResourcen.DataSource = SchedulerDataDataSet.Resources
ddlResourcen.ValueMember = "ID"
ddlResourcen.DisplayMember = "Name"
 
 
For Each item As RadListDataItem In Me.ddlResourcen.Items
    AddHandler item.RadPropertyChanged, AddressOf SelectedChanged
Next

 

Here is the code for SelectedChanged()

Private Sub SelectedChanged()
       AddResources()
   End Sub

It simply switch the resources on/off.

I can move appointment between resources, move and resize them and all is fine, until i try to save it to the database.

I use just the code suggested in the demos with just one change to show my resources in different colors at the last line

When i call the Sub UpdateDB the stored appointments/resources data is correct, but my handlers for to the drowdown items are not longer

working and just one resource is visible because my multi preselection is gone.

    Private Sub UpdateDB()
        AppointmentsResourcesTableAdapter.Adapter.AcceptChangesDuringUpdate = False
        Dim deletedRelationRecords As schedulerDataDataSet.AppointmentsResourcesDataTable = TryCast(Me.SchedulerDataDataSet.AppointmentsResources.GetChanges(DataRowState.Deleted), schedulerDataDataSet.AppointmentsResourcesDataTable)
        Dim newRelationRecords As schedulerDataDataSet.AppointmentsResourcesDataTable = TryCast(Me.SchedulerDataDataSet.AppointmentsResources.GetChanges(DataRowState.Added), schedulerDataDataSet.AppointmentsResourcesDataTable)
        Dim modifiedRelationRecords As schedulerDataDataSet.AppointmentsResourcesDataTable = TryCast(Me.SchedulerDataDataSet.AppointmentsResources.GetChanges(DataRowState.Modified), schedulerDataDataSet.AppointmentsResourcesDataTable)
        Dim newAppointmentRecords As schedulerDataDataSet.AppointmentsDataTable = TryCast(Me.SchedulerDataDataSet.Appointments.GetChanges(DataRowState.Added), schedulerDataDataSet.AppointmentsDataTable)
        Dim deletedAppointmentRecords As schedulerDataDataSet.AppointmentsDataTable = TryCast(Me.SchedulerDataDataSet.Appointments.GetChanges(DataRowState.Deleted), schedulerDataDataSet.AppointmentsDataTable)
        Dim modifiedAppointmentRecords As schedulerDataDataSet.AppointmentsDataTable = TryCast(Me.SchedulerDataDataSet.Appointments.GetChanges(DataRowState.Modified), schedulerDataDataSet.AppointmentsDataTable)
        Try
            If newAppointmentRecords IsNot Nothing Then
                Dim newAppointmentIds As New Dictionary(Of Integer, Integer)()
                Dim oldAppointmentIds As New Dictionary(Of Object, Integer)()
                For i As Integer = 0 To newAppointmentRecords.Count - 1
                    oldAppointmentIds.Add(newAppointmentRecords(i), newAppointmentRecords(i).ID)
                Next
                AppointmentsTableAdapter.Update(newAppointmentRecords)
                For i As Integer = 0 To newAppointmentRecords.Count - 1
                    newAppointmentIds.Add(oldAppointmentIds(newAppointmentRecords(i)), newAppointmentRecords(i).ID)
                Next
                If newRelationRecords IsNot Nothing Then
                    For i As Integer = 0 To newRelationRecords.Count - 1
                        newRelationRecords(i).AppointmentID = newAppointmentIds(newRelationRecords(i).AppointmentID)
                    Next
                End If
            End If
            If deletedRelationRecords IsNot Nothing Then
                AppointmentsResourcesTableAdapter.Update(deletedRelationRecords)
            End If
            If deletedAppointmentRecords IsNot Nothing Then
                AppointmentsTableAdapter.Update(deletedAppointmentRecords)
            End If
            If modifiedAppointmentRecords IsNot Nothing Then
                AppointmentsTableAdapter.Update(modifiedAppointmentRecords)
            End If
            If newRelationRecords IsNot Nothing Then
                AppointmentsResourcesTableAdapter.Update(newRelationRecords)
            End If
            If modifiedRelationRecords IsNot Nothing Then
                AppointmentsResourcesTableAdapter.Update(modifiedRelationRecords)
            End If
            Me.SchedulerDataDataSet.AcceptChanges()
        Catch ex As Exception
            MessageBox.Show(String.Format("An error occurred during the update process:" & vbLf & "{0}", ex.Message))
        Finally
            If deletedRelationRecords IsNot Nothing Then
                deletedRelationRecords.Dispose()
            End If
            If newRelationRecords IsNot Nothing Then
                newRelationRecords.Dispose()
            End If
            If modifiedRelationRecords IsNot Nothing Then
                modifiedRelationRecords.Dispose()
            End If
        End Try
 
        AddResources()
    End Sub
 
    Private Sub AddResources()
 
        Me.rscMain.Resources.Clear()
        Dim i As Integer = 0
 
        For Each Row As DataRow In SchedulerDataDataSet.Tables("Resources").Rows
            Dim resource As New Resource()
            resource.Id = New EventId(i + 1)
            resource.Name = Row("Name").ToString
            resource.Color = Color.FromName(Row("SystemColor"))
 
            If ddlResourcen.Items(i).Selected = True Then
                Me.rscMain.Resources.Add(resource)
            End If
 
            i = i + 1
        Next
 
        Me.rscMain.GroupType = GroupType.Resource
        Me.rscMain.ActiveView.ResourcesPerView = 4
    End Sub

 

I belive this takes places because the SchedulerDataDataSet was changed, because when i reuse the code

' Populates the dropdown
ddlResourcen.DataSource = SchedulerDataDataSet.Resources
ddlResourcen.ValueMember = "ID"
ddlResourcen.DisplayMember = "Name"
For Each item As RadListDataItem In Me.ddlResourcen.Items
    AddHandler item.RadPropertyChanged, AddressOf SelectedChanged
Next

i can again use it, but my preselection is gone, of course.

Any suggestions how to stop this behaviour.

Kind regards

Martin Gartmann

Martin Gartmann
Top achievements
Rank 2
 answered on 13 Apr 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
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
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?