Telerik Forums
UI for WinForms Forum
1 answer
193 views

Hi,

I have a main form with a RadListView set to details view which is bound to a list of objects.

I also have a user control with two RadListViews set to details view bound to their own empty list of objects, same type as main.

On the main form when the user clicks on a button an instance of the user control is created and added to a panel on main form. So there can be multiple instances of the UC.

What I'm trying to do is allow the user to drag an item from the main form list and drop it on one of the lists within one of the instances of the user controls created at run time.

I have been trying to do this with the DragDropService, but I'm not getting the target list to update.

Assuming this is possible could you give me a simple example in c#.

Thanks in advance.

Cheers

Shaun

 

 

Dimitar
Telerik team
 answered on 29 May 2017
1 answer
272 views

I have a GridView control that has a custom CellFormatting event implemented that detects if a row is to be deleted on save, sets the back colour to grey and makes the test italic.

Following recommended Telerik practice I apply ResetValue format to cells not affected by the above format condition.

All works great.

My problem occurs when a user applies a ConditionalFormat, it doesn't display. If I comment out the ResetValue commands, the user defined Conditional Formatting shows as expected.

Is there a way you can get the Conditional Formatting to be applied after the CellFormatting event, or call for the ConditionalFormatting to be applied from the CellFormatting event?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 May 2017
3 answers
157 views

Hi,

i have a problem with timeline in scheduler. the timline start to end is from right to left instead of left to right. i set the "righrToLeft" to false and also i changed the culture to en-US but no effect.

another question is about the Appointment text in Persion or Arabic.how can show the Text Correctly? currectly the Words are in Revese direction. i just found a solution by disable the useHtml in appointmentElement.

please help me!

thanks in advanced

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 May 2017
1 answer
119 views
On VB.NET when you type in the element you can type 1/3/88 and it will automatically parse it to 1/3/1988. But on the C# it does not do that you have to type the whole date.... 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 May 2017
2 answers
124 views

Hi,

how to add an OGS WMS/WFS to the map?

Hristo
Telerik team
 answered on 26 May 2017
1 answer
70 views

Hello to all,
When I open the radmulticolumncombobox I would like to place it on the line that contains the text in the textbox.
Instead, it is placed on the first line.
Does anyone know where I am wrong?

Thanks a lot

Fabrizio

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 May 2017
1 answer
106 views

Hi all,

there is a strange behaviour when clicking a GridView:

I have a GridView with some rows in. By DoubleClicking a row the DoubleClick Event is fired and a new form will be loaded.

Now I'm doing a click (single click!) and the RadGridView fires a DoubleClick Event again!

If the new form will open in front of the GridView the next click will NOT fire a DoubleClick Event.

If the form will open beside the Grid a DoubleClick will be fired...

Seems to me that there is a dependency whether the Grid has the Focus or not.

 

How to prevent the Click to fire a DoubleClick?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 May 2017
4 answers
338 views
Hi we are evaluating telerik controls for use in our application.

Problem:   The series won't change colors when the color is set at runtime.



Background:
I'm using ChartFX Winforms 2009 Q2

I am creating a solution where a chart is embedded in a Grid cell. 
I use the grid.cellformatting event to set the grid image if the rowinfo tag has not been set, much like is suggested in the telerik sample for: Multiple child views with RadGridView for WinForms

To simplify the test, I just default the series bar value to: "series.Appearance.FillStyle.MainColor = Drawing.Color.Green " (see bulleted line in code block below)

Eventually I need to add a piece of code that will set the series color based on the value.  For now I have just defaulted the value to show as green.

I have referenced other posts in the forum and added the lines to updategraphics, refresh, and still could not get the series to turn green.

Code:
    Private _chart As New RadChart 

 Private Sub PrepareChart() 
        Dim radChart As New GridToleranceChart 
        Me._chart = radChart.chart 
        Me._chart.SkinsOverrideStyles = False 
    End Sub 
GridToleranceChart is a usercontrol that has a radchart on it.  I use an instance of this usercontrol, and reference its public chart property, so I could set some visual elements at designtime.  PrepareChart is called when the form loads.
   


Private Sub grid_CellFormatting(ByVal sender As Object, _ 
        ByVal e As CellFormattingEventArgs) _ 
        Handles grid.CellFormatting 
 
        Dim column As GridViewDataColumn = TryCast(e.CellElement.ColumnInfo, GridViewImageColumn) 
        If column IsNot Nothing AndAlso StrComp(column.FieldName, _ 
            Constants.DefaultToleranceColumnNames.TolPercentChart, CompareMethod.Text) = 0 Then 
 
 
            If e.CellElement.RowInfo.Tag Is Nothing Then 
                Me._chart.Series.Clear() 
 
                column.Width = 300 
                column.AllowResize = False 
                e.CellElement.RowElement.RowInfo.Height = 60 
 
                Dim series As New Telerik.Charting.ChartSeries() 
  •              series.Appearance.FillStyle.MainColor = Drawing.Color.Green 
                series.Type = Telerik.Charting.ChartSeriesType.Bar 
                series.Name = "percentOfTolSeries" 
                series.Appearance.LabelAppearance.Visible = False 
 
                ' Get the value to add to the series from another cell in the same row of the cell that is being edited 
                ' Add the value to the series 
                Dim rowInfo As GridViewRowInfo = TryCast(e.CellElement.RowInfo, GridViewDataRowInfo) 
                Dim value As Decimal = CDec(rowInfo.Cells(Constants.DefaultToleranceColumnNames.PercentOfTol).Value) 
                series.Items.Add(New Telerik.Charting.ChartSeriesItem(value)) 
 
            
                Me._chart.Series.Add(series) 
 
                Me._chart.Refresh() 
                Me._chart.Update() 
                Me._chart.UpdateGraphics() 
                e.CellElement.RowInfo.Tag = Me._chart.GetBitmap() 
            End If 
 
            e.CellElement.Image = TryCast(e.CellElement.RowInfo.Tag, System.Drawing.Image) 
            e.CellElement.ImageLayout = ImageLayout.Center 
 
            e.CellElement.DrawBorder = False 
            e.CellElement.Text = "" 
            e.CellElement.Padding = New Padding(0, 0, 0, 0) 
        End If 
    End Sub 

Your help is greatly appreciated.
Hristo
Telerik team
 answered on 25 May 2017
1 answer
119 views

I have Gridview with checkbox column and data bound to datasource,

When i try to change checkbox status, it gives me Data Exception: "Column 'Ex' is read only"

how to make this event firing without commiting to database

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 May 2017
1 answer
211 views

Hi,

I am using PdfViewer winform control in my project.
I want to display single page in viewer at a time. I found property "FixedDocumentPresenter" in silverlight controls.
This property is not available in winform control. Is there any way to achieve this. Please attach some code snippet.

Ref:-

http://docs.telerik.com/devtools/silverlight/controls/radpdfviewer/ui/document-presenters#using-fixeddocumentpagespresenter

Framework Details:
Telerik.WinControls.PdfViewer - Version : 2015.3.1104.40
OS - Windows 7 Ultimate x64
Hristo
Telerik team
 answered on 24 May 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?