Telerik Forums
UI for WPF Forum
5 answers
803 views
Hello,

is it possible to set and get the following infomation (via viewmodel)?

- position of the scrollviewer
- absolute position of the cursor (e.g. character 1234 and not x and y from the carret)
- selection
- zoom level

King regards,
Philipp
Petya
Telerik team
 answered on 24 Jan 2014
1 answer
95 views
Hi,

I would like to know if it's possible to force the days of the week in different language?

Thank's
Alain
Kalin
Telerik team
 answered on 24 Jan 2014
1 answer
92 views
Hi,

The below is the feature I am looking for in my WPF application,
- Upon grouping the RadGridView, I want to append the Column Header and the Column Data , in that column.
- This has to be repeated down all the levels , when a grouping is made for further columns.

kindly refer attached screen
if i am not clear in my explanation, kindly let me know.

Your support is highly appreciated.
Yoan
Telerik team
 answered on 24 Jan 2014
3 answers
787 views
Hi everyone,

I am developing a WPF application in my company.
I use RadControls for WPF Q3 2013 trial version.

I have written a sample project.
The MainWindow contains a Button and I have written an handler to the Button's Click event.

Here is the MainWindow's code-behind :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
 
namespace MainWindowInBackground
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
 
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            RadWindow l_hostWindow = new RadWindow()
            {
                Owner = System.Windows.Application.Current.MainWindow,
                WindowStartupLocation = WindowStartupLocation.CenterOwner,
                Content = "Test"
            };
 
            l_hostWindow.Show();
 
            MessageBox.Show("MessageBox", "MessageBox", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK);
        }
    }
}

The attached picture 1.png shows the application before closing the RadWindow.
The attached picture 2.png shows the application after closing the RadWindow.
The main window has been automatically put in background - behind all other running applications's window - after closing the RadWindow.
Why ?
Kalin
Telerik team
 answered on 24 Jan 2014
2 answers
112 views
I have a project where the heat map exactly meets my needs, but I need to be able to display a tooltip with custom formatted text, including units and some other information included with the data point.

How would you style the tooltip format in xaml and/or code behind?

Robert Smallwood
Top achievements
Rank 1
 answered on 24 Jan 2014
0 answers
129 views
Hi, I am binding a Dataset to a RadGridView, but I am getting some strange behaviors. I already try to bind the dataset, datatable or default table view. Same Result.
Other problem is when my datatable has no rows (only columns defined). Nothing is displayed, even the column itself.

I had attached some images to show what´s happen.

Thanks
James
Top achievements
Rank 1
 asked on 24 Jan 2014
0 answers
188 views
I have a RadGridView where on of the columns is a GridViewComboBoxColumn.

How do I sort the Items inside the the RadComboBoxs alphabetically?


Assume I have three cities: Manchester, Zurich and Aberdeen. I want my RadComboboxes to display alpabetically

Aberdeen
Manchester
Zurich


The underlying data is rather big: There are some ten-thousands of grid-rows and the items inside the RadComboBoxes can also be some ten-thousands (RadCombox items are city names). Thanks to virtualization the performance is actually very good.

I don't want to sort each single ComboBox, since this might slow down the Grid considerably. 
I found documentation and some forum posts about SortingState, but that was not helpful for my problem.
Peter
Top achievements
Rank 1
 asked on 24 Jan 2014
3 answers
149 views

I try to use the PdfViewer in an addin (using the .net managed addin framework), hosted in a winform host application. When I open a pdf file I get this exception:

   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Utils.Helper.get_Dispatcher() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\Core\FormatProviders\Pdf\Utils\Helper.cs:line 25

   at Telerik.Windows.Documents.Fixed.FixedDocumentStreamSource.<>c__DisplayClass8.<LoadDocument>b__6() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\FixedDocumentViewers\Fixed\FixedDocumentStreamSource.cs:line 180

   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ThreadHelper.ThreadStart()

I suspect the helper class is using Application.Current.Dispatcher. Application.Current is null in our environment.

Is there a work around for this problem so I can use the viewer in an addin?

Thank you,

Fonger.

Petya
Telerik team
 answered on 24 Jan 2014
1 answer
179 views
Hi.
I have a problem setting minimum or maximum values for a RadSlider I need to generate by c# code inside a propertygrid with the help of FrameworkElementFactory.

Value binding and setting the grid column work perfectly but I am not able to set min or max slider value (and tickfrequency, too - are they readonly?).

What do I do wrong here? Or is there a better way to add properties like a radslider control inside a radpropertygrid on the fly?

Lars

Here is a code snipet:
FrameworkElementFactory slider = new FrameworkElementFactory(typeof(RadSlider));
slider.SetBinding(RadSlider.ValueProperty, new Binding(path) { Mode = BindingMode.TwoWay });
slider.SetValue(RadSlider.MinimumProperty, 0);
slider.SetValue(RadSlider.MaximumProperty, 100);
slider.SetValue(Grid.ColumnProperty, 1);
Lars
Top achievements
Rank 1
 answered on 24 Jan 2014
0 answers
536 views
hi

I created a wpf App with a Dockpanel and Gridview controller, i referenced the DLL's with noXaml and included the Xaml from the Themes.Implicit, in App.Xaml.css  i have created a static constructor with this signature.The CustomLocalizationManager is a subclass of
LocalizationManager and use a resource.resx for the switch key for the language. The problem is when i debug the code i notice in the InteliTrace the exceptions

+       Thrown: "Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Telerik.Windows.Controls.Docking.g.resources" was correctly embedded or linked into assembly "Telerik.Windows.Controls.Docking" at compile time, or that all the satellite assemblies required are loadable and fully signed." (System.Resources.MissingManifestResourceException)  Exception Message = "Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure \"Telerik.Windows.Controls.Docking.g.resources\" was correctly embedded or linked into assembly \"Telerik.Windows.Controls.Docking\" at compile time, or that all the satellite assemblies required are loadable and fully signed.", Exception Type = "System.Resources.MissingManifestResourceException", Exception WinRT Data = null  
 
 
 
 
+       Thrown: "Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Telerik.Windows.Controls.GridView.g.resources" was correctly embedded or linked into assembly "Telerik.Windows.Controls.GridView" at compile time, or that all the satellite assemblies required are loadable and fully signed." (System.Resources.MissingManifestResourceException)    Exception Message = "Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure \"Telerik.Windows.Controls.GridView.g.resources\" was correctly embedded or linked into assembly \"Telerik.Windows.Controls.GridView\" at compile time, or that all the satellite assemblies required are loadable and fully signed.", Exception Type = "System.Resources.MissingManifestResourceException", Exception WinRT Data = null
 
 
 
+       Thrown: "Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Telerik.Windows.Controls.Data.g.resources" was correctly embedded or linked into assembly "Telerik.Windows.Controls.Data" at compile time, or that all the satellite assemblies required are loadable and fully signed." (System.Resources.MissingManifestResourceException)    Exception Message = "Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure \"Telerik.Windows.Controls.Data.g.resources\" was correctly embedded or linked into assembly \"Telerik.Windows.Controls.Data\" at compile time, or that all the satellite assemblies required are loadable and fully signed.", Exception Type = "System.Resources.MissingManifestResourceException", Exception WinRT Data = null



public partial class App
    {
        static App()
        {
            DispatcherHelper.Initialize();
 
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en");
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");
            LocalizationManager.Manager = new CustomLocalizationManager();
           
        }
    }
 

What am i doing wrong or is that normal.
thanks regards
Ramon
Top achievements
Rank 1
 asked on 23 Jan 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?