Telerik Forums
UI for WPF Forum
1 answer
107 views
Hi,
I got problem when i installed your latest release and found that when we change a combox value, it changes the combobox selected value on previous rows and set their selected items the same one I have put in new cell. Any idea?
Also when i rev erted my version to previous one, grid is working fine..
Thanks
Milan
Telerik team
 answered on 29 Jul 2010
3 answers
168 views
Hi, 

 I have a form containing table layout control , I would like to print preview the tablelayout panel.
Currently I calculate the position of the controls and place them on the document for printing. But this will result in truncation of the controls which will not fit on the page.

Any samples will be of help. 

Thank you.
Yavor Georgiev
Telerik team
 answered on 29 Jul 2010
11 answers
858 views
Hi,

I  have my VSPackage extention for VS2010.
I have tried to use with the GridView in my custom window pane, but  I have exception.
I referenced are following assemblies :
            Telerik.Windows.Controls
            Telerik.Windows.Controls.Data
            Telerik.Windows.Controls.Input
            Telerik.Windows.Controls.GridView
            Telerik.Windows.Data

I don't know what is missing?
I use the 2010.2 version.


"System.Windows.Markup.XamlParseException: 'Initialization of 'Telerik.Windows.Controls.GridViewCheckBoxColumn' threw an exception.' Line number '34' and line position '66'. 
---> System.Xaml.XamlObjectWriterException: Set property 'System.Windows.ResourceDictionary.Source' threw an exception. 
---> System.Windows.Markup.XamlParseException: Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception. 
---> System.Xaml.XamlObjectWriterException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. 
---> System.IO.FileNotFoundException: Could not load file or assembly 'Telerik.Windows.Controls.Input, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityC
hecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly(BamlAssembly bamlAssembly)
   at System.Windows.Baml2006.Baml2006SchemaContext.GetAssembly(Int16 assemblyId)
   at System.Windows.Baml2006.Baml2006SchemaContext.EnsureXmlnsAssembliesLoaded(String xamlNamespace)
   at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType(String xamlNamespace, String name, XamlType[] typeArguments)
   at System.Xaml.XamlSchemaContext.GetXamlType(XamlTypeName xamlT
ypeName)
   at MS.Internal.Xaml.XamlContext.GetXamlType(XamlTypeName typeName, Boolean returnUnknownTypesOnFailure, Boolean skipVisibilityCheck)
   at MS.Internal.Xaml.XamlContext.ResolveXamlType(String qName, Boolean skipVisibilityCheck)
   at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_Resolve(String qName)
   at MS.Internal.Xaml.ServiceProviderContext.System.Windows.Markup.IXamlTypeResolver.Resolve(String qName)
   at System.Windows.Markup.TypeTypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue(IServiceProvider serviceProvider)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
   --- End of inner exception stack trace ---
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
   at System.Xaml.XamlObjectWriter.Logic_Pro
videValue(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.WriteEndMember()
   at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
   at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
   at System.Windows.ResourceDictionary.EvaluateMarkupExtensionNodeList(XamlReader reader, IServiceProvider serviceProvider)
   at System.Windows.ResourceDictionary.GetKeyValue(KeyRecord key, IServiceProvider serviceProvider)
   at System.Windows.ResourceDictionary.SetKeys(IList`1 keyCollection, IServiceProvider serviceProvider)
   at System.Windows.ResourceDictionary.SetDeferrableContent(DeferrableContent deferrableContent)
   at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<Create_BamlProperty_ResourceDictionary_DeferrableContent>b__168(Object target, Object value)
   at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance
, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   at MS.Internal.AppMode
l.AppModelKnownContentFactory.BamlConverter(Stream stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
   at MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(Stream s, ContentType contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean sandboxExternalContent, Boolean allowAsync, Boolean isJournalNavigation, XamlReader& asyncObjectConverter)
   at System.Windows.ResourceDictionary.set_Source(Uri value)
   at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<Create_BamlProperty_ResourceDictionary_Source>b__1c4(Object target, Object value)
   at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
   --- End of inner ex
ception stack trace ---
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
   at MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.SetValue(Object obj, XamlMember property, Object value)
   at System.Xaml.XamlObjectWriter.SetValue(Object inst, XamlMember property, Object value)
   at System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop, Object value, Boolean onParent)
   at System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx)
   at System.Xaml.XamlObjectWriter.WriteEndMember()
   at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
   at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
   at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter)
   at System.Windows.SystemResources
.ResourceDictionaries.LoadDictionary(Assembly assembly, String assemblyName, String resourceName, Boolean isTraceEnabled)
   at System.Windows.SystemResources.ResourceDictionaries.LoadGenericDictionary(Boolean isTraceEnabled)
   at System.Windows.SystemResources.FindDictionaryResource(Object key, Type typeKey, ResourceKey resourceKey, Boolean isTraceEnabled, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, Boolean& canCache)
   at System.Windows.SystemResources.FindResourceInternal(Object key, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference)
   at System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce)
   at System.Windows.FrameworkContentElement.UpdateThemeStyleProperty()
   at System.Windows.FrameworkContentElement.OnThemeStyleKeyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArg
s e)
   at System.Windows.FrameworkContentElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at System.Windows.FrameworkContentElement.set_DefaultStyleKey(Object value)
   at Telerik.Windows.Controls.GridViewColumn.ResetDefaultStyleKey()
   at Telerik.Windows.Controls.GridVi
ewColumn.OnInitialized(EventArgs e)
   at System.Windows.FrameworkContentElement.TryFireInitialized()
   at System.Windows.FrameworkContentElement.EndInit()
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.InitializationGuard(XamlType xamlType, Object obj, Boolean begin)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadComponent(Object component, Uri r
esourceLocator)
   at DeveloperTools.PagePaneControl.InitializeComponent() 
   at DeveloperTools..UI.MainPage.PagePaneControl..ctor()
ifle
Top achievements
Rank 1
 answered on 29 Jul 2010
1 answer
72 views
I could have sworn it worked fine in Q1....
George
Telerik team
 answered on 29 Jul 2010
12 answers
216 views
Hello Telerik Team,

For understanding my problem first please see attached file.

When am dragging Order (Order-09 in orderdetail tab of Tour 2) & dropping to Tour 3, am getting reference of Tour 1 instead of Tour 3. Am using Drag & Drop control of Telerik only. DropInfo am handling like below:

If

 

 

e.Options.Status = DragStatus.DropComplete Then   

 

    Dim row As RadTileViewItem = TryCast(e.Source, RadTileViewItem)
End IF

row am aspacting tour 3 content not Tour 1. This thing happens randomly and am not able to track when it gives me wrong reference.

Solution: if am maximized Tour 3 and again maximized tour 2. if now am dropping same then i am getting tour 3 row which i want.

One thing am doing is While TileStateChanged am checking if it is maximized item then Item Max Height/Width equals to Windows Max Height/Width other wise it restricted to 200 as am want some specific size of box.

Is that the reason or something else? 

Thanks...!!!

 

 

Tina Stancheva
Telerik team
 answered on 29 Jul 2010
1 answer
96 views
When sorting in RadGridView, where are the data values that are used to sort sourced from?  It appears, that when defining a custom data type, using type descriptors, the data values are obtained from the data set for which the grid displays.  If the data set is not defining custom data types, then it appears to use values in the internal visual elements?
Vlad
Telerik team
 answered on 29 Jul 2010
1 answer
117 views
We've got a WPF window based on the carousel control, but when we put buttons on this user control and assign a mouseleftbuttondown (or any mouse button) event to the button, it doesn't fire.

I have found out though that when we use PreviewMouseLeftButtonDown the event fires fine, which suggests there is a problem with the bubbling of events through Telerik controls.

Is this a bug?
Miroslav
Telerik team
 answered on 29 Jul 2010
1 answer
293 views
Hello Sir/Madam
i m working on wpf application and i am using web Browser in my application .
i want to customize the scrollabar in webBrowser.
it means that i just disable the existing scrollabar and apply my scrollBar style in webBrowser.
please help me as early as possible.

Thanks in advance.
Vinod Nagda
Miroslav
Telerik team
 answered on 29 Jul 2010
5 answers
335 views
I typically avoid binding.  I'm a bit old school and I've been burned many times by binding but I know I'd benefit from having another tool in my collection.  So, I thought I'd try again.  Thanks in advance for your help.

I'm comfortable with basic binding.  If I have a TextBox and I set the TextBox.Text value like this it seems to work fine:
<TextBox x:Name="txtFirstName"   
 Text="{Binding Path=FirstName}" /> 

However, I created a UserControl in a WindowsHelper class called a LabelTextBox.  Pretty much any time you show a combobox or textbox (etc) on a form you place a Label to the left of it to explain what it is.  So, why not just have one control to define on a form instead of 2?

Now, I want to use DataBinding to show data in the TextBox from my DataContext.  This is where it gets a little complicated.  I expose a public DependencyProperty named Text from my LabelTextBox.  I did this so the programmer can define the UserControl by typing txtName.Text = "Joel".  This Text property then needs to bind to the TextBox.Text property inside the LabelTextBox.  So, any time a value changes on the ModelView (MV), it needs to propigate from MV --> LabelTextBox.Text --> TextBox.Text and back again.

        public string Text  
        {  
            get { return (string)GetValue(TextProperty); }  
            set { SetValue(TextProperty, value); }  
        }  
 
        // Using a DependencyProperty as the backing store for Text.  This enables animation, styling, binding, etc...  
        public static readonly DependencyProperty TextProperty =  
            DependencyProperty.Register("Text", typeof(string), typeof(LabelTextBox)); 

Anyone have a quick example of how I accomplish this?
Joel Palmer
Top achievements
Rank 2
 answered on 28 Jul 2010
1 answer
180 views
I have a RadGrid that is being used to display settings for a user control. One of the settings is a font listing for each label on the control. I need this column to be a combobox-column. The problem I am having is that when I use the recommended approach to populating the data for this column I get a choice of only those fonts that have be set and listed in the database. What I need is a combobox in the datagrid with a listing of the system fonts as the ItemSource and the DisplayMemberPath, and SelectedValueMemberPath pointing to the data source. However, this does not seems to work. I think that the only way to do this is to provide some sort of datatable with a column having the same name as the targeted "Font Column" in the data source. Any ideas?
OverCoded
Top achievements
Rank 2
 answered on 28 Jul 2010
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?