Telerik Forums
UI for WPF Forum
2 answers
213 views

Hi All,

is there a way to configure the dropdown caledar to show additional months like in the attached picture?

Thank you

Regards,
Wolfgang

Wolfgang
Top achievements
Rank 1
 answered on 19 Dec 2019
11 answers
406 views

Switching from "ExportToXlsx" to "SpreadStreamExportFormat" but not clear on how to use the select item feature to export only items selected.

code I currently have: --

       void OnExportDataCommandExecute(RadGridView param)
        {
            string fileFormat = "xlsx";
            GridViewSpreadStreamExport spreadStreamExport = new GridViewSpreadStreamExport(param);
            spreadStreamExport.SheetName = "Sheet1";
            spreadStreamExport.ExportFormat = SpreadStreamExportFormat.Xlsx;
            var dialog = new SaveFileDialog()
            {
                DefaultExt = fileFormat,
                Filter = string.Format("(*.{0})|*.{1}", fileFormat, fileFormat)
            };
            if (dialog.ShowDialog() == true)
            {
                switch (fileFormat)
                {
                    case "xlsx":
                        spreadStreamExport.RunExport(dialog.FileName.ToString(),
                            new SpreadStreamExportRenderer(),
                            new GridViewSpreadStreamExportOptions()
                            {
        
        ShowColumnHeaders = true,
                                ShowColumnFooters = true,
                                ExportDefaultStyles = false,
                            });
                        break;
                    case "pdf":
                        //param.ExportToPdf(stream);
                        break;
                }
            }
        }

--

I see not method for include selected.item or such.

herb
Top achievements
Rank 1
Veteran
Iron
 answered on 18 Dec 2019
3 answers
219 views

hi

how can i change cells fontfamily and fontsize?

in UI and code behind

Dilyan Traykov
Telerik team
 answered on 18 Dec 2019
2 answers
171 views

Is there a way I can wire up hyperlinks to open when the user clicks on them with the middle mouse button?

Joshua
Top achievements
Rank 1
 answered on 18 Dec 2019
3 answers
257 views

Hallo,

I am using this code to fill the Editor With code:

public void Test()
{
    using (StreamReader reader = new StreamReader("../../ViewModels/ShellViewModel.cs", Encoding.UTF8))
    {
        SyntaxEditor.Document = new TextDocument(reader);
    }
    CSharpTagger cSharpTagger = new CSharpTagger(SyntaxEditor);
    SyntaxEditor.TaggersRegistry.RegisterTagger(cSharpTagger);
}

 

This does not Show any result. The SyntaxEditor is initialized and editable. But the code from ShellViewModel.cs is not showing (it is correctly loaded in the reader). Also when I type keywords into the editor, they are not highlighted. The SyntaxEditor.Document.CurrentSnapshot also does show that at least something is loaded (correct lenght and linecount).

Petar Mladenov
Telerik team
 answered on 17 Dec 2019
1 answer
134 views
Hi Team

I am in the process of migrating our WPF App from using .NET Framework 4.7.2 to .NET Core 3.1.

Migrating From :
 - Telerik UI for WPF .NET Framework NoXaml Binaries (Version R3 2019 SP1)
 - .NET Framework 4.7.2

Migrating To :
 - Telerik UI for WPF .NET Core NoXaml Binaries (Version R3 2019 SP1)
 - .NET Core 3.1

All has gone well to far with very little code change, however we have noticed a breaking changed between the Telerik .NET Framework assemblies and the Telerik .NET Core assemblies.

It appears that when users click on a GridViewHyperlinkColumn within a RadGridView, the hyperlink no longer follows through to open up the url in the default web browser as it did before. This can be demonstrated in a very simple example.

<telerik:RadGridView.Columns>
    <telerik:GridViewDataColumn Header="Title" UniqueName="Title" DataMemberBinding="{Binding Title}" Width="Auto"/>
    <telerik:GridViewHyperlinkColumn Header="Website" UniqueName="Website" DataMemberBinding="{Binding Website}" Width="*"/>
</telerik:RadGridView.Columns>

Please can this be investigated.
Vladimir Stoyanov
Telerik team
 answered on 17 Dec 2019
1 answer
129 views

     I am creating a dynamic chart with a seriesdescriptorselector that changes the type of the X-axis (DateTimeContinuous or Linear) based on user defined settings.  I am also setting a grid for the horizontal and vertical axis of the chart.  The problem I am having is that only the horizontal lines of the grid are showing up on the chart.  I get no vertical lines at all regardless of whether the horizontal axis is Linear of DateTimeContinuous.  Does the use of a series descriptor selector invalidate the grid lines for the axis?

 

Thank you

Martin Ivanov
Telerik team
 answered on 17 Dec 2019
6 answers
376 views
When I am adding tabs to my tabcontrol I noticed that the tabs size according to the size of the control (their parent).  Is there any way to have the tabs actually wrap onto a 2nd (or even 3rd) level?

For example: In your demo, you have an "Add Tab" button, but you can only add so many tabs....  If you keep adding tabs you will start to see that the tabs get VERY small and unreadable.  Is there a way to have them "Auto Wrap" onto a 2nd tier of some sort?  Could this be something that is thought about for future enhancements?

Thanks a bunch
Dilyan Traykov
Telerik team
 answered on 17 Dec 2019
19 answers
425 views

We've seen a crash in our application when the RadMap control is disposed. We've only seen the crash once but have been unable to reproduce. The stack trace is as follows:

Telerik.Windows.Controls.DataVisualization : System.NullReferenceException
Object reference not set to an instance of an object.

at Telerik.Windows.Controls.Map.Location.PixelToLogical(RadMap mapControl, Point pixel, Boolean useTileLayer)

at Telerik.Windows.Controls.Map.Location.PixelToLogical(RadMap mapControl, Point pixel, Boolean useTileLayer)
at Telerik.Windows.Controls.Map.MapMouseLocationIndicator.MapControl_MouseMove(Object sender, MouseEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at CNL.IPSecurityCenter.WindowsClient.App.Main()

We're currently using version 2017.2.614.45. Looking at the Telerik code it seems like the mouse event handler for MapMouseLocationIndicator doesn't get detached when RadMap is disposed. Is it possible there's some race condition that allows a mouse event to be processed in MapMouseLocationIndicator after its RadMap property has been set to null (which does happen when RadMap is disposed)?

Thanks
Pete

Peter
Top achievements
Rank 1
Veteran
 answered on 16 Dec 2019
1 answer
135 views
Hi Team

I am in the process of migrating our WPF App from using .NET Framework 4.7.2 to .NET Core 3.1.

Migrating From :
 - Telerik UI for WPF .NET Framework NoXaml Binaries (Version R3 2019 SP1)
 - .NET Framework 4.7.2

Migrating To :
 - Telerik UI for WPF .NET Core NoXaml Binaries (Version R3 2019 SP1)
 - .NET Core 3.1

All has gone well so far with very little code change, however we have noticed a breaking change between the Telerik .NET Framework assemblies and the Telerik .NET Core assemblies.

We have a custom Dictionary of built-in ChartPalettes with custom display text that is bound to a dropdown box as per the below. Users are able to select a ChartPalette from the dropdown when displaying charts.

        /// <summary>
        /// Dictionary of <see cref="ChartPalette"/>s with custom display text
        /// </summary>
        public Dictionary<string, ChartPalette> Palettes { get; private set; }

            Palettes = new Dictionary<string, ChartPalette>
            {
                {"Spring", ChartPalettes.Spring},
                {"Summer", ChartPalettes.Summer},
                {"Autumn", ChartPalettes.Autumn},
                {"Arctic", ChartPalettes.Arctic},
                {"Warm", ChartPalettes.Warm},
                {"Cold", ChartPalettes.Cold},
                {"Crystal", ChartPalettes.Crystal},
                {"Flower", ChartPalettes.Flower},
                {"Fluent", ChartPalettes.Fluent},
                {"Forest", ChartPalettes.Forest},
                {"Grayscale", ChartPalettes.Grayscale},
                {"Green", ChartPalettes.Green},
                {"Ground", ChartPalettes.Ground},
                {"Lilac", ChartPalettes.Lilac},
                {"Material", ChartPalettes.Material},
                {"Office 2013", ChartPalettes.Office2013},
                {"Office 2016", ChartPalettes.Office2016},
                {"Pastel", ChartPalettes.Pastel},
                {"Rainbow", ChartPalettes.Rainbow},
                {"Visual Studio 2013", ChartPalettes.VisualStudio2013},
                {"Visual Studio 2019", ChartPalettes.VisualStudio2019},  // Does not work in Telerik .NET Core assemblies
                {"Windows 8", ChartPalettes.Windows8},
            };

The issue is that the VisualStudio2019 ChartPalette (from Telerik.Windows.Controls.ChartView) throws the below exception when using the Telerik .NET Core assemblies. This does not occur when using the Telerik .NET Framework assemblies.

System.IO.IOException: 'Cannot locate resource 'visualization/palettes/resources/visualstudio2019.xml'.'

StackTrace:
   at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
   at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
   at MS.Internal.IO.Packaging.PackagePartExtensions.GetSeekableStream(PackagePart packPart, FileMode mode, FileAccess access)
   at MS.Internal.IO.Packaging.PackagePartExtensions.GetSeekableStream(PackagePart packPart)
   at System.Windows.Application.GetResourceStream(Uri uriResource)
   at Telerik.Windows.Controls.ChartView.ChartPalettes.LoadPalette(String fileName)
   at Telerik.Windows.Controls.ChartView.ChartPalettes.get_VisualStudio2019()

I can confirm we have ALL Telerik .NET Core assemblies being referenced in our project including the Theme assemblies and styles. If we remove the VisualStudio2019 ChartPalette, it works perfectly without any issues.

Please can this be investigated.

Vicky
Telerik team
 answered on 16 Dec 2019
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?