Telerik Forums
UI for WPF Forum
3 answers
179 views
Is it possible to use a DataTemplate for a GridView columns collection?
I want to define my columns once and use it in multiple views
Maya
Telerik team
 answered on 31 Jan 2012
5 answers
250 views
Hi,

in my application I have a RadGridView for who I create his columns dynamically on a specific event in my application. For each row in this grid, I need a sub grid. To achieve this, I create a GridViewToggleRowDetailsColumn dynamically.
 
In my XAML, I defined a <telerik:RadGridView.RowDetailsTemplate><DataTemplate><telerik:RadGridView x:Name="subSetGrid".

If I want to create dynamically the columns of my "subSetGrid" and assign it's "DataSource" to simething, how I can do to achieve this???

Thank's 
Rossen Hristov
Telerik team
 answered on 31 Jan 2012
2 answers
167 views
We have used Radgrid view and have fixed width of columns.ON double click of the row content we open a tab.
 When we stretch or increase the column width at runtime, it does show the complete bind text and after we double click the extended portion of the row, it does not get the event.
Following is the code example used

<telerik:GridViewDataColumn

                            ShowDistinctFilters="False"

                            Width="250"

                            >

                            <telerik:GridViewColumn.Header>

                                <TextBlock

                                    Text="Role Name"

                                    Style="{StaticResource HeaderTextBlockStyle}"

                                    >

                                </TextBlock>

                            </telerik:GridViewColumn.Header>

                            <telerik:GridViewColumn.CellTemplate>

                                <DataTemplate>

                                    <TextBlock

                                        Text="{Binding Path=RoleName}"

                                        TextTrimming="CharacterEllipsis"

                                        Width="250"

                                        >

                                        <TextBlock.ToolTip>

                                            <ToolTip

                                                Content="{Binding Path=RoleName}"

                                                Background="{StaticResource BlueBrush}"

                                                Style="{StaticResource ToolTipStyle}"

                                                >

                                            </ToolTip>

                                        </TextBlock.ToolTip>

                                    </TextBlock>

                                </DataTemplate>

                            </telerik:GridViewColumn.CellTemplate>

                        </telerik:GridViewDataColumn>

Bhakti
Top achievements
Rank 1
 answered on 31 Jan 2012
5 answers
135 views
using version 2011 Q1
I have a window with a tree view and a grid
when I change the selected item in the tree i run query, build an ObservableCollection and bind it to the ItemSource of the grid.
all grid columns are Width="Auto"
the problem is that when i rebind the ItemSource, the width of columns don't update correctly, actually they don't update at all.
sometimes a column in the the resulting collection has 200 characters at most, other times 25 characters at most.
the columns width does not re size to correctly to 25 characters, it is left at 200 characters, the columns have too much white-space.
is the grid not supposed to do update the columns when the ItemSource gets a new collection?
if not how can I force the columns to adjust to current data collection.
as in one of your examples i have tried to iterate the grid.Columns setting the width to Auto, nothing happened.

your help would be much appreciated.
thanks






Yordanka
Telerik team
 answered on 31 Jan 2012
3 answers
170 views
Hallo,
we have a performance problem with TileView on create tile view form.
As you can see in attached file, there is a big block with MeasureOverride cals inside Telerik TileView.. Is it possible do any optimalization inside this code?
Thank you. David.
Petar Mladenov
Telerik team
 answered on 31 Jan 2012
1 answer
134 views
Hello Telerik,
I've a ComboBox that shows the most recently selected date used (those data are taken by WCF service and they're stored on a DB), I wish the possibility to specify a new date using the DateTimePicker (I've tougth another combobox voice called "Other date" that shows up the DateTimePicker) ... is this possible? how should I handle this?

To be sincere I use an MVVM pattern (Caliburn Micro, ViewModel-first) but if I got the View-First solution I'll elaborate myself the modelview code

Thanks
Paolo
Konstantina
Telerik team
 answered on 31 Jan 2012
2 answers
224 views
Hi,
Could you please let me know how to create a separate context menu when user clicks on column header displaying all available columns of that grid view. using Data Table as data source for Grid view. Is there any feature , which needs to be set in order to enable the header context menu.


Also could you please let me know how to merge the footer cells and make the footer row of fixed width irrespective of number of columns and their width.

Thanks in Advance.

Regards,
Karthik.
Karthik
Top achievements
Rank 1
 answered on 31 Jan 2012
1 answer
173 views

Hi,

I am creating a demo that uses the tile view control and I would like to make it almost invisible apart from a few controls in the header like the minimise/maximise icon.

To achieve this I have removed the boarder and made the background of the tileview item transparent. I was hoping that there would be an easy way to make the background

of the header transparent but when setting the background to transparent it doesn’t make any difference to the header. Is there a way to make the background header transparent

without having to create a new template in blend and also maintaining the minimise/maximize icons? (I am looking to achieve this in XAML at design time as I am using MvvM)

Kind regards

James

 
Petar Mladenov
Telerik team
 answered on 31 Jan 2012
1 answer
114 views
Hi,

I've a RadGridView with a SelectColumn inside a RadPane (RadDocking). 
When the pane is hosted in DocumentHost and i drag the pane over and pass into floating window an exception i thrown :

Message : Specified element is already the logical child of another element. Disconnect it first.
 
StackTrace :
 
   at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
   at System.Windows.FrameworkElement.AddLogicalChild(Object child)
   at System.Windows.Controls.ContentControl.OnContentChanged(Object oldContent, Object newContent)
   at System.Windows.Controls.ContentControl.OnContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.PrepareHeaderContent() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewHeaderCell.cs:line 382
   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.Prepare() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewHeaderCell.cs:line 1100
   at Telerik.Windows.Controls.GridView.GridViewHeaderRow.PrepareCell(GridViewCellBase cellBase, GridViewColumn column) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Rows\GridViewHeaderRow.cs:line 244
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.PrepareCell(GridViewCellBase cell, GridViewColumn column) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 410
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.GetVirtualizedCell(GridViewColumn column, Boolean createIfNull) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 399
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.RealizeAndMeasureCells(Int32 startIndex, Int32 predictedLastIndex, Func`2 calculateNextIndex) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 334
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.UpdateVirtualizedCells() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 269
   at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size availableSize) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 306
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)

If i remove the SelectColumn, all is working fine.

I'm using the internal build of WPF Controls : 2011.3.1227.40
I tried with stable build and latest internal builds and the behavior is the same.

Any help ?

Thanks.
Yordanka
Telerik team
 answered on 31 Jan 2012
1 answer
269 views
using System.Windows.Media;
using Telerik.Windows.Controls;
 
namespace DragDrop
{
    public class OperativeResource : Resource
    {
       ...
    }
}

Visual Studio is telling me that 'Resource' exists in both
Scheduler.dll and ScheduleView.dll but when I attempt to
inherit from Resource using a fully qualified name...

namespace DragDrop
{
    public class OperativeResource :
      Telerik.Windows.Controls.ScheduleView.Resource
    {
       ...
    }
}
...it says Resource does not exist?? As you can guess I'm trying to define a class that can be used in the header of the ScheduleView and it's very important I can do this so any help is seriously appreciated. Thanks, Dan
Yana
Telerik team
 answered on 31 Jan 2012
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?