Telerik Forums
UI for WPF Forum
1 answer
169 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
108 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
260 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
5 answers
327 views
Your example "DataForm Integration with RadGridView row-details" looks very nice, but it has a major shortcoming.

It doesn't show how to insert new rows, or how to delete existing rows.

I've been trying to work it out for some hours, now, and am back where I started.

Any ideas?
Maya
Telerik team
 answered on 31 Jan 2012
1 answer
329 views
Hi,
I would like to control the visiblity of a GridViewDataColumn at runtime in a RadGridView.

Thanks in advance.
Vlad
Telerik team
 answered on 31 Jan 2012
0 answers
157 views
It seems like telerik provides several features by default in the base telerik RadGridView Control.
Although, I have achieved some of the customizations I intend to implement. But there are still some which I havent yet been able to implement.
I have attached the snapshots of both the achieved(myradgridview) and the intended(intended1) styles I intend to implement.
I would also like to remove the orangish color of the column header which is activated on mouse hover.
Also, as you would be able to see in the intended1.png snapshot that the color of the selected tuple is bluish and not the orangish provided by default.


Thanks in advance.
Zubair
Top achievements
Rank 1
 asked on 31 Jan 2012
3 answers
403 views
Hi,

I'm having a problem re-templating combo box items on the RadRibbonComboBox. The item template works fine only for items in the drop down, but not for the selected item that shows when the como is closed. I bind the ItemsSource to a collection of custom entities, and was setting the DisplayMemberPath to one of their properties - MemberDisplay - but I now need to do extra formatting on the display so as to change the background colour of certain items based on values in the entity.

As i said, it works for the items in the dropdown, but not for the selection box items. Here is the xaml:

<rad:RadRibbonComboBox
    Width="95"
    Margin="0 5 0 0"
    IsEditable="True"
    IsReadOnly="True"
    ItemsSource="{Binding TimeFilterFromMonitorCombo.Items}"
    SelectedItem="{Binding TimeFilterFromMonitorCombo.SelectedItem}"
    IsSynchronizedWithCurrentItem="True">
    <rad:RadRibbonComboBox.ItemsPanel>
        <ItemsPanelTemplate>
            <VirtualizingStackPanel />
        </ItemsPanelTemplate>
    </rad:RadRibbonComboBox.ItemsPanel>
    <rad:RadRibbonComboBox.ItemTemplate>
        <DataTemplate>                                       
            <StackPanel Orientation="Horizontal">
                <TextBlock Background="{Binding ItemBackground}" Text="{Binding MemberDisplay}" HorizontalAlignment="Stretch" />                                       
            </StackPanel>
        </DataTemplate>
    </rad:RadRibbonComboBox.ItemTemplate>                               
</rad:RadRibbonComboBox>


That seems right to me, and when i use this kind of concept for other combos it works ok. Is this something particular to RibbonComboBox controls? I've attached images of how it looks in the application.

Konstantina
Telerik team
 answered on 30 Jan 2012
2 answers
141 views
Hi,

I would like to draw a bar chart and set min and max values for each bar. How to accomplish that?
Martinelli
Top achievements
Rank 1
 answered on 30 Jan 2012
2 answers
103 views
Hello,
I've a combobox defined as

    <telerik:RadComboBox Grid.Row="0" IsEditable="true" SelectedItem="{Binding SelectedDateMode=TwoWay}"
                             x:Name="ComboBox" Height="30" Width="150" ItemsSource="{Binding Collection, Mode=OneWay}"
                             ItemTemplateSelector="{StaticResource itemTemplateSelector}" OpenDropDownOnFocus="True" />

and the template I'm going to use is

 <DataTemplate x:Key="datetimeDataTemplateSelector">
                <TextBlock Text="{Binding Data}"/>
            </DataTemplate>

it's bound to an object of type

   public class TestObject : INotifyPropertyChanged
    {
        public bool IsGeneric { get; set; }

        public DateTime? Data { get; set; }

        public event PropertyChangedEventHandler PropertyChanged;

        public void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
and when the dropdown is open I got the data shown.. when I select an Item I got for the itemtemplate RadControlsWpfApp2.TestObject

Since I cannot specify a DisplayMember how can I tell to show the Data value?
Thanks
Michele
Top achievements
Rank 2
 answered on 30 Jan 2012
4 answers
125 views
I use the GridView in a fashion similar to your example in http://www.telerik.com/help/wpf/gridview-managing-data-add-new-entries.html:
private void radGridView_RowEditEnded( object sender, GridViewRowEditEndedEventArgs e )
{
    if ( e.EditAction == GridViewEditAction.Cancel )
    {
        return;
    }
    if ( e.EditOperationType == GridViewEditOperationType.Insert )
    {
        //Add the new entry to the data base.
        DBUtility.AddEmployee( e.NewData );
    }
}

My "DBUtility.AddEmployee" may return an exception due to a database constraint (e.g. duplicate key). Is there a suggested way to handle this? Any special event?
I would like the result to look approximately the same way as if I was using RowValidating and set the IsValid property to false.

Thanks.
Nedyalko Nikolov
Telerik team
 answered on 30 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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?