Telerik Forums
UI for WPF Forum
0 answers
168 views
I've added a resource file to my WPF application and in it I have:

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">

<Style TargetType="telerik:RadGridView" BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Office_BlueTheme, ElementType=telerik:RadGridView}}" />
</ResourceDictionary>

and in App.xaml I have:
<Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Dictionary1.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>


And in a usercontrol I've added a RadGridView; Now the group section and gridline borders are blue but the header remains black.
why the theme dosen't apply to column header?
Mehrdad
Top achievements
Rank 1
 asked on 16 May 2012
4 answers
307 views
Hello!

I have a grid with columns and columngroups, which I declare in XAML. According to the time periods of the data, which should be displayed, I have to change to header of the columngroups.

I tried something like ...

GridViewColumnGroup colGrp = rgvAbsaetze.FindName("xcolGrpMon" + i) as GridViewColumnGroup;
colGrp.Header = aktueller_Monat;

... but the colGrp stays null.

How can I achieve this?

Kind regards

Michael

P.S.: I'm new to WPF!
Michael
Top achievements
Rank 1
 answered on 16 May 2012
1 answer
177 views
Hi,

is it possible to use a radmenue in a tooltip or as a tooltip? I want to open a menue from a individuell tooltip out of
a ListBoxitem!

thanks
rene
Dani
Telerik team
 answered on 16 May 2012
3 answers
299 views

When you run your samples for the Chart control to look at the 3d pie chart, these errors are thrown.  Your code is a pretty simple bind to IEnumerable.  What should I do to avoid this when plugging your charts into my app?

 

System.Windows.Data Error: 23 : Cannot convert '{DisconnectedItem}' from type 'NamedObject' to type 'System.Collections.IEnumerable' for 'en-US' culture with default conversions; consider using Converter property of Binding. NotSupportedException:'System.NotSupportedException: ReferenceConverter cannot convert from MS.Internal.NamedObject.

at System.ComponentModel.TypeConverter.GetConvertFromException(Object value)

at System.ComponentModel.TypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)

at System.ComponentModel.ReferenceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)

at MS.Internal.Data.DefaultValueConverter.ConvertHelper(Object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, Boolean isForward)'

System.Windows.Data Error: 6 : 'ObjectSourceConverter' converter failed to convert value '{DisconnectedItem}' (type 'NamedObject'); fallback value will be used, if available. BindingExpression:Path=DataContext; DataItem='LabelLayer' (Name=''); target element is 'LabelLayer' (Name=''); target property is 'ItemsSource' (type 'IEnumerable') NotSupportedException:'System.NotSupportedException: ReferenceConverter cannot convert from MS.Internal.NamedObject.

at MS.Internal.Data.DefaultValueConverter.ConvertHelper(Object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, Boolean isForward)

at MS.Internal.Data.ObjectSourceConverter.Convert(Object o, Type type, Object parameter, CultureInfo culture)

at System.Windows.Data.BindingExpression.ConvertHelper(IValueConverter converter, Object value, Type targetType, Object parameter, CultureInfo culture)'

 

 

Yavor
Telerik team
 answered on 16 May 2012
5 answers
280 views
I am trying to resolve an issue with weird behavior on a RadMaskedCurrencyInput control when entering negative values.  I believe you would experience similar issues with other masked input controls. I currently have this control:
<telerik:RadMaskedCurrencyInput />
If you run this and try to enter -500 for example, the textbox does not take in the negative.  You have to type the 500, then the "-" for the textbox to recognize the negative value. 

I have also noticed that if you load the control with a default value, then the negative is recognized when you type it in.
<telerik:RadMaskedCurrencyInput Value="51.64" />

Basically, try this control without a default value and you will see some pretty funky behavior when trying to enter a negative number.

Any feedback will be helpful.
Thanks.
Yana
Telerik team
 answered on 16 May 2012
5 answers
370 views
Hi,
I have a grid witch has frozen readonly columns, can I make them unselectable or not to accept tab, enter & mouseclick ?

Best regards
Kristján
Nedyalko Nikolov
Telerik team
 answered on 16 May 2012
6 answers
562 views
Hi,
I just read in your wpf documentation section to change theme brushes for Metro Custom theme. i.e.

MetroColors.PaletteInstance.MainColor = Colors.Black;
            MetroColors.PaletteInstance.AccentColor = Colors.Orange;
            MetroColors.PaletteInstance.BasicColor = Colors.DarkGray;
            MetroColors.PaletteInstance.StrongColor = Colors.Gray;
            MetroColors.PaletteInstance.MarkerColor = Colors.LightGray;
            MetroColors.PaletteInstance.ValidationColor = Colors.Red;


Can i do the same for other telerik themes like Windows7Theme?
Gonzalo
Top achievements
Rank 2
 answered on 15 May 2012
0 answers
105 views

Anyone know of C# code examples that show a RadDataFilter, RadGridView, and RadDataForm all using the same "Source"?
Something like this?

IEnumerable<MyClass> SomeResults;

SomeResults = GetResults();

MyDataForm.ItemsSource = SomeResults
MyDataFilter.Source = SomeResults;
MyGridView.ItemsSource = SomeResults;

I know in xaml you can do something like this for the grid
{Binding FilteredSource, ElementName=MyDataFilter}

but I have no idea how to pull this off in C# code.

When I scroll my grid, the Dataform does not move.  When I select next in my dataform, the Grid selection does not move, and when I apply a filter, nothing gets filtered.

This setup (Filter, Grid, dataform) will be used to display items from multiple sources, therefore I have to do it all in code.

Thanks for any help.

Jeff

Jeff
Top achievements
Rank 1
 asked on 15 May 2012
2 answers
163 views

A user of our Click Once app took a screen capture of a trial notification they received while using our application.

RadControls for WPF Trial
You are runnng a trial version of RadControls for WPF.
Would you like to get details on purchasing a license?


The page in question makes use of the WPF Grid Control.
We have a license for all our developers - What is the issue?

The controls that were used for the build are the ones from the manage products section on the telerik site.
Specifically:
RadControls_for_WPF_2012_1_0326_Dev.msi
Jim
Top achievements
Rank 1
 answered on 15 May 2012
1 answer
94 views
Hi,

i'm using two RadListBoxes with one Datasource. Is there any function to filter the items in the RadListBox?


Example:
ListBoxA             ListBoxB

DataSource:
New York, Status="A"
L.A, Satus="A"
Dallas, Status="B"

Result Now:

ListBoxA             ListBoxB
New York            New York
L.A.                    L.A.
Dallas                 DAllas

But i want to filter the status:
ListBoxA             ListBoxB
New York            Dallas
L.A.                   
Dallas               

Thanks
Regards
Rene

George
Telerik team
 answered on 15 May 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?