Telerik Forums
UI for WPF Forum
1 answer
70 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
128 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
385 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
92 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
119 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
151 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
148 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
104 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
122 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
350 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
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?