Telerik Forums
UI for WPF Forum
1 answer
130 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
259 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
255 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
339 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
526 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
90 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
140 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
54 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
4 answers
211 views
Hi

for storing RadDocument content in DB we use the Xaml format and get the Xaml
using the XamlDataProvider, binding its Xaml dependendency property
to a property of some custom class.

This works very well and reliably in virtually all situations and with
all kinds if RTF content.

Now I have a situation where I append a new paragraph to the richtextbox's
Document using

currentParagraph.Parent.Children.AddAfter(currentParagraph, newPargraph);


In this case both XamlDataProvider.Xaml doesn't change und doesn't update my bound
property and also the richtextbox's document isn't updated visually: the new paragraph is not displayed.
However when i check the xaml of richtextbox.Document using

xaml = new XamlFormatProvider().Export(richtextbox.Document);


the new Paragraph is there.

So there seems to be a discrepancy between the
"logical" content of the document and the one actually rendered.

How can that be?
Is my way of appending the paragraph not the recommend one?
Do i need some extra code for updating the document (kind of refresh or so?)?

Thanks
Chris


Christoph
Top achievements
Rank 1
 answered on 15 May 2012
0 answers
94 views
Hi!
I have a question/problem with DragAndDrop and listBoxes.
I have two collections:
   var coll1 = new ObservableCollection<User>() {new User() {Id = 1}, new User() {Id = 2}};
  var coll2 = new ObservableCollection<User>() { new User() { Id = 2 }, new User() { Id = 4 } };

listbox1.ItemSource=coll1;
listbox2.ItemSource=coll2;

I can  copy some items from listbox1 to listbox2 via draganddrop, but when i want to drag from listbox1 to listbox2 item User(id=2) I put listbox2.AllowDrop= false, because i don't want that listbox2 contains two equal items User(id=2)

So it works, but i want more ;) I want to show why it is impossible to drop item to listbox.

        private void OnDragInitialize(object sender, DragInitializeEventArgs e)
        {
            e.AllowedEffects = DragDropEffects.Copy;
            var data = ((FrameworkElement)e.OriginalSource).DataContext;
            e.DragVisual = new DragVisual()
            {
                Content = data,
                ContentTemplate = this.Resources["DragTemplate"] as DataTemplate
            };
            DataObject dataObject = new DataObject();
            dataObject.SetText(data.ToString());
            dataObject.SetData("DragData", data);
            dataObject.SetData("Text", data.ToString());
            e.Data = data;
        }

I want to show something like this link

Thanks in advance!
Inq
Top achievements
Rank 1
 asked 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?