Telerik Forums
UI for WinForms Forum
3 answers
90 views
is it possible to add some few functions in the reference tab?
I want that every time the user insert a citation, the bibliography correspond to the inserted citation will be automatically inserted below the document,

Thank you in advance
More Power Telerik
George
Telerik team
 answered on 09 Dec 2013
1 answer
87 views
Hi,
I'm trying to lock the scheduler on current week, i mean, don't allow to go next\prev week with arrows for example
but without any succeed, any solution?

Best regards,
Roy


* EDIT:  Please delete this thread,  i found the solution.  (multiDayView)
George
Telerik team
 answered on 09 Dec 2013
1 answer
269 views
Dear Reader,
I would like to share a sample code "How to populate RadChartView using Sql, Oledb or MySql Database in WinForm (VB.NET)".
I've been searching for this sample in RadChartView documentation but can't find it anywhere. Here to anyone who is having the same problem.

MySQL Database Table Looks like:
| id |  Namess  |   Ages | Benefits |
-------------------------------------
| 1  |  John    |   16   |  51      |
-------------------------------------
| 2  |  Jake    |   22   |  60      |
-------------------------------------
| 3  |  Miley   |   30   |  15      |
-------------------------------------
| 4  |  Oggy    |   24   |  25      |
-------------------------------------
| 5  |  Piggy   |   12   |  22      |
-------------------------------------

The VB.NET Code Goes Like this:
Imports Telerik.WinControls.UI
Imports MySql.Data.MySqlClient
Imports Telerik.Charting
Public Class RadForm2
    Private Sub RadForm2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Me.RadChartView1.Area.View.Palette = KnownPalette.Metro
        '  Me.RadChartView1.ThemeName = "TelerikMetro"
        Me.RadChartView1.AreaType = ChartAreaType.Cartesian
        Dim sarea As CartesianArea = Me.RadChartView1.GetArea(Of CartesianArea)()
        Dim sgrid As CartesianGrid = sarea.GetGrid(Of CartesianGrid)()
        sarea.ShowGrid = True
        sgrid.DrawHorizontalFills = True
        sgrid.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.DashDot
        Dim connetionString2 As String
        Dim oledbCnn2 As New MySqlConnection
        Dim oledbCmd2 As New MySqlCommand
        Dim sql2 As String
        connetionString2 = ("Data Source=localhost;user id=root;database=testss;")
        sql2 = "Select * from tabll"
        oledbCnn2 = New MySqlConnection(connetionString2)
        Try
            oledbCnn2.Open()
            oledbCmd2 = New MySqlCommand(sql2, oledbCnn2)
            Dim oledbReader2 As MySqlDataReader = oledbCmd2.ExecuteReader()
            With oledbReader2
                Dim lineSeria As New LineSeries()
                RadChartView1.Series.Add(lineSeria)
                lineSeria.ValueMember = "Ages"
                lineSeria.CategoryMember = "Namess"
                lineSeria.DataSource = oledbReader2
            End With
            oledbReader2.Close()
            oledbCmd2.Dispose()
            oledbCnn2.Close()
        Catch ex As Exception
            MsgBox("Can not open connection ! ")
        End Try
        Try
            oledbCnn2.Open()
            oledbCmd2 = New MySqlCommand(sql2, oledbCnn2)
            Dim oledbReader3 As MySqlDataReader = oledbCmd2.ExecuteReader()
            With oledbReader3
                Dim lineSeria As New LineSeries()
                RadChartView1.Series.Add(lineSeria)
                lineSeria.ValueMember = "Benefits"
                lineSeria.CategoryMember = "Namess"
                lineSeria.DataSource = oledbReader3
            End With
            oledbReader3.Close()
            oledbCmd2.Dispose()
            oledbCnn2.Close()
        Catch ex As Exception
            MsgBox("Can not open connection ! ")
        End Try
    End Sub
End Class

Hope You Enjoy!

Regards
George
Telerik team
 answered on 09 Dec 2013
1 answer
239 views
Hi!

I need to add shadow to RadProgressBar text. I've tried to add new TextPrimitive element with shadow to Children collection (it works for RadWaitingBar), but the control shows only the existing ProgressBarTextElement. Unfortunately, I can,t manage to change Shadow member for ProgressBarTextElement. 

Code changing shadow that does not work:
((ProgressBarTextElement)this.TablesProgressBar.ProgressBarElement.Children[3]).Shadow = new ShadowSettings(new Point(1, 1), Color.Black);

Code that works for RadWaitingBar:
this.DownloadedRowsWaitingBar.ShowText = false;
TextPrimitive textElement_wb = new TextPrimitive();
textElement_wb.Alignment = ContentAlignment.MiddleCenter;
textElement_wb.ZIndex = 100;
textElement_wb.Shadow = new Telerik.WinControls.Paint.ShadowSettings(new Point(1, 1), Color.Black);
this.DownloadedRowsWaitingBar.WaitingBarElement.Children.Add(textElement_wb);
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Dec 2013
2 answers
176 views
Hi,

I just recently upgraded my project to 2013 SP1 and it broke my solution. The designer opens the form just fine but I can't click any controls. I've attached an image of my error list. Any ideas?

EDIT: When I close the code-behind for the form and the form designer without saving the errors go away. When I open the designer, I can't click any controls. When I double click the form the code-behind opens and all the errors come back.

Thanks,
Eric.
Petar
Telerik team
 answered on 06 Dec 2013
3 answers
260 views
I'm implementing an inventory program that will view, edit, add, and remove rows from an sql database using the radGridView. The program was started in visual studio 2013 ultimate and did not have this issue. When I opened it in visual studio 2012 ultimate, I suddenly get a data exception sayng "Object reference not set to an instance of an object" when trying to add the first row to the gridview. Through debugging found that it happens in between the useraddingrow event and the useraddedrow event. Once the exception happens, I can correct it by changing the datasource to another table and back again but not before it happens the first time. The exception also happens with empty event handlers (commented out)
private void radGridView3_UserAddingRow(object sender, GridViewRowCancelEventArgs e)
    { }
private void radGridView3_UserAddedRow(object sender, GridViewRowEventArgs e)
    {
        //dbContext.SaveChanges();
      }
private void radGridView3_CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
    { }
private void radGridView3_CellEndEdit(object sender, GridViewCellEventArgs e)
    { }
private void radGridView3_UserDeletedRow(object sender, GridViewRowEventArgs e)
    { }
Above are the event handlers I comment out while still getting the error.

This is how I assign the data source
MaintenanceEntitiesDB dbContext = new MaintenanceEntitiesDB();           
public Form1()
{
    InitializeComponent();
    // Set initial data source to assets table
    dbContext.Assets.Load();
    radGridView3.DataSource = dbContext.Assets.Local.ToBindingList();
}
The same thing is done on radiobutton checkedchanged to switch between assets and consumables table.

It seems that the data exception HAS to happen before it will let me add a row.

Attached is the error box as well. What doesn't make sense is I did not implement any exception handling that displays the exception message so the program should in theory crash when this message pops up...

Using ADO.NET entity for database access, C#, .net 4.0

I have a build from VS2013 deployed currently with roughly the same setup for the gridview that is not getting the exception.

NOTE: When I switched to VS2012, the gridview was re-added and configured to work with 2012
George
Telerik team
 answered on 06 Dec 2013
3 answers
163 views
Hello Support Team!
Please let me know how can I change the scale transform of radListView ?
It is possible with hierarchy but how does this happen via code?
Thanks.
Dimitar
Telerik team
 answered on 06 Dec 2013
6 answers
300 views
I have a Windows Forms application (C# .NET 3.5) which uses RadChart and RadMenu controls (version 2009.1.9.311).  I can build and run the application on the build machine (Windows 7 64-bit), but it crashes immediately when run it on any other Windows 7 64-bit PC.  I created a new test application with nothing except one RadChart and it also crashes immediately.  As soon as I click on the executable it displays the standard Windows "[program] has stopped working" error with the choice to check online for a solution or close the program.  The original application has the following details "Problem Event Name: APPCRASH; Fault Module Name: KERNELBASE.dll; Fault Module Version: 6.1.7600.16385; Exception Code: e0434f4d; Exception Offset: 000000000000aa7d; OS Version: 6.1.7600.2.0.0.256.4".  The test application only as a few details which might be useful: "Problem Event Name: CLR20r3; Problem Signature 03: 4call1179b; (PS 06 is the same); Problem Signature 07: 1; Problem Signature 08: 15; Problem Signature 09: System.IO.FileNotFoundException; OS Version: 6.1.7600.2.0.0.256.4".  I can create a similar test application with non-Telerik controls and do not get the error on other Win 7 x64 PCs.

Has anyone else experience similar issues?  Is there a solution / workaround?

Thanks,
Chris
Oleg
Top achievements
Rank 1
 answered on 05 Dec 2013
1 answer
577 views
Hello,

i need a solution, that the user only can make time inputs in 15 minute steps. For example:

08:00
08:15
08:30
....

Is there a opportuniy, special for the arrow keys, when he clicks on it and the minutes are chosen, that the tick is 15 minutes and not 1 minute?

Greets,
Shaggy
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Dec 2013
1 answer
102 views
hello,
how to put the appointments side by side in timeline

cordially

Samuel
George
Telerik team
 answered on 05 Dec 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)
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?