Telerik Forums
UI for WPF Forum
2 answers
262 views
Hi!

I have a grid which has another grid in its row details. Parent grid is not the context menu, and the child grid contains the context menu,however, if I right-click in the row details grid, it shows me the context menu and disappears immediately.
Artem
Top achievements
Rank 1
 answered on 19 Nov 2011
0 answers
278 views

Hi!


Something is happening to me, I appreciate any guide to follow. I have a XBAP main App Full trusted, it added telerik assemblies and my custom assemblies to the references. My custom assemblies referenced has entity classes and general functions and methods which are called from main App and classes (cs file from XAML), and its respective xaml view where to go by using NavigationService.navigate, but something that being taking so long time with no solution is happening to me.

I've constructed a DLL assembly containing XAML views, telerik references and other custom assemblies. Main goal to do it so is because I need to add this Assembly dynamically when is requiered, and that's why this assembly is not added into references into main App. To call a xaml view from main App is by using:

(MainApp)
Assembly dll = Assembly.Load("........dll"); <---- External Assembly not added as reference
object obj = dll.CreateInstance(".../../../mainMenu.xaml");
NavigationService.navigate(obj);

MainMenu.xaml containing telerik components and others is shown successfully, but for some reason when I bind DataContext's MainMenu to my class (ViewModel class) located into my external Custom Assemblies (TransitoMV.dll, and others), system throws an exception:

In spanish:

=== Información de estado anterior al enlace ===
LOG: Usuario = ENTERPRISE\Sistemas01
LOG: DisplayName = TransitoMV, PublicKeyToken=null
 (Partial)
AVS: Se proporcionó información de enlace parcial para un ensamblado:
AVS: Nombre de ensamblado: TransitoMV, PublicKeyToken=null | Id. de dominio: 2
AVS: Un enlace parcial tiene lugar cuando solo se proporciona parte del nombre para mostrar del ensamblado.
AVS: Esto puede dar lugar a que el enlazador cargue un ensamblado incorrecto.
AVS: Se recomienda proporcionar una identidad textual completamente especificada para el ensamblado,
AVS: que consta del nombre simple, la versión, la referencia cultural y el token de clave pública.
AVS: Vea las notas del producto http://go.microsoft.com/fwlink/?LinkId=109270 para obtener más información y soluciones comunes a este problema.
LOG: Appbase = file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/
LOG: PrivatePath inicial = NULL
Ensamblado de llamada : (Unknown).
===
LOG: Este enlace empieza en el contexto de carga default.
LOG: Utilización del archivo de configuración de la aplicación: D:\Proyectos\NET\Solar\Solar\bin\Debug\Solar.exe.config
LOG: Utilizando el archivo de configuración de host:
LOG: Utilizando el archivo de configuración del equipo en C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: La directiva no se está aplicando a la referencia en este momento (enlace de ensamblado privado, personalizado, parcial o basado en la ubicación).
LOG: Intento de descarga de la nueva dirección URL file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/TransitoMV.DLL.
LOG: Intento de descarga de la nueva dirección URL file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/TransitoMV/TransitoMV.DLL.
LOG: Intento de descarga de la nueva dirección URL file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/TransitoMV.EXE.
LOG: Intento de descarga de la nueva dirección URL file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/TransitoMV/TransitoMV.EXE.

With telerik assemblies I have no problems, but with mine I do. How can I do to have no problems with TransitoMV.dll and others mine to be referenced by my external dynamic DLL (containing xaml view) assembly?

thanks
ENTERPRISE INTERNATIONAL SAS
Top achievements
Rank 1
 asked on 18 Nov 2011
2 answers
104 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
143 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
323 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
213 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
140 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
142 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
451 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
139 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
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?