Telerik Forums
UI for WPF Forum
8 answers
294 views
Hi,

I want to check with you what is the right way to programmatically expand and select a node in a tree view which is using virtualization in recycling mode. The tree may be full of nodes and those nodes may not be visible on the screen at that moment.

Can you please provide a sample application which demonstrates how to achive that.

Thank you,
Ruben.
rubenhak
Top achievements
Rank 1
 answered on 29 Jul 2010
2 answers
182 views
Is there anyway to ignore the SelectionChanged event from the GridViewSelectColumn when the grid is loading?
 
When the grid is loading, I make the row selected during the rowloaded event based on a value in the row (to indicate something was "selected" in past use of the grid). I then want to have code in the selectionChanged method that kicks off based on what happens to these rows after the grid is loaded from the user interaction, but i can't seem to figure out how isolate the code to run only during this time and not every time it is selected in the rowloaded event.

Thanks.
Chet Watkins
Top achievements
Rank 1
 answered on 29 Jul 2010
1 answer
104 views
Guys,

not sure if this is something thats possible, but is it possible to make only certain parts of an item "Draggable"... having an area / control that is the drag point of the control... see exampeitem imaeg for the kinda of area i'm talking about on my control..

Hope this makes sense.

Cheers guys
Miroslav
Telerik team
 answered on 29 Jul 2010
18 answers
966 views
hy everybody,

I can not figure out how to change the column header caption of a column which was autogenerated since the radviewgrid's itemsource property is bound to a datatable. My code as listed below does not do the job.

with me.radgridview1
    .columns(3).HeaderText = "Name"
end with

The headertext still shows the fieldname of the datatable.

Any suggestion is highly appreciated.

best regards,

Michael Lutz
BITsoft
Michael
Top achievements
Rank 1
 answered on 29 Jul 2010
3 answers
172 views

I have a problem which only seems to occur when using the Telerik RAD tree views , instead of the standard WPF treeview control

On a basic level, I have an application that loops through an OLAP cube and returns data to the interface treeview.  The treeview then displays the data in a format like below 

 + Measure
  Measure1
Measure2
Measure 3
Measure 4 etc

I want to be able to drag each individual node (e.g Measure 2 or Measure 3) into another treeview. However when dragging the measures, it drags the whole root (Measure) preventing me from separating the nodes.

Any idea how it could be made possible to drag individual nodes instead of the whole root??


The relevant XAML and XAML.cs is shown below

XAML
 <Telerik:RadTreeView x:Name ="treeCube" IsDragDropEnabled ="True" Margin="250,174,41,158" Background="White" Telerik:StyleManager.Theme="Windows7" ToolTip="Drag" AllowDrop="True">       
        </Telerik:RadTreeView>

        <Telerik:RadTreeView x:Name ="treeCubeTwo" IsDragDropEnabled ="True" Margin="0,174,-491,158" Background="White" Telerik:StyleManager.Theme="Windows7" Width="509" HorizontalAlignment="Right">        
        </Telerik:RadTreeView>

XAML.cs

 private void LoadCube_Click(object sender, RoutedEventArgs e)
            {

                // get the cube schema
                Helper helper = new Helper("demo01");
                helper.Catalog = "Adventure Works DW 2008R2";
                helper.Cube = "Adventure Works";

                _cube = helper.GetCubeSchema();

                // create an empty parameter set
                _params = new ParameterSet();

                // populate the left-hand treeview with cube schema

                // measures
                TreeViewItem measuresItem = new TreeViewItem();
                measuresItem.Header = "Measures";

                foreach (Measure measure in _cube.Measures)
                {
                    TreeViewItem measureItem = new TreeViewItem();
                    measureItem.Header = measure.Caption;
                    measuresItem.Items.Add(measureItem);
                }

                treeCube.Items.Add(measuresItem);




Hristo
Telerik team
 answered on 29 Jul 2010
3 answers
96 views
Hi!

Is there an autocomplete textbox component for WPF interface with telerik? 

Thank you!
Rossen Hristov
Telerik team
 answered on 29 Jul 2010
1 answer
98 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
159 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
831 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
62 views
I could have sworn it worked fine in Q1....
George
Telerik team
 answered on 29 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
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
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?