Telerik Forums
UI for WinForms Forum
3 answers
332 views
Hello Support Team!
1. How may I change back color?
2. How may I change border color?
3. How may I change the grip image
4. How may I set location of items which I add on StatusStrip?
5. How may I locate my item to very last part of the right side of status strip? (without setting RightToLeft to yes) I need to have time at the right side of status strip, exactly like windows desktop.
Thanks.
Dimitar
Telerik team
 answered on 10 Dec 2013
3 answers
306 views
Hi,

I need to have FilterRow to filter some columns. But I need also to filter two columns by checkboxes out of the grid (toogle checkboxes add / remove filter descriptor for this columns). That's why I have to hide Filter Box for this two columns. I did it by ViewCellFormatting event:

void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    GridFilterCellElement filterCell = e.CellElement as GridFilterCellElement;

    if (e.RowIndex == -1 && filterCell != null && filterCell.ColumnInfo.Name == "COLUMN_NAME")
    {
        filterCell.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
    }
}

It works fine, but, as mentioned in documentation, significantly slow down rendering - especially for grid with 20 columns / 100000 rows with sorting.
My question: is there any other solution?
I tried:
1) Attach / Detach this event - I tried to realize when cell with this filter box is redrawn ( because then by default it is again draw with filter box visible ). It speed up interacting with grid, but still there are situation when I see this filter box visible ( minimize Window, ColumnShooser Activate / Deactivate, DataBind, Click on filterRow ...) . Is it good way? Can I found and serve all situation in this way ?
2) Use EditorRequired / Editor Initialized instead ViewCellFormatting. But It helps only not to display filter text box - filter description and button of dropdown list still are visible.

void radGridView1_EditorRequired(object sender, EditorRequiredEventArgs e)
        {
            if (radGridView1.CurrentCell.ColumnInfo.Name == "COLUMN_NAME")
            {
                e.Editor = null;
                e.EditorType = null
            }
        }

3) I was think about override GridViewTextBoxColumn - to find properties responsible for displaing filterbox but I can find such thing

Could you give me some solution?

Thanks in advance!
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Dec 2013
3 answers
65 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
72 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
234 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
185 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
145 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
214 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
127 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
259 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
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?