Telerik Forums
UI for WPF Forum
0 answers
62 views
Hey :)
After trying and failing I decided to ask here.

I would like to add a tool tip on each of Calendar Buttons. Right now I can only add it to the calendar control which does not help.

Please, let me know if you need more clarification.
 
Thank you ;)
Vytautas Smitas
Top achievements
Rank 1
 asked on 06 Nov 2009
3 answers
155 views

Respected Sir,

Problem's Objective:Drag and Drop a row and also multiple row from RadGridview to RadTreeView item . 

Problem's Description : Well , i m having the RadgridView whose itemsource is binded with observableCollection and this GridView's itemsource  changes according to TreeView Item selected. Now i m trying to achieve Draging the gridview's row to TreeView Item but i m not getting the same 

I have viewed several post where by in Radgridview's xaml  Drag and Drop Functionality for its row is set as below:

 

<

 

 

gridView:RadGridView AutoGenerateColumns="True" x:Name="gridView"

 

 

 

 

UseAlternateRowStyle="False" dragDrop:RadDragAndDropManager.AllowDrop="True"

 

 

 

 

Grid.Column="1" Margin="30">

 

 

 

 

<gridView:RadGridView.RowStyle>
<Style TargetType="gridViewElements:GridViewRow">

 

 

 

 

<Setter Property="dragDrop:RadDragAndDropManager.AllowDrag" Value="True" />

 

 

 

 

</Style>

 

 

 

 

</gridView:RadGridView.RowStyle>

 

 

 

 

</gridView:RadGridView>

 

 

 

 

 
I want above thing in programatic way in code bind file in c#.

Also i m not to get the visibilty of Draging the row... i have done following things

 

 

RadDragAndDropManager.AddDragQueryHandler(this.gvEmail, OnDragQuery);

 

 

RadDragAndDropManager.AddDragInfoHandler(this.gvEmail, OnDragInfo);

 

 

EventManager.RegisterClassHandler(typeof(GridViewRow), RadDragAndDropManager.DropQueryEvent, new EventHandler<DragDropQueryEventArgs>(OnGridViewRowDropQuery));

 

 

EventManager.RegisterClassHandler(typeof(GridViewRow), RadDragAndDropManager.DropInfoEvent, new EventHandler<DragDropEventArgs>(OnGridViewRowDropInfo));

 

 


 

 

void gvEmail_RowLoaded(object sender, RowLoadedEventArgs e)

 

{

 

if (e.Row is GridViewHeaderRow || e.Row is GridViewNewRow || e.Row is GridViewFooterRow)

 

 

return;

 

 

var row = e.Row as GridViewRow;

 

 

this.InitializeRowDragAndDrop(row);

 

 

}

 

private void InitializeRowDragAndDrop(GridViewRow row)

 

{

 

if (row == null)

 

 

return;

 

row.SetValue(

RadDragAndDropManager.AllowDragProperty, true);

 

 

//row.SetValue(RadDragAndDropManager.AllowDropProperty, true);

 

}

 


As i m newbie to the Telerik please give your valuable suggestions.

Thanks in advance.

Miral Shah

Miroslav
Telerik team
 answered on 06 Nov 2009
7 answers
122 views
Hello,

I just upgraded to 2009.Q3 and, I'm struggling with the migration from Q2 to Q3.  Is there any good resource I can go to "do what I did with Q2 in Q3"?   A translation from the obsolete properties/methods to the new ones would be highly appreciated

Ok, the concrete issue I'm seeing right now is related to the code below (minimalist version):

myGrid.ItemsSource = myDataTable;
myGrid.AutoGeneratingColumn += myGrid_AutoGeneratingColumn;

After performing these operations, I see that myDataTable.Columns.Count = 25 and myGrid.Columns.Count = 0, and the event handler AutoGeneratingColumn is never executed.

Please help,
Marco
Vlad
Telerik team
 answered on 06 Nov 2009
2 answers
62 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
443 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
80 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
66 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
132 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
164 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
119 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?