Telerik Forums
UI for WinForms Forum
2 answers
180 views

Ok, so I’m having a really weird problem with the GridView control in a project I've been working on. I’ve been trying to figure out what is going on all day and I haven’t been able to. Basically I’m trying to swap out the standard DataGridView for the telerik grid. When I put the control on a form or user control it formats the grid really strangely. I haven’t done anything beyond setting the Dock property so it should be set with the default styling’s. I have attached some screen shots showing the problem. The first one is from my project (I attached it to a data source so I can show how the formatting looks), the second is from a brand new project. I did the same thing on each.

Anyone have any thoughts on what this could be? Maybe something is the project is overwriting the theme? I was also having an issue with the standard grid where it wouldn’t allow users to resize the columns, even though the option was set in the user control and explicitly on the form.

My goal is ultimately to put it in a user control but I've also tried directly on a form and both produce the same result.  I've tried toggling read only on and off with no luck. I even checked the read only appearance in the working grid and it doesn't look anything like it. Its definitely enabled and I can pull data back and interact with the grid, it just looks funny. It appears to have all the right functionality but it is acting strange when added to the grid or control. In the designer code it is just doing a dim of the instance instead of a friend withevents as in other controls. I am not able to reproduce the issue in a new project so the more I think about it I wonder if there is something in the guts of the program overwriting something. I just don't know where that could be. Any suggestions would be greatly appreciated. Thank you.

Stefan
Telerik team
 answered on 02 Apr 2012
1 answer
65 views
hi dear telerik support team.

i got a problem , i have a radGridView .
in my gridView there is a rowValidating event.
but there is a problem , when the user needs to delete a row, rowValidating fires!
so if the data in the row be invalid => e.cancel = true;
and row does not delete

q1 2011 , win forms

thanks , I`m waiting for your responding
Stefan
Telerik team
 answered on 02 Apr 2012
1 answer
159 views
Hi,

i have for example in summary row value :

A) 1, 00
B) 1 000, 00
C) 1 000 000, 00

but i need to display in this cell
A) 1,00
B) 1,00 K
C) 1,00 M

Know somebody how to do that ?
Thanks for all answers

best regards
AB
Ivan Petrov
Telerik team
 answered on 30 Mar 2012
1 answer
119 views
I created a list view using a database. My question is that some of the items are not grouped is there a way i can remove them from the list or even if there grouped not display them?
example: data
fruit
apple red ----(blank)
orange orange soft
tangerine orange soft
banana yellow soft
grape purple soft

1. is there a way i can have just a list of the orange fruits?
2. is there a way to draw the list with just soft type and not display apple.
Ivan Petrov
Telerik team
 answered on 30 Mar 2012
1 answer
143 views
Three days ago I put a thread here, and suddenly it disappeared ("oops server error"). I'm not going to write my post once again since I am not being payed for it.

Here is a copy from the google cache, and additional attachments. I hope it was just a "server error".

cached thread

Regards
Svett
Telerik team
 answered on 30 Mar 2012
1 answer
87 views
Hi,

I am facing some issues in datagrid checkbox column.

1. I have crated master template an having a checkbox column e.g and it has some child template as well which i create dynamically
           GridViewCheckBoxColumn1.EnableExpressionEditor = False
            GridViewCheckBoxColumn1.FieldName = "DeleteItem"
            GridViewCheckBoxColumn1.HeaderText = "Delete"
            GridViewCheckBoxColumn1.MinWidth = 20
            GridViewCheckBoxColumn1.Name = "radchkDelete"
            GridViewTextBoxColumn4.EnableExpressionEditor = False
It is allowing me to check only one checkbox(row) at a time and when i am trying to check another checkbox(row)  it is unchecking my previous checked column..why this..?
2.I am checking one checkbox and trying to scroll horizontally ..it is clearing my checked column...why this..?
3.I am using some events like
code:
  Private Sub rdgrdvSeachAddUpt_CellEditorInitialized(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles rdgrdvSeachAddUpt.CellEditorInitialized
            Dim lobjMessage As New Message
            Try

                Dim editor = TryCast(e.ActiveEditor, RadDropDownListEditor)
                If editor IsNot Nothing Then
                    Dim editorElement = TryCast(editor.EditorElement, RadDropDownListEditorElement)
                    If editorElement IsNot Nothing Then
                        If e.Column.Name = "radcmbCriteriaType" Then
                            AddHandler editorElement.SelectedIndexChanged, AddressOf editorElement_SelectedIndexChanged
                        End If
                    End If
                End If
            Catch objException As Exception
                Logger.Log(objException, lobjMessage)
                UIHelper.ShowMessage(lobjMessage)
            Finally
                lobjMessage = Nothing
            End Try
        End Sub
===============
 Private Sub rdgrdvSeachAddUpt_CellValueChanged(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) handles rdgrdvSeachAddUpt.CellValueChanged
            Dim lobjMessage As New Message
            Dim gridColNameCriteriaType As String = "radcmbCriteriaType"
            Try
                If e.Column.Name = gridColNameCriteriaType Then
                    If CInt(e.Row.Cells(gridColNameCriteriaType).Value) = CInt(enumCriteria.Morphology) Then
                        e.Row.Cells("radcmbDiagnosis").ReadOnly = False
                        e.Row.Cells("radcmbInter").ReadOnly = False
                        e.Row.Cells("radcmbCompaOpr").ReadOnly = True
                        e.Row.Cells("raddblCompValue").ReadOnly = True
                        e.Row.Cells("radcmbGender").ReadOnly = True
                        e.Row.Cells("raddblMaxAgeMonth").ReadOnly = True
                        e.Row.Cells("raddblMaxAgeYear").ReadOnly = True
                        e.Row.Cells("raddblMaxValue").ReadOnly = True
                        e.Row.Cells("cmbdblMinValue").ReadOnly = True
                        e.Row.Cells("radcmbParam").ReadOnly = True
                        e.Row.Cells("radcmbVisitType").ReadOnly = True
                        e.Row.Cells("raddblMinAge").ReadOnly = True
                        e.Row.Cells("raddblMinAgeMonth").ReadOnly = True
                        e.Row.Cells("radtxtItemStatus").ReadOnly = True
                        ''To set nothing
                        e.Row.Cells("radcmbCompaOpr").Value = Nothing
                        e.Row.Cells("raddblCompValue").Value = Nothing
                        e.Row.Cells("radcmbGender").Value = Nothing
                        e.Row.Cells("raddblMaxAgeMonth").Value = Nothing
                        e.Row.Cells("raddblMaxAgeYear").Value = Nothing
                        e.Row.Cells("raddblMaxValue").Value = Nothing
                        e.Row.Cells("cmbdblMinValue").Value = Nothing
                        e.Row.Cells("radcmbParam").Value = Nothing
                        e.Row.Cells("radcmbVisitType").Value = Nothing
                        e.Row.Cells("raddblMinAge").Value = Nothing
                        e.Row.Cells("raddblMinAgeMonth").Value = Nothing
                        ' e.Row.Cells("radtxtItemStatus").Value = Nothing

                    ElseIf CInt(e.Row.Cells(gridColNameCriteriaType).Value) = CInt(enumCriteria.BaselineRange) OrElse _
                    CInt(e.Row.Cells(gridColNameCriteriaType).Value) = CInt(enumCriteria.Range) Then
                        e.Row.Cells("radcmbDiagnosis").ReadOnly = False
                        e.Row.Cells("radcmbInter").ReadOnly = False
                        e.Row.Cells("radcmbCompaOpr").ReadOnly = True
                        e.Row.Cells("raddblCompValue").ReadOnly = True
                        e.Row.Cells("radcmbGender").ReadOnly = False
                        e.Row.Cells("raddblMaxAgeMonth").ReadOnly = False
                        e.Row.Cells("raddblMaxAgeYear").ReadOnly = False
                        e.Row.Cells("raddblMaxValue").ReadOnly = False
                        e.Row.Cells("cmbdblMinValue").ReadOnly = False
                        e.Row.Cells("radcmbParam").ReadOnly = False
                        e.Row.Cells("radcmbVisitType").ReadOnly = False
                        e.Row.Cells("raddblMinAge").ReadOnly = False
                        e.Row.Cells("raddblMinAgeMonth").ReadOnly = False
                        e.Row.Cells("radtxtItemStatus").ReadOnly = True

                        e.Row.Cells("radcmbCompaOpr").Value = Nothing
                        e.Row.Cells("raddblCompValue").Value = Nothing

                    ElseIf CInt(e.Row.Cells(gridColNameCriteriaType).Value) = CInt(enumCriteria.RangeAndBaselineComparison) Then
                        e.Row.Cells("radcmbDiagnosis").ReadOnly = False
                        e.Row.Cells("radcmbInter").ReadOnly = False
                        e.Row.Cells("radcmbCompaOpr").ReadOnly = False
                        e.Row.Cells("raddblCompValue").ReadOnly = False
                        e.Row.Cells("radcmbGender").ReadOnly = False
                        e.Row.Cells("raddblMaxAgeMonth").ReadOnly = False
                        e.Row.Cells("raddblMaxAgeYear").ReadOnly = False
                        e.Row.Cells("raddblMaxValue").ReadOnly = False
                        e.Row.Cells("cmbdblMinValue").ReadOnly = False
                        e.Row.Cells("radcmbParam").ReadOnly = False
                        e.Row.Cells("radcmbVisitType").ReadOnly = False
                        e.Row.Cells("raddblMinAge").ReadOnly = False
                        e.Row.Cells("raddblMinAgeMonth").ReadOnly = False
                        e.Row.Cells("radtxtItemStatus").ReadOnly = True
                    End If
                End If
            Catch objException As Exception
                Logger.Log(objException, lobjMessage)
                UIHelper.ShowMessage(lobjMessage)
            Finally
                lobjMessage = Nothing
            End Try
        End Sub
====================
 Private Sub rdgrdvSeachAddUpt_UserDeletingRow(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewRowCancelEventArgs) Handles rdgrdvSeachAddUpt.UserDeletingRow
            Dim lobjMessage As New Message
            Try
                If String.IsNullOrEmpty(Me.rdgrdvSeachAddUpt.CurrentRow.Cells(1).Value.ToString) Then
                Else
                    e.Cancel = True
                End If
            Catch objEx As Exception
                Logger.Log(objEx, lobjMessage)
                UIHelper.ShowMessage(lobjMessage)
            Finally
                lobjMessage = Nothing
            End Try

        End Sub

====================
Can you please help me in point#1,2....
Jack
Telerik team
 answered on 30 Mar 2012
1 answer
105 views
Hi There,

I have a grid which has a custom gridbehavior so that if the user hits Shift+Down the current cell is copied to the next row
if the current row is the last visible row, it creates a new row

that part works ok.

the grid will often have an active filter, and if a user hits shift+down and a new row is created, i'm handling RowsChanged so that i can make the new row match the filter.

despite this happening, the new row still does not show up in the grid, its as if i need to re-apply the filter

can you recommend the best way to handle this?

Thanks,
Matt
Julian Benkov
Telerik team
 answered on 30 Mar 2012
1 answer
142 views
Hello,
i have updated my c# Project from Terlerik Q1 2011 to Q1 2012.
i have get an Error : The RadToolStripItem is not available in Telerik.WinControls.UI.
can anyone help me ?

Best regards

Sascha
Stefan
Telerik team
 answered on 30 Mar 2012
1 answer
305 views
I had a requirement to place a value (Eg: 160 (100)) on CharSeriesItem label. I would like to have two different font sizes for the values. Please suggest.

C# Code:
ChartSeriesItem item = new ChartSeriesItem();
TextBlock txt1 = new TextBlock();
        txt1.Text = "Test1"
        txt1.Appearance.TextProperties.Font = new Font("Segoe UI", 9, System.Drawing.FontStyle.Bold);
        item.Label.Add(txt1);

       TextBlock txt2 = new TextBlock("txt2");
       txt2.Text = "Test2";
       txt2.Appearance.TextProperties.Font = new Font("Segoe UI", 7, System.Drawing.FontStyle.Bold);
       item.Label.Add(txt2);

Peshito
Telerik team
 answered on 29 Mar 2012
8 answers
794 views
Hi,

I've been trying to add images to items in an instance of the RadMenu, and it looks like you don't allow people to set the height or width of an image that is associated with an instance of RadMenuItem? Is there a way to do this, or do you actually have to create individual images, specially sized to 16x16 or whatever, for each of your menu items?

Thanks,

Russ
Ivan Petrov
Telerik team
 answered on 29 Mar 2012
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?