Telerik Forums
UI for WPF Forum
2 answers
58 views
HI Guys,

I just noticed that Isselected property is no longer existing in Q3 release. How can I set the first row to be selected in code behind?

Thanks,

sum sum
Top achievements
Rank 1
 answered on 05 Nov 2009
0 answers
442 views
• What's New
    RadGridView / GridViewDataControl
        • Added Methods
            o Grouping: ExpandGroup, CollapseGroup, ExpandAllGroups, CollpaseAllGroups, FindGroupByItem
            o Hierarchy: ExpandHierarchyItem, CollapseHierarchyItem, ExpandHierarchyItem, CollapseHierarchyItem
            o Filtering: GetDistinctValues
            o PrintToHtml()
        • Added Properties
            o Virtualization
                - EnableRowVirtualization - toggles rows virtualizati
                - EnableColumnVirtualization - toggles columns virtualization
            o ColumnWidth - SizeToHeaer, SizeToCells, Auto, Star, pixel (100).
            o Grouping
                - AutoExpandGroups
                - GroupHeaderTemplate
            o EditTriggers - flags enumeration property where you can define actions that will put a cell into edit mode - CellClick, CurrentCellClick, Default, F2, None
            o CanUserSelect- determines whether selection can be triggered from the UI
            o SelectionMode - specify the selection behavior of RadGridView and GridViewDataControl
            o AlternationCount
            o ScrollPositionIndicatorTemplate - DataTemplate for scroll position indicator that will be displayed when ScrollMode is set to Deferred
        • Added Events
            o DistinctValuesLoading

    Columns
        • Added New Column Types

            o GridViewImageColumn
            o GridViewHyperlinkColumn
            o GridViewDynamicHyperlinkColumn
            o GridViewMaskedTextBoxColumn
            o GridViewToggleRowDetailsColumn
            o GridViewSelectColumn
        • New base column for data bound scenarios: GridViewBoundColumnBase. All the related logic from GridViewDataColumn moved to the new column. All new column types used for editing derive from this column.
        • Added properties:
            o All columns
                - DisplayIndex
                - MinWidht, MaxWidth
                - GroupFooterTemplate
                - FooterTextAlignment
                - ToolTipTemplate
            o DataColumns
                - SortMemberPath
                - GroupMemberPath
                - GroupHeaderFormatString
        • GridViewComboBoxColumn
            o Added IsComboBoxEditable and ItemsSourceBinding properties

    Row
        • GridViewRow
            o IsExpandable and IsExpanded - define whether a row is a hierarchy one. Used in custom hierarchy scenarios
        • GridViewGroupRow
            o Added GroupViewModel property used for group row customizations. It contains Column, GroupDescriptor and Header properties

    DetailsProvider
        • Added Properties:
            o AreFrozen
            o VisibilityChangedCallbac

    IDetailsProvider
        • Added Properties:
            o AreFrozen
            o VisibilityChangedCallback

    GridViewRowDetailsEventArgs
        • Added Properties:
            o Visibility

        • FilteringDropDown
            o Extracted filtering UI to a new control named FilteringControl.
            o IColumnFilterDescriptor (new interface)
            o ColumnFilterDescriptor (new class)
            o DistinctValuesFilterDescriptor (new class)
            o FilteringControlBase (new class)
            o FilteringControl (new class)
            o IFilteringControl (new interface)
            o ViewModelBase (new class)
            o FilteringViewModel (new class)
            o DistinctValueViewModel (new class)
            o FilterDescriptorViewModel (new class)
            o Added ability to define your own custom filtering controls. Implement IFilteringControl or derive from FilteringControlBase and use FilteringControl property of the column to specify your custom filter control.
            o Row Details "lazy" loading: Row Details are not loaded until the first time they are about to become visible.
            o Distinct Values "lazy" loading: Distinct values are not loaded untrul the first time the filtering UI is about to become visible.
            o Added RowValidated and CellValidated events
            o Added GroupFooterTemplate for GridViewColumn
            o Added Clipboard.IsEnabled property (attached behavior)
            o Extended GridViewAddingNewEventArgs with Cancel member
            o GridViewDataControl GetDistinctValues() is now public
            o Added Copy to clipboard built-in support
            o Added SortMemberPath, GroupMemberPath property for GridViewDataColumn
            o Added metadata support for auto-generated columns
            o Added RowDetailsVisibilityChanged event to GridViewDataControl
            o ChildTableDefinitions are now exposed on GridViewDataControl
            o Added GridViewDataColumn.GroupHeaderFormatString property
            o Added BeginEdit() method on cell

    What's Fixed
            o GridView selection modes are now consistent with the selection modes of Microsoft's Selector classes.
            o Column now can be replaced in AutoGeneratingColumn event.
            o Filters now persisted after the grid is rebound.
            o RadGridView.IsReadOnly incorrectly sets GridViewColumn.IsReadOnly is now fixed.
            o RowDetailsTemplate is now loaded only if needed (Lazy Loading)
            o GridViewComboBoxColumn is now exported properly.
            o Distinct filters now respect column DataFormatString.
            o Selecting child row no longer selects its parent row.
            o Fixed DomainDataSource column auto-generation when PageSize is greater than zero.
            o FilteringDropDown now displays distinct values based on the currently applied filters rather than all the data.
   
    What's Changed
            o UI virtualization introduced for rows and columns.
            o GridViewColumn.Width is now Auto by default.
            o GridViewDataControl ScrollMode is now RealTime by default.
            o ColumnFilterDescriptors are now used instead of FieldFilterDescriptors.
            o New base type for data bound columns - GridViewBoundColumnBase. Inherited columns should set BindingTarget property.
            o Simplified and optimized templates for: GridViewRow, GridViewHeaderRow, GridViewFooterRow, GridViewGroupRow, GridViewGroupFooterRow, GridViewCell, GridViewFooterCell, GridViewGroupFooterCell
            o Width property of GridViewColumn is now of type GridViewLength, which allows more customizations - SizeToHeader, SizeToCells, etc.

    Members marked as Obsolete in previous releases and deleted in Q3 2009:
            o GridViewHeaderCell: HeaderTextProperty, HeaderText, IsColumnFilterable
            o GridViewColumn: HeaderText
            o GridViewDataColumn: DataMemberPath
            o ExportExtensions: ToExcelML(this GridViewDataControl source, IList records, bool includeHeader), ToHtml(this GridViewDataControl source, IList records, bool includeHeader), ToText(this GridViewDataControl source, IList records, bool includeHeader), ToCsv(this GridViewDataControl source, IList records, bool includeHeader)
            o DistinctFilterControl
            o GridViewDataControl: RowAppearance, CreateFilterDescriptions(), FilterDescription, GroupDescriptions, SortDescriptions
            o GridViewGroupingEventArgs: GridViewGroupingEventArgs(CollectionChangeAction action, GroupDescription GroupDescription, int index), GroupDescription
            o GridViewItemsControl
            o GridViewSortingEventArgs: SortingState
            o RadGridView: AutoGenerateHierarchyFromDataSet
            o RowAppearanceSettings
            o RecordValidatingRoutedEventArgs
            o Field
            o FieldCollection
            o FieldDescriptor: DataMemberPath
            o IDataFieldDescriptor: DataMemberPath
            o AggregateFunction: Name, Calculate(GroupRecord targetGroup)
            o AverageFunction: AverageFunction(string propertyName, string sourceField, string caption), Calculate(GroupRecord targetGroup)
            o CountFunction: CountFunction(string functionName, string sourceField, string caption), Calculate(GroupRecord targetGroup)
            o EnumerableAggregateFunction: sourceField
            o FirstFunction: FirstFunction(string functionName, string calculationField, string caption), Calculate(GroupRecord targetGroup)
            o LastFunction: LastFunction(string functionName, string calculationField, string caption), Calculate(GroupRecord targetGroup)
            o MaxFunction: MaxFunction(string functionName, string calculationField, string caption), Calculate(GroupRecord targetGroup)
            o MinFunction: MinFunction(string functionName, string calculationField, string caption), Calculate(GroupRecord targetGroup)
            o SumFunction: SumFunction(string functionName, string sourceField, string caption), Calculate(GroupRecord targetGroup)
            o RadGroupDescription
            o RadGroupDescriptionCollection
            o RadSortDescriptionCollection
            o IRecordFactory
            o RecordManager
            o DataRecord
            o ExpandableDataRecord
            o GroupRecord
            o HeaderRecord
            o Record
            o RecordCollection
            o DataControl: CurrentRecord, SelectedRecord, SelectedRecords
            o StringExtensions
            o RecordNavigator
            o SelectionChangeEventArgs: RemovedRecords, AddedRecords
            o DistinctValuesList
            o CheckBoxItem
            o CheckBoxList
            o ClearFilterButton
            o ItemsControl property on GridViewDataControl - use the GridViewDataControl instead 

    Members marked as Obsolete in Q3 2009:
            o GridViewCell: CellRequestBringIntoViewEvent, Editor
            o GridViewCellBase: VerticalLineVisibilityProperty, VerticalLineFillProperty, VerticalLineThicknessProperty, VerticalLineVisibility, VerticalLineThickness, VerticalLineFill
            o ColumnsWidthMode
            o GridViewBoundColumnBase: EditorSettingsProperty, EditorSettings
            o GridViewColumn: ColumnWidthChangedEventArgs, ColumnWidthChanged, VerticalGridlinesBrushProperty, VerticalGridlinesThicknessProperty, VerticalGridlinesVisibilityProperty, VerticalGridlinesBrush, VerticalGridlinesThickness, VerticalGridlinesVisibility
            o GridViewRowValidatingEventArgs: NewValues, OldData
            o CheckBoxEditorSettings
            o ComboBoxEditorSettings
            o DatePickerEditorSettings
            o EditorSettings
            o EditorsLoader
            o GridViewCellEditor
            o GridViewCheckBoxEditor
            o GridViewComboBoxEditor
            o GridViewDatePickerEditor
            o GridViewMaskedTextBoxEditor
            o GridViewTextBoxEditor
            o IEditorSettings
            o MaskedTextBoxEditorSettings
            o TextBoxEditorSettings
            o GridViewDataControl: ValidationModeProperty, ValidationMode, ColumnsWidthModeProperty, AlternateExpandableRowStyle, ExpandableRowStyle, UseAlternateRowStyleProperty, UseAlternateRowStyle, ColumnsWidthMode, VerticalGridlinesVisibilityProperty, VerticalGridlinesVisibility, BringDataItemIntoView(), MultipleSelect
            o Telerik.Windows.Controls.GridView.GridView.GridViewGroupingEventArgs
            o BaseItemsControl: ItemsGenerator
            o GridViewExpandableRow
            o GridViewGroupRow: GridViewGroupRow(GridViewDataControl GridViewDataControl)
            o GridViewNewRow: ValidationMode
            o GridViewRow: ValidationMode
            o FilterDescriptor: FilterDescriptor(string member, FilterOperator FilterOperator, object filterValue, IValueConverter converter), FilterDescriptor(string member, FilterOperator FilterOperator, object filterValue, IValueConverter converter, string format)
            o PropertyRelation: GetDataSource(object context, TableDefinition definition)
            o RelationBase: GetDataSource(object context, TableDefinition definition)
            o TableDefinition: PreviewDataRecordCreate, AutoGenerateFieldDescriptors
            o TableRelation: GetDataSource(object context, TableDefinition definition)
            o RadRowItem: ValidationMode, DataItem

    Changed Templates for 2009.Q3:
            o RadGridView
            o DataCellsPresenter
            o GridViewRow
            o GridViewCell
            o GridViewGroupRow
            o GridViewHeaderRow
            o GridViewHeaderCell
            o DraggedElement
            o GridViewScrollViewer
            o GridViewFooterRow
            o GridViewGroupFooterRow
            o GridViewFooterIndentCell
            o GridViewGroupFooterIndentCell
            o GridViewFooterCell
            o GridViewGroupFooterCell
            o DetailsPresenter
            o FrozenColumnSplitter
            o GridViewGroupPanelCell
            o DistinctFilterControl
            o GridViewGroupPanelItem
            o GridViewHeaderIndentCell
            o GridViewAggregateResultCell
            o ScrollPositionIndicator
            o GridViewDataControl
            o GridViewEditorPresenter – new
            o GridViewToggleButton – new
            o GridViewItemsControl – obsolete
            o GridViewExpander – obsolete
            o GridViewExpandableRow – obsolete
            o GridViewHierarchyChildPresenter – obsolete
            o GridViewHeaderSplitter - obsolete
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 05 Nov 2009
1 answer
78 views
Hello

I've just installed the Q3 release and it looks to be working well!  I've come across one issue so far.  I have a lot of clickable cells in my grids, which are used to drill down further into the software and retrieve more detail.  These have all stopped working since installing the release.

Here's how I implement the event handlers in a column:
                <telerik:GridViewDataColumn Width="Auto" Header="Job Number" Name="JobNumber" 
                                            DataMemberBinding="{Binding sgContractNo}" SortingState="Ascending" Focusable="False" > 
                    <telerik:GridViewColumn.CellStyle> 
                        <Style TargetType="{x:Type telerik:GridViewCell}"
                            <EventSetter Event="MouseUp" Handler="JobNumber_LeftMouseUp" /> 
                        </Style> 
                    </telerik:GridViewColumn.CellStyle> 
 
                </telerik:GridViewDataColumn> 

For some reason this has stopped working!  Any ideas on how to get it going again? Basically, the event specified doesn't fire at all.

Milan
Telerik team
 answered on 05 Nov 2009
1 answer
64 views
Hi All,

I've been playing around with the themes and it seems straightforward. However, I do have one issue - whichever theme I use, I always get whatever text is in TextBlock as White. Without the theme, it's black. With the theme, it's white.

Something as simple as <TextBlock>Test123</TextBlock> gives me a white text. Any idea what am I missing?

Thank you,
yonadav
yonadav
Top achievements
Rank 1
 answered on 05 Nov 2009
1 answer
127 views
Hi

I wonder to know when Docking Control final version will be released (RadDocking)? Will it be this month? Now this control is in beta version and I am waiting for final release.

regards
pit
Kaloyan
Telerik team
 answered on 05 Nov 2009
1 answer
156 views
Hi Guys,

I want to add a filter to select any rows that has id from an array, let's say [1, 5, 18]. 

How to write the property filterdescriptor?

this
.CustomersGridView.FilterDescriptors.Add(new FilterDescriptor("Id", FilterOperator???

 

Rossen Hristov
Telerik team
 answered on 05 Nov 2009
1 answer
113 views
Hello
I have a grid with tow columns
when there is no data in the grid
only the header of the first column is shown
 this is my xaml
 <Grid> 
                        <telerik:RadGridView  Name="gvCustomersIn" AutoGenerateColumns="False" Margin="10,10,10,10" Height="auto" ColumnsWidthMode="Fill" 
                                 HorizontalAlignment="Center" IsFilteringAllowed="False" FlowDirection="RightToLeft" ShowGroupPanel="False" Width="auto" 
                                 BeginningEdit="Grid_BeginningEdit" CellEditEnded="gvCustomersIn_CellEditEnded">  
                                <telerik:RadGridView.Columns> 
                                <telerik:GridViewComboBoxColumn     
                                    DataMemberBinding="{Binding Path=CustomerUnitID}"      
                                    DisplayMemberPath="Name"     
                                    SelectedValueMemberPath="Id"     
                                    Header="שם לקוח"     
                                    UniqueName="CustomerUnitName"     
                                    />                                  
                                <telerik:GridViewComboBoxColumn     
                                    DataMemberBinding="{Binding Path=CustomerTypeID}"      
                                    DisplayMemberPath="Name"     
                                    SelectedValueMemberPath="Id"     
                                    Header="סוג לקוח"     
                                    UniqueName="CustomerTypeName"   
                                    /> 
                                </telerik:RadGridView.Columns> 
                            </telerik:RadGridView>    
                    </Grid>       

Thanks
Missing User
 answered on 05 Nov 2009
3 answers
335 views
Hi,

I am implementing a treeview with a collection. I want to adjust the height of rows, want thinner and it does not occupy a lot of space.

How can I do it?

Thanks,
Dimitrina
Telerik team
 answered on 05 Nov 2009
1 answer
237 views
Hello Telerik,

I have editable radcombobox, and i need to open the dropdown of the combobox when a user clicks on/inside the combobox.
can any one update me how to implement above functionality asap...

Thanks,
Kranthi
Valeri Hristov
Telerik team
 answered on 05 Nov 2009
5 answers
154 views
Hello
I want to add a check box column
but in a specific row (Value="{x:Null}")
I dont want to see the checkbox
just to have an empty cell
one more thing-
in that specific row I want to have a specific style to the all row
this is my code

the style to the all row
<Style TargetType="{x:Type telerik:GridViewRow}">  
                                <Style.Triggers> 
                                    <DataTrigger Binding="{Binding Path=ParentID}" Value="{x:Null}">  
                                       <DataTrigger.Setters> 
                                            <Setter Property="FontSize" Value="12" /> 
                                            <Setter Property="FontWeight" Value="Bold" /> 
                                        </DataTrigger.Setters> 
                                    </DataTrigger> 
                                </Style.Triggers> 
                            </Style> 
in this row I dont want to see the check box.

the checkbox column
<ControlTemplate x:Key="cellTemplate" TargetType="{x:Type telerik:GridViewCell}">  
                                    <Border BorderBrush="DarkGray" BorderThickness="0,0,1,1">  
                                        <CheckBox IsChecked="{Binding Field.Record.Data.General, RelativeSource={RelativeSource TemplatedParent}}"   
                                                    HorizontalAlignment="Center" VerticalAlignment="Center" /> 
</Border> 
</ControlTemplate> 


Thanks!
Milan
Telerik team
 answered on 05 Nov 2009
Narrow your results
Selected tags
Tags
+? 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?