Telerik Forums
UI for WPF Forum
1 answer
111 views
Hi There,

1. I dont have XAML for columns so that I want to set "IsFilterable" programatically, 

2. I have two checkbox columns when checking the check box of first checkbox column automatically the second checkbox column also checked 

can you please guide me how i can do this?


Thanks in advance,

Regards,
Raj. 
Dimitrina
Telerik team
 answered on 09 Oct 2014
5 answers
152 views
Executing this code throw an exeption :

<telerik:RadCartesianChart >
 
    <telerik:RadCartesianChart.HorizontalAxis>
        <telerik:CategoricalAxis GapLength="0" />
    </telerik:RadCartesianChart.HorizontalAxis>
 
    <telerik:RadCartesianChart.VerticalAxis>
        <telerik:LinearAxis />
    </telerik:RadCartesianChart.VerticalAxis>
 
    <telerik:RadCartesianChart.Grid>
        <telerik:CartesianChartGrid MajorLinesVisibility="Y" />
    </telerik:RadCartesianChart.Grid>
 
    <telerik:RadCartesianChart.SelectionPalette>
        <telerik:ChartPalette>
            <telerik:ChartPalette.GlobalEntries>
                <telerik:PaletteEntry Fill="Orange" />
            </telerik:ChartPalette.GlobalEntries>
        </telerik:ChartPalette>
    </telerik:RadCartesianChart.SelectionPalette>
 
    <telerik:RadCartesianChart.Behaviors>
        <telerik:ChartSelectionBehavior />
    </telerik:RadCartesianChart.Behaviors>
 
    <telerik:RangeBarSeries  ItemsSource="{Binding Items}"
                             LowBinding="Min"
                             HighBinding="Max"
                             CategoryBinding="X"
                             CombineMode="Cluster" />
 
 
    <telerik:RangeBarSeries ItemsSource="{Binding Items2}"
                            LowBinding="Min"
                            HighBinding="Max"
                            CategoryBinding="X"
                            CombineMode="Cluster"
                            Visibility="Collapsed" />
 
</telerik:RadCartesianChart>

If Visibility is sets to Hidden everithing works as expected.
Setting Opacity to 0 doesn't work (the bar is visible), it's normal or not ?

The stack trace is :
à System.Windows.Media.VisualTreeHelper.HitTest(Visual reference, HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, HitTestParameters hitTestParameters)
 Ã  Telerik.Windows.Controls.VisualTreeHelperExtensions.GetElementsInHostCoordinates[T](UIElement subtree, HitTestParameters hitTestParams) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Common\VisualTreeHelperExtensions.cs:ligne 141
 Ã  Telerik.Windows.Controls.VisualTreeHelperExtensions.GetElementsInHostCoordinates[T](UIElement subtree, Rect localIntersectingRect) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\Common\VisualTreeHelperExtensions.cs:ligne 134
 Ã  Telerik.Windows.Controls.ChartView.ChartSeries.<HitTestElementsCore>d__c.MoveNext() dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\ChartSeries.Behavior.cs:ligne 158
 Ã  Telerik.Windows.Controls.ChartView.ChartSeries.<HitTestDataPointsCore>d__14.MoveNext() dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\ChartSeries.Behavior.cs:ligne 176
 Ã  Telerik.Windows.Controls.ChartView.ChartSeries.<HitTestDataPoints>d__0.MoveNext() dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\ChartSeries.Behavior.cs:ligne 122
 Ã  Telerik.Windows.Controls.ChartView.ChartSelectionBehavior.UpdateDataPointSelection(ChartSeries series) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartSelectionBehavior.Branch.cs:ligne 346
 Ã  Telerik.Windows.Controls.ChartView.ChartSelectionBehavior.UpdateSelection() dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartSelectionBehavior.Branch.cs:ligne 267
 Ã  Telerik.Windows.Controls.ChartView.ChartSelectionBehavior.DoSelection(Point location) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartSelectionBehavior.Branch.cs:ligne 221
 Ã  Telerik.Windows.Controls.ChartView.ChartSelectionBehavior.AdornerContainerMouseLeftButtonUp(Object sender, MouseButtonEventArgs e) dans c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Behaviors\ChartSelectionBehavior.Branch.cs:ligne 210
 Ã  System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
 Ã  System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
 Ã  System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
 Ã  System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
 Ã  System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
 Ã  System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
 Ã  System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
 Ã  System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
 Ã  System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
 Ã  System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
 Ã  System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
 Ã  System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
 Ã  System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
 Ã  System.Windows.Input.InputManager.ProcessStagingArea()
 Ã  System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
 Ã  System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
 Ã  System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
 Ã  System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 Ã  System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 Ã  MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 Ã  MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 Ã  System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 Ã  MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
 Ã  System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 Ã  MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
 Ã  MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
 Ã  System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
 Ã  System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
 Ã  System.Windows.Threading.Dispatcher.Run()
 Ã  System.Windows.Application.RunDispatcher(Object ignore)
 Ã  System.Windows.Application.RunInternal(Window window)
 Ã  System.Windows.Application.Run(Window window)
 Ã  System.Windows.Application.Run()
 Ã  TelerikChartViewSelection.App.Main() dans E:\Documents\Visual Studio 2010\Projects\TelerikChartViewSelection\obj\x86\Debug\App.g.cs:ligne 0
 Ã  System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
 Ã  System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
 Ã  Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
 Ã  System.Threading.ThreadHelper.ThreadStart_Context(Object state)
 Ã  System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 Ã  System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 Ã  System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 Ã  System.Threading.ThreadHelper.ThreadStart()





Petar Marchev
Telerik team
 answered on 09 Oct 2014
5 answers
453 views
I am generating a report in docx through our application using telerik Document processing. So far I've been able to add the correct content, but I've encountered some styling issues regarding the heading levels. I've successfully changed the styling for all the levels to decimal instead of aplhabetical, lower roman etc... but this results in each heading level restarting their heading display as simply "1" instead of for example the first level 2 header being "1.1". Could you please help me to obtain this formatting? 

The current way I have set the heading numbering to decimal is:

ListStyle newListStyle = DefaultListStyles.Numbered;
 
 DocumentList documentList = new DocumentList(newListStyle, Document);
 
 for(int i=0;i<maxTOClevel;i++)
 {
     documentList.Style.Levels[i].Indent = 0;
     documentList.Style.Levels[i].HangingIndent = 0;
     documentList.Style.Levels[i].NumberingFormat = ListNumberingFormat.Decimal;
 
 }


Regarding the table of contents formatting, I cannot find where to specify that the header numbers should be visible in the table of contents, nor where to change the line decoration between title and page number to a solid line instead of a dotted one. Perhaps they are both located in the same styling object?

I've tried setting the underline decoration to a solid line via:
StyleDefinition toc1Style = Document.StyleRepository[RadDocumentDefaultStyles.GetTocStyleNameByIndex(1)];
toc1Style.SpanProperties.UnderlineDecoration = UnderlineTypes.Line;

but this simply adds a line under the entire row, instead of changing the existing dotted line into a solid one. Any help regarding these formatting questions would be greatly appreciated.
Joonatan
Top achievements
Rank 1
 answered on 09 Oct 2014
1 answer
127 views
Hello,
is there a simple way I can disable the edit on an appointment but I can create/delete ?

as far I've seen there's a read-only slot option avaiable but it doesn't match my needs

Thanksi n advance
Paolo
Yana
Telerik team
 answered on 09 Oct 2014
3 answers
146 views
Hi There,

I have a requirement like when RadDateTimePicker control is in read only then its tab stop should be true. I wanted to set this in Style, can you please help me how i can do this?

Thanks in advance,
Raj. 
Yana
Telerik team
 answered on 09 Oct 2014
1 answer
174 views
Hey,

I am running the WPF demos source code to look at how the OrgChart diagram works. It seems to work perfectly fine on the demo project and i can even edit the source and make changes to it.

The issue that i am running into is that it seems that i cannot run just that application directly. The UI is blank except for the borders of the control. I also copied all the sourcecode to my own project and it had the same effect. Its really strange

This is a little frustrating as i know i am missing something that is simple about the entry point. Has anyone been able to get these to run on there own or know what i am doing wrong?
Pavel R. Pavlov
Telerik team
 answered on 09 Oct 2014
3 answers
201 views
Hi,

is it possible to load RibbonView Items from xaml as Itemsource?

Thanks
Best Regrads
Rene
Martin Ivanov
Telerik team
 answered on 09 Oct 2014
1 answer
125 views
Hi,

Do you have a release date for the next release that will contain the new radial menu for WPF ?

Thank you!

Etienne
Yana
Telerik team
 answered on 09 Oct 2014
4 answers
151 views
I have a scenario where I have a grid with 20 columns. When the user filters on any columns of the I want a label to display which columns are filtered. How can I do that in the grid? I tried using the Filtered event but got stuck:

        protected void TelerikGridFiltered(object sender, GridViewFilteredEventArgs e)
        {
            filterRecordText.Text = e.ColumnFilterDescriptor.Column.Name;
        }

Dongzhi
Top achievements
Rank 1
 answered on 08 Oct 2014
13 answers
421 views
I want to hide some nested properties (For example "IPAddress" properties).
In short, I want to see the IPAddress property, but I don't want it to be a nested property.

I've tried this, but it doesn't work.  Any suggestions on how to accomplish it?  I've attached a screenshot too.
private void PropsGrid_AutoGeneratingPropertyDefinition(object sender, Telerik.Windows.Controls.Data.PropertyGrid.AutoGeneratingPropertyDefinitionEventArgs e)
{
    string[] hiddenProperties = { "RotationAngle", "IsSelected", "Position", "Visibility", "Width", "Height", "Content", "Background" };
    if (hiddenProperties.Contains(e.PropertyDefinition.SourceProperty.Name))
    {
        // I want to hide some properties of the inherited object (this works)
        e.PropertyDefinition.Visibility = System.Windows.Visibility.Collapsed;
    }
    else if (e.PropertyDefinition.SourceProperty.PropertyType == typeof(IPAddress))
    {
        // I want to show IP address, but do not want them to expand NestedProperties
        // THIS DOESNT WORK
        e.PropertyDefinition.NestedProperties = null;
    }
}
Yoan
Telerik team
 answered on 08 Oct 2014
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?