Telerik Forums
UI for WinForms Forum
2 answers
115 views
I have some grids that are behaving oddly.  They both have two columns/no headers, but the text of the columns is off the grid to the right.  For some reason there are no horizontal scroll-bars, which would be OK if the first column wasn't lost.  Anyway, see the two grids in the attachments.  The attachments are to illustrate the bottom grid before/after I click on the cell with text.

Any ideas?
Jack
Telerik team
 answered on 02 Apr 2012
1 answer
114 views
hi
=====
i have winform c#.Net Program
how i can set win7tem from telerik commponent to my program?

please
Ivan Petrov
Telerik team
 answered on 02 Apr 2012
3 answers
115 views
Hello.

This is related to a question that I asked earlier about the Tab Overflow that Richard Slade answered for me.

Is it possible to pin a Document Tab?

Case:  User opens several Tabbed Document Windows at the start of the day.  The first Tab is a TreeView Navigator for all of the other Documents.  And the users want the Navigator Tab to stay as the first Tab on the left side.  I have been able to keep the Navigator Tab in place when ever a new Window (Document) is opened by always setting that Tab index to 0.  Any Tabs that overflow, overflow to the right.  This is the behavior that the users want.  The issue is that when an existing Tab is activated by the OverFlow Button or just selecting it again from the Navigator.  When the reactivated Tab that is re-indexed to become visible, there is a shift of the Tabs to the left, pushing the Navigator Tab out of view.  I couldn't find any setter properties that I could use to shift the Tabs back to the right.

Of course, screen real estate is always an issue and some of the windows have rather large grids on them which we try very hard to keep all of the columns visible (no scroll bar) in the 1024 X 768 resolution that the users want.  So, I've tried making the Navigator Tab a Tool Widow that can be pinned and hidden but that little space that the "hidden" ToolBar takes is just enough to force a scroll bar on some of the Windows with grids.

So, if anyone knows a way to keep the Navigator Tab from shifting to the left, or a way to reshift it to the right, or just a better way to accomplish this,  I will appreciate all tips and ideas.

Thanks

Mike Baxa
Julian Benkov
Telerik team
 answered on 02 Apr 2012
2 answers
137 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
52 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
127 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
95 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
109 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
69 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
93 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
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
ProgressBar
CheckedDropDownList
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
+129 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?