Telerik Forums
UI for WinForms Forum
6 answers
320 views
Hello

How can I realize this behavior? The user clicks to the first cell of the new row at the top of the grid. He fills in a value, then he presses the tab key. The cursor goes through the cells. When the user presses tab in the last cell, the row should be added and the cursor should go to the first cell of a new row.
This does not work for me: http://www.telerik.com/community/forums/winforms/gridview/automatically-add-new-row.aspx

Thank you
wima
Victoria F
Top achievements
Rank 1
 answered on 20 Oct 2010
2 answers
107 views
I want to Know if the FilterExpressionChangedEventArgs Class is exist in Telerik 2009 or not
Stefan
Telerik team
 answered on 20 Oct 2010
5 answers
144 views
Rad Menu don't support right to left...!
we need right to left support menu,in Iran ,with Farsi language.
Stefan
Telerik team
 answered on 20 Oct 2010
18 answers
450 views
Hello,

I am using Radgrid.

i am adding two columns in gridview master template
With gridViewChecklistItems.MasterTemplate.Columns
           .Add(colChkListItemGroupID)
           .Add(colChkListtemGroupName)
       End With

i have added on template in Master template and adding some columns in it.
gridViewChecklistItems.MasterTemplate.Templates.Clear()
Dim itemsTemplate As GridViewTemplate = New GridViewTemplate
With itemsTemplate.Columns
            .Add(colChklistHeadingID)
            .Add(colChklistItemID)
            .Add(colChklistItemName)
            .Add(colChklistItemNote)
            .Add(colChkItemTypeName)
            .Add(colChkItemTypeSize)
        End With
  
        itemsTemplate.DataSource = gridListOfItems
        gridViewChecklistItems.MasterTemplate.Templates.Add(itemsTemplate)

and also added the relation with master template colum and child template column
Dim itemToGroupRelation As GridViewRelation = New GridViewRelation(gridViewChecklistItems.MasterTemplate)
       With itemToGroupRelation
           .ChildTemplate = itemsTemplate
           .RelationName = "GroupItems"
           .ParentColumnNames.Add("ChecklistHeadingID")
           .ChildColumnNames.Add("ChecklistHeadingID")
       End With
       gridViewChecklistItems.Relations.Add(itemToGroupRelation)


when i try to update the cell from mastertemplate column. the updated value in cell persists and also update the database
here i am using gridViewChecklistItems_CellValidating event to update the database. so its working fine.

now when i expand the item template/ child grid of specific row and update any sepecific cell,
the updated cell value does not persist in the Cell when i click on other cell or loose the focus from cell.
what would be the problem??.but the "gridViewChecklistItems_CellValidating" event is
fired and database is updated.


again one thing
when i update the one cell or more from itemtemplate. the event must be fired only once not for the cells
how to??


Thanks!









Julian Benkov
Telerik team
 answered on 20 Oct 2010
8 answers
233 views
Hi,
I have a requirement.
Scenario: I need to develop a  windows application,where i have to use pageview.In my application there are two pageviewpages with strip mode.
Problem is when i change pageview one page to another ,click events or any server side events are not firing.
on load of second page I have to load some data in datagrid.
I called the data populating method inside the click event,but data not get populating since the click event is not firing.

Please help me.

Richard Slade
Top achievements
Rank 2
 answered on 19 Oct 2010
1 answer
121 views
Hi Telerik Team,

I've got a radgridview on a form. One of the columns have some long info. When I call bestfitcolumns after binding to grid some columns are to narrow. I can't even read what's in that column. Can you please take a look at the screenshot.
Thank you.
Erkut
Emanuel Varga
Top achievements
Rank 1
 answered on 19 Oct 2010
13 answers
216 views
Hi
I'm using version 2010 Q2. In this version, we have filter prefixes in the filter row. But I like to remove them (Just like previous version).
How can I do that?
Emanuel Varga
Top achievements
Rank 1
 answered on 19 Oct 2010
5 answers
114 views

Exception during custom sorting 2010 Q2 SP2.

Hi

2010 Q2 SP2.

 I have random exception when I want sort in grid.

 I do something wrong or there is bug in grid?

 In my scenario I do custom sorting:

 

 

private void radGridView1_CustomSorting(object sender, GridViewCustomSortingEventArgs e)
{
        if (e.Column.Name == "Size")
        {
            SizeObject size1 = e.CellValue1 as SizeObject;
            SizeObject size2 = e.CellValue2 as SizeObject;
            if (size1.Size > size2.Size)
            { e.SortResult = 1; }
            else if (size1.Size < size2.Size)
            { e.SortResult = -1; }
            else
            { e.SortResult = 0; }
        }
        if (e.Column.SortOrder == RadSortOrder.Descending)
        { e.SortResult *= -1; }
    }
}

 

ArgumentException - Insufficient space in the target location to copy the information.

at System.Collections.Generic.LinkedList`1.CopyTo(T[] array, Int32 index)
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at Telerik.WinControls.UI.GridViewSynchronizationService.AnalyzeQueue()
at Telerik.WinControls.UI.GridViewSynchronizationService.FlushEvents()
at Telerik.WinControls.UI.GridViewSynchronizationService.DispatchEvent(GridViewEvent gridEvent)
at Telerik.WinControls.UI.GridViewSynchronizationService.DispatchEvent(GridViewTemplate template, GridViewEvent eventData, Boolean postUI)
at Telerik.WinControls.UI.GridViewTemplate.DispatchEvent(GridViewEvent gridEvent, Boolean postUI)
at Telerik.WinControls.UI.GridViewTemplate.DispatchDataViewChangedEvent(Object sender, DataViewChangedEventArgs args)
at Telerik.WinControls.UI.GridViewTemplate.FireViewChangedEvent(Object sender, DataViewChangedEventArgs args)
at Telerik.WinControls.UI.GridViewTemplate.OnViewChanged(Object sender, DataViewChangedEventArgs e)
at Telerik.WinControls.UI.GridViewTemplate.OnViewChanged(DataViewChangedEventArgs e)
at Telerik.WinControls.UI.GridViewTemplate.CollectionView_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at Telerik.WinControls.Data.RadCollectionView`1.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
at Telerik.WinControls.Data.RadDataView`1.RebuildData(Boolean notify)
at Telerik.WinControls.Data.RadDataView`1.RefreshOverride()
at Telerik.WinControls.Data.RadDataView`1.OnNotifyPropertyChanged(PropertyChangedEventArgs e)
at Telerik.WinControls.Data.RadCollectionView`1.OnNotifyPropertyChanged(String propertyName)
at Telerik.WinControls.Data.RadCollectionView`1.sortDescriptors_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at Telerik.Collections.Generic.NotifyCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
at Telerik.WinControls.UI.GridViewSortDescriptorCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
at Telerik.Collections.Generic.NotifyCollection`1.OnCollectionChanged(NotifyCollectionChangedAction action, Object item, Int32 index)
at Telerik.Collections.Generic.NotifyCollection`1.InsertItem(Int32 index, T item)
at Telerik.WinControls.Data.SortDescriptorCollection.InsertItem(Int32 index, SortDescriptor item)
at Telerik.WinControls.UI.GridViewSortDescriptorCollection.InsertItem(Int32 index, SortDescriptor item)
at System.Collections.ObjectModel.Collection`1.Add(T item)
at Telerik.WinControls.UI.GridViewColumn.Sort(RadSortOrder sortOrder, Boolean multiSortMode)
at Telerik.WinControls.UI.GridHeaderRowBehavior.OnMouseUp(MouseEventArgs e)
at Telerik.WinControls.UI.BaseGridBehavior.OnMouseUp(MouseEventArgs e)
at Telerik.WinControls.UI.RadGridView.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Regards

Raymond
Top achievements
Rank 1
 answered on 19 Oct 2010
7 answers
178 views
I have a RadGridView with 3 columns.
One of the columns it's the full path of one file.
My problem is, when the file has a big full path, can't see it all because when i resize the column, it has a limit, the Control size.
Is there a way to add a horizontal scroll bar and allow me to resize one column with no limitation?

In attachment is one print of my problem.

Bruno Almeida
Deborah
Top achievements
Rank 1
 answered on 19 Oct 2010
2 answers
168 views
I am writing my own resize code based on discussions in some other threads. I am using the code from one of the examples that looks through each row and gets the column value and then uses MeasureString to determine the correct string width.

This is working well for all but my combobox columns. The value of those columns is the Id (like 35) instead of the display value (like "Acme Inc"). So the size of the column is not being set appropriately.

How do I get the actual displayed value, not the bound value for the column?

Thanks!
Deborah
Top achievements
Rank 1
 answered on 18 Oct 2010
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?