Telerik Forums
UI for WinForms Forum
1 answer
146 views
I have a radgridview which has several columns and each row of data has templates..so on expanding a column we can see a bunch of new expanded rows..

But at the very end I have a few total rows which do not have these expanded rows..I want to set a specific backcolour for each of the columns (cells) based on a bool value. The bool value is a hidden checkbox column in the grid itself.

The scenario is 
1. There are two hidden checkbox columns History and Totals which give me bool values
2. If History = True for any row then all the columns will be gray
3. If Total = true for any row then all the columns will be blue
4. If History = False and Total = False then I have separate colour code for each column.
5. History and Total both can never be true for any row.
6. I want to colour only the parent rows and not the template within each parent row.

Please help!
Dimitar
Telerik team
 answered on 22 Aug 2013
1 answer
85 views
Hello!
Can a Radchart for Winforms have a custom table below the chart, like in the photo I have sent you  ?
How can I select this? 

Thank you
Dimitar
Telerik team
 answered on 22 Aug 2013
1 answer
99 views
lst.Popup.MouseClick += new MouseEventHandler(Popup_MouseClick);


Popup_MouseClick not firing. 


Any idea?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 21 Aug 2013
5 answers
265 views
I'm using RadControls for WinForms 2011.3 11.1116
I have a long operation that is fired at SelectedIndexChanged of an RadDropDownList.
The problem is that when the user makes a selection by opening the popup, the SelectedIndexChanged is fired and the popup is still visible while the long operation associated with the event takes place.
In earlier version(of RadControls) i used a RadComboBox and delayed the SelectedIndexChanged to be fired after the PopupClosed event. This fix for my problem it no longer works with the RadDropDownList because the PopupClosed is fired before the SelectedIndexChanged and while the subscriber of the event is running the IsPopupVisible property is false and the popup is actually visible.
Can you help me identify:
    - an method i could override or event running after the SelectedIndexChanged is fired
    - a property that will indicate me if the Popup is visible or not while processing a subscriber of the SelectedIndexChanged.

Thanks

P.S. I know that moving that operation in a background thread is an alternative solution to my problem, but is not working for me (not because of my skill, the scenario is far more complex than you imagine, and serializing operations via ManualResetEvent is throwing too much complexity in an already complex system)
Peter
Telerik team
 answered on 21 Aug 2013
2 answers
166 views
Hi,

i have a radChartView docking to a Window (in Designer 600x300px) filled with a DataTable, 5 values with price and Date.

linePrice = new DataTable();
linePrice.Columns.Add("Price", typeof(float));
linePrice.Columns.Add("Date", typeof(DateTime));
 
LineSeries lineSeria = new LineSeries();
radChartView1.Series.Add(lineSeria);

lineSeria.ShowLabels = true;
lineSeria.LabelFormat = "{0:C}";
lineSeria.ValueMember = "Price";
lineSeria.CategoryMember = "Date";
lineSeria.DataSource = linePrice;
 
DateTimeCategoricalAxis categoricalAxis = new DateTimeCategoricalAxis();
categoricalAxis.DateTimeComponent = DateTimeComponent.Day;
categoricalAxis.MajorTickInterval = 1;
categoricalAxis.PlotMode = AxisPlotMode.BetweenTicks;
categoricalAxis.LabelFormat = "{0:dd}.{0:MM}.{0:yyyy}";
 
lineSeria.HorizontalAxis = categoricalAxis;
 


if i resize the Window greater then 600x300px, everything grows correctly but the line is only visible in the 600x300px field (see Images)

And my second problem/wish: i want the Horizontal Axis linear, like this http://www.telerik.com/help/winforms/chartview-axes-linear.html just with Dates. The Dates in the graph are order dates, so i need to visualise if there are much or less time between them.

thanks in advance

using 2013.2.724.40
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Aug 2013
1 answer
135 views
Is there any way to catch the ZoomGesture in desktop App? i mean not in touch input device

On the other hand, how can i make zoom to specific area of data? without zoomfactor
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Aug 2013
4 answers
218 views
I have noticed some strange behavior when I try to save a chart as an image.  The x and y axis show up with labels and the correct range but there are no bars.

    Private Function GetDummyList() As BindingList(Of RateShockData)
        Dim l As New BindingList(Of RateShockData)
        l.Add(New RateShockData("+300", "-13.9"))
        l.Add(New RateShockData("+200", "-9"))
        l.Add(New RateShockData("+100", "-3.9"))
        l.Add(New RateShockData("even", "0"))
        l.Add(New RateShockData("-100", "-.2"))
        l.Add(New RateShockData("-200", "1"))
        l.Add(New RateShockData("-300", "2.2"))
        Return l
    End Function
 
    Private Function BuildChart()
        Dim c1 As New RadChartView
 
        Dim bs As New BarSeries
        bs.Name = "Market % Change"
        bs.ValueMember = "MVPctChange"
        bs.CategoryMember = "BPChange"
        bs.DataSource = GetDummyList()
 
        c1.Series.Clear()
        c1.Series.Add(bs)
 
        Dim bitM As New Bitmap(c1.Width, c1.Height)
        c1.DrawToBitmap(bitM, c1.Bounds)
 
        Dim imageFileName As String = Guid.NewGuid.ToString + ".jpg"
        bitM.Save(imageFileName, Drawing.Imaging.ImageFormat.Jpeg)
    End Function
 
    Private Sub RadButton2_Click(sender As Object, e As EventArgs) Handles RadButton2.Click
        BuildChart()
 
    End Sub
 
 
Public Class RateShockData
 
    Property BPChange As String
    Property MVPctChange As String
 
    Public Sub New(bpc As String, mvpc As String)
        BPChange = bpc
        MVPctChange = mvpc
    End Sub
 
End Class

The above code is what I used to produce this.  I am using version 2012.2.726.40.

I discovered that if I give the chart a palette, this issue goes away.

c1.Area.View.Palette = KnownPalette.Grayscale

Ivan Petrov
Telerik team
 answered on 20 Aug 2013
3 answers
130 views
#1
On the RadScheduler, AddDay appointments are displayed at the top ... above appointments with appointment times.  Appointments with times show the times on the very left of the control.  AllDay appointments do not show the appointment times ... that space is blank.  Do I have access to that area?  How can I draw vertical text in that area (above the word "Local")?

#2
In daily view, is there a way to limit the number of AllDay events displayed so that any beyond that number trigger a vertical scroll bar and are scrolled instead of making the appointments section so small as to be unusable?
George
Telerik team
 answered on 20 Aug 2013
5 answers
164 views
Hello,

I can't figure out how to get the RadSchedulerReminder to recognize that Appointments loaded from the database have already been dismissed.

I have a custom Appointment class that inherits from Appointment.
My database table has a Dismissed column.
I set the Dismissed property to the value of the column when I load my appointments from the database. *All* my appointments have Dismissed = True at this point and they all have a start time of close to now.
I set the RadScheduler.DataSource = BindingList(Of CustomAppointment)
I start the RadSchedulerReminder.
I get the reminder screen with every one of my appointments in it even though their Dismissed property is True.
If I dismiss the appointments manually with the Dismiss button, they remain dismissed until I restart the application at which point it ignores the initial value of the property again.

How do I get the RadSchedulerReminder to recognize the existing Dismissed state when it starts up?


Thanks.





George
Telerik team
 answered on 20 Aug 2013
2 answers
138 views
Hello,

im testing Telerik at the moment and come to an issue. I've searched your whole site for my problem, but i cant find any answer.

I'm trying to bind a hierarchical DataGrid to SQL, but i dont want to use TableAdapters. Instead of it i want to relaize it with a DataReader or something like that.

So my DataGrid loads the data very well, but when i try to make a template/relation nothing happens. There are still just the rows from the Parent, but the child data is missing. I've tried different ways with datasets, to refresh the DataGrid and many more, but nothing works. When i bind it to TableAdapters, it is working well! So here is my code - hope you can help me out...

 
Private Sub FrmKundenliste_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim objconn As New SqlConnection(My.Settings.SQL_V4)
    Dim rs As New SqlCommand("", objconn)
    Dim dr As DbDataReader
 
    rs.CommandText = "Select * from dbo.ApplicationMain"
 
    Try
        objconn.Open()
        dr = rs.ExecuteReader
 
        If dr.Read() Then
            RadGridView1.DataSource = dr
 
            Dim objconn_detail As New SqlConnection(My.Settings.SQL_V4)
            Dim rs_detail As New SqlCommand("", objconn_detail)
            Dim dr_detail As DbDataReader
 
            objconn_detail.Open()
            rs_detail.CommandText = "Select * from dbo.ApplicationDetail"
 
            dr_detail = rs_detail.ExecuteReader
 
            If dr_detail.Read() Then
                Dim template As New GridViewTemplate()
                template.DataSource = dr_detail
                RadGridView1.MasterTemplate.Templates.Add(template)
 
                Dim relation As New GridViewRelation(RadGridView1.MasterTemplate)
                relation.ChildTemplate = template
                relation.RelationName = "ApplicationDetails"
                relation.ParentColumnNames.Add("Id")
                relation.ChildColumnNames.Add("ApplicationId")
                RadGridView1.Relations.Add(relation)
            End If
        End If
     Catch ex As Exception
 
    End Try
End Sub

Greets,
Shaggy
George
Telerik team
 answered on 19 Aug 2013
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?