Telerik Forums
UI for WPF Forum
2 answers
87 views
Telerik,

I want to show Button(whose content is an image and text) when a RadTileViewItem is maximized and Show only the Image in the button when minimized.  I have created a property which is bind to the Visibility of the button. How can I get the TileState inside this property?

Thanks,
-Methil
Nemo
Top achievements
Rank 1
 answered on 18 Nov 2011
2 answers
128 views
I have some validations that are dependent on other controls.  As an example, let's say I have a textbox where I want the traditional tab off (lost focus) behavior of the textbox to validate ... as well as when a checkbox is selected.  In the checkbox_checked event I can do the following to force an update:

BindingExpression be = tb.GetBindingExpression(TextBox.TextProperty);
be.UpdateSource();


I would like to do something similar with a RadComboBox.  There is a situation where I'd like to force a validation from a different component as well as doing the lost focus of the RadComboBox in question.  I've attempted something similar to the above, but to no avail:

BindingExpression be = rcb.GetBindingExpression(Telerik.Windows.Controls.RadComboBox.TextProperty);
be.UpdateSource();

I've also tried: 
Telerik.Windows.Controls.RadComboBox.SelectedItemProperty
etc.


It appears that no matter what property I try to grab, the returned BindindExpression is always null.  Is there a way to accomplish what I'm trying to do?
Hugh
Top achievements
Rank 1
 answered on 18 Nov 2011
8 answers
304 views
I'm using the RadGridview with the Metro theme applied. I want to change, and only change the background color of the HeaderCell. I can do this easily if I'm defining each data column, like below:

XAML:
 <telerik:GridViewDataColumn Header="Type" Width="150" DataMemberBinding="{Binding TypeDisplay}" HeaderCellStyle ="{StaticResource raHeaderCellStyle}"/>

Style:
    <Style x:Key="raGridViewHeaderCellControlTemplate" TargetType="telerik:GridViewHeaderCell">
        <Setter Property="Background" >
            <Setter.Value>
                <SolidColorBrush Color="Blue" />
            </Setter.Value>
        </Setter>
    </Style>

However, if I AutoGenerate columns  I can't figure out how to set this cellheader style. Thanks.
Shaun
Top achievements
Rank 1
 answered on 18 Nov 2011
2 answers
180 views
It seems as though the current WPF demo application will not run. I just tried it, it told me there was a new version, it loaded but won't execute. The version is 2011.3.1116.35 I have uninstalled and reinstalled but it always fails.

The system application log reports:

Faulting application name: WPF Demos.exe, version: 1.0.0.0, time stamp: 0x4ec3f9e2
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17625, time stamp: 0x4de8781e
Exception code: 0xe0434352
Fault offset: 0x0000b9bc
Faulting process id: 0x738
Faulting application start time: 0x01cca569b8e4d4f4
Faulting application path: C:\Users\xxx\AppData\Local\Apps\2.0\6GNG0VC5.4GG\1N029QJT.QB9\wpfd..tion_1dcf05cf98ac3011_07db.0003_1a601d23e40abbf7\WPF Demos.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: f6a11cc8-115c-11e1-86af-68b599ebba9e

Followed by:

Application: WPF Demos.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.UnauthorizedAccessException
Stack:
   at System.Deployment.Internal.Isolation.IActContext.SetApplicationRunningState(UInt32, UInt32, UInt32 ByRef)
   at System.ActivationContext.SetApplicationState(ApplicationState)
   at System.AppDomain.SetupDomainForApplication(System.ActivationContext, System.String[])
   at System.AppDomain.SetupApplicationHelper(System.Security.Policy.Evidence, System.Security.Policy.Evidence, System.ApplicationIdentity, System.ActivationContext, System.String[])
   at System.AppDomain.InitializeDomainSecurity(System.Security.Policy.Evidence, System.Security.Policy.Evidence, Boolean, IntPtr, Boolean)

Thanks
Claude
Top achievements
Rank 1
 answered on 18 Nov 2011
3 answers
113 views

Hi,

in my application I have a RadBook which receive as an ItemsSource a collection of memo's. I would like to know if it's possible to have on the first page only the flexibility to edit the memo?

Thank's
Tina Stancheva
Telerik team
 answered on 18 Nov 2011
4 answers
127 views
Hi Guys,

I don't know whether this is GridView or RadTreeListView bug, but when you double click too fast to expand/collapse any row, you get null reference exception. The exception is thrown in GridViewRow.cs line 571: this.GridViewDataControl.RaiseRowActivated(this,this); where GridViewDataControl is being null.

Also I have the same problem when doing another thing. I subscribe for the row or cell (doesn't matter) double click event and in that event I try to change the IsExpanded property to it's opposite value. When I try to do that, I get the same NullReferenceException regarding the GridViewDataControl property.

I notice that you sometimes check for null value when accessing this property and sometimes you don't. Please advise. I would really want to be able to expand/collapse the row on double click event, but at this time I can't because of this internal exception.

I can provide you with sample code if you like, but I think the issues are very easy to spot.

Kind Regards,

Ivan.
Ivan Zlatanov
Top achievements
Rank 1
 answered on 18 Nov 2011
7 answers
419 views
Hello I have a prism/mvvm style application and am using the RadMenu control. I also have a view/view model pair in one project and another view/view model pair for my RadMenu control in another project. Basically I would like to use the event aggregator to send an event to the view model for the RadMenu (the view model that is paired with the view that the RadMenu sits inside of). So that the RadMenu's view model can notify the RadMenu to switch to a different RadMenuItem programmatically. I think I can use a blend behavior to contain the behavior I'm looking to reproduce, but I cannot find a method in the RadMenu that will allow me to programmatically select a specific menu item.

If the control does not support this now, is there a work around? Thanks.
Konstantina
Telerik team
 answered on 18 Nov 2011
1 answer
127 views
Hello,

I use the following code, I created a pie chart that appears with label displayed in spider mode (SpiderModeEnabled = true). However, did not displayed label of "Foo". (image1.jpg)

MainWindow.xaml
<Window x:Class="Test.MainWindow"
        Title="MainWindow"
        Height="250"
        Width="495"
        xmlns:TelerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
        xmlns:TelerikCharting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting">
    <Grid>
        <TelerikChart:RadChart x:Name="m_RadChart" />
    </Grid>
</Window>

MainWindow.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls.Charting;
using Telerik.Windows.Controls;
 
namespace Test
{
 
    // Data model.
    public class ChartRecord
    {
        public string Legend { get; set; }
 
        public int Value { get; set; }
    }
 
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
 
            // Create data source.
            List<ChartRecord> source = new List<ChartRecord>();
            source.Add(new ChartRecord() { Legend = "Foo", Value = 50 });
            source.Add(new ChartRecord() { Legend = "Bar", Value = 30 });
            source.Add(new ChartRecord() { Legend = "Baz", Value = 20 });
            m_RadChart.ItemsSource = source;
 
            m_RadChart.DefaultView.ChartArea.SmartLabelsEnabled = true;
 
            PieSeriesDefinition definition = new PieSeriesDefinition();
 
            // Setup label settings.
            RadialLabelSettings labelSettings = new RadialLabelSettings();
            labelSettings.SpiderModeEnabled = true;
            labelSettings.ShowConnectors = true;
            definition.LabelSettings = labelSettings;
             
            // Setup mappings.
            SeriesMapping seriesMapping = new SeriesMapping();
            seriesMapping.SeriesDefinition = definition;
            seriesMapping.ItemMappings.Add(new ItemMapping("Value", DataPointMember.YValue));
            seriesMapping.ItemMappings.Add(new ItemMapping("Legend", DataPointMember.XCategory));
            m_RadChart.SeriesMappings.Add(seriesMapping);
        }
    }
}

In addition, connecter disappeared when after making resize to small window until a pie chart disappears, restore to the original size.  (image2.jpg)

Do you have problem solution?

Thanks,
Nikolay
Telerik team
 answered on 18 Nov 2011
7 answers
374 views
Hi

I have a little application, than this:
http://msdn.microsoft.com/en-us/magazine/dd419663.aspx

I make the acquaintance of the Drag and Drop now, and I would like to ask it, that theoretically possible the Drag and Drop between two different View, or i can use it only one View than in these examples:

http://www.telerik.com/help/wpf/raddraganddrop-between-treeview-gridview.html


Thanks.
Tuan
Top achievements
Rank 1
 answered on 18 Nov 2011
13 answers
672 views
Hi,

I've a column which is a RadGridViewComboBox. Before it was only a normal text column and I was able to filter /sort on it, but now since it has to be editable, I had to replace this by a RadGridViewComboBox, but now the little funnel isn't displayed anymore.

Why this?

Here is how I made it:
<telerik:GridViewComboBoxColumn Header="Product"  Width="2*"  DataMemberBinding="{Binding Product}"  DisplayMemberPath="FullDescription" ItemsSource="{Binding Products}"/>


Thank you!
Pankaj
Top achievements
Rank 1
 answered on 18 Nov 2011
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?