Telerik Forums
UI for WPF Forum
1 answer
621 views
Hi 

I am having issues setting the RadWindow.Alert window from Code. The method I tried is as follows:

RadWindow.Confirm(
                new DialogParameters
                    {
                        Content = new ContentControl { Width = 800, Height = 600, Content = editorView },
                        DialogStartupLocation = WindowStartupLocation.CenterScreen,
                        Closed = (sender, e) => this.AddChartSeriesGroupClosed(sender, e, newChartSeriesGroup),
                    });

The window size using the above code seems to be 400x600 which is coincidental i.e. it is the size regardless of the Width and Height values used above. I have tried MinWidth and MinHeight as well.

Any ideas?
Yana
Telerik team
 answered on 16 May 2012
7 answers
588 views
Hello,

I'm using WPF RadGridView which loades a large database table (about 200000 rows).
I bind the GridView to VirtualQueryableCollectionView object which makes async calls to WCF service in the ItemsLoading  event.
The data from the WCF web service is, of course, retured after the VirtualQueryableCollectionView.ItemsLoading event is ended.
When the data is retured from the WCF web service I load the data to the VirtualQueryableCollectionView using the VirtualQueryableCollectionView.Load method.
The problem is when I drag the scroller, for example, to the middle of the grid it doens't show the loaded data, because the data is loaded a little later after the VirtualQueryableCollectionView.ItemsLoading is finished.
When I scroll to other point in the grid and return back to that place, the data which was loaded earliear is shown correctly.
It seems like it needs to send some notify to the GUI that the data is loaded after the VirtualQueryableCollectionView.ItemsLoading is finished (like INotifyPropertyChanged interface or something).

BTW, when I use sync WCF web service, it works correctly because the data is loaded within the VirtualQueryableCollectionView.ItemsLoading event.

How can I resolve this problem?

Thanks,
Alex Vr.
Rolf
Top achievements
Rank 2
 answered on 16 May 2012
3 answers
222 views
Hi,

Is there any reason why the richtextbox TextInput event doesn't fire? Does it have something to do with it hosting a document?

DocumentContentChanged etc events fire. I am just wondering why TextInput doesnt?... mainly for reference purposes.

Thanks,

Rob
Boby
Telerik team
 answered on 16 May 2012
0 answers
155 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
294 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
165 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
270 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
263 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
348 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
542 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
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?