Telerik Forums
UI for WPF Forum
1 answer
109 views
I am using the RadPivotGrid with a SQL Server Analysis server (2014) and all appears to work as expected. However one issue I noticed is that any fields I select to appear as "values" - i.e. the 'facts' - I do not get the option to set the number format. For example when I select a field from a PivotFieldList that is bound to a collection I get the options Sum, Count, Average, Number format etc when I click on the down arrow of any fields in the "Values" section of the field List,

However when I select a field from a field list that uses a SQL Server Analysis Cube as the data source I only get the options Index, % of Grand Total, More Calculations and clear calculations. There is no option to set the number format - how do I achieve this?  - thanks
Rosen Vladimirov
Telerik team
 answered on 10 Jul 2014
1 answer
118 views
We have an application we currently deploy via ClickOnce. We recently added the EQATEC monitoring capabilities to our project. But when published as a ClickOnce application, the install failed because it says the EQATEC dll must be installed to the GAC. Is there a workaround for ClickOnce applications? How can we distribute our application with EQATEC? It would be a shame to remove all the EQATEC references because we see the value in collecting the usage data.

Steve
Yana
Telerik team
 answered on 10 Jul 2014
6 answers
690 views
Hi,
is it somehow possible to specify a custom IComparer (or IComparer<string>) which shall be used for sorting all or selected columns?
Ideally, it should also be applied to sorting groups and sorting the filter items.
I would prefer an generic solution where I don't have to apply it to every column (e.g. via some Style that is applied to every column).

I want that
- empty values (null, "") are at the end (when sorting Ascending), and
- use a natural sort order for strings (e.g. "M4" < "M12")

In the custom sorting example (http://www.telerik.com/help/wpf/gridview-sorting-custom.html)
- you change the ItemsSource of the grid, which destroys the binding (however, in my case the ItemsSource may change)
- you have to know the underlying data structure to get the properties
- you assume that you use a first level property for the DataMemberBinding
- and it applies only to sorting, but not grouping and filtering.

Thank you in advance.
Alex
Dimitrina
Telerik team
 answered on 10 Jul 2014
1 answer
160 views
Hi,

I have created a simple spread sheet control in my WPF app without any tool bars as follows:

<telerik:RadSpreadsheet x:Name="radSpreadsheet"/>

When I right click on a worksheet Tab in the sheet selector and bring up the worksheet context menu, the Delete and Insert items do not work. (I have multiple worksheets)

The Rename and Tab Colour items do work, as does the special Tab to add a worksheet.

Can you please let me know if I am doing something wrong?

Thanks
Anthony
Anna
Telerik team
 answered on 10 Jul 2014
6 answers
748 views
I want to show only  year on raddatepicker , and the user can enter a value is year.
But it will error if I just enter the value in 2014,but if I enter 01/01/2014, there is no error message.
In the hidden code:
 
  timePicker.Culture.DateTimeFormat = new System.Globalization.DateTimeFormatInfo ShortDatePattern = {"yyyy"};

XAML:
DateSelectionMode = "Year"


Sorry my english :)
Kalin
Telerik team
 answered on 10 Jul 2014
4 answers
290 views
Hi,

I need to create a custom theme (With White,Gray,Blue)  for my WPF Application which has Tabs, Grids, Text Boxes and Toolbars. I would like to have it look  similar to  3rd image of Figure 1 in the link ( I need Toolar, Tab Headers,Grid Headers and Selected Rows Blue in color, with text whitish. The grid rows should have White background with black text.)
http://www.telerik.com/help/wpf/common-styles-appearance-colorizing-metro-theme.html#seeAlsoToggle

Can some one let me know how this can achieved. 

I tried to apply Windows8Theme and change the colors in OnStartup() method as below:
StyleManager.ApplicationTheme = new Windows8Theme();
Windows8Palette.Palette.MainColor = Colors.White;
Windows8Palette.Palette.AccentColor = Colors.Blue;
Windows8Palette.Palette.BasicColor = Colors.Blue;
Windows8Palette.Palette.StrongColor = Colors.White;
Windows8Palette.Palette.MarkerColor = Colors.Blue;
Windows8Palette.Palette.ValidationColor = Colors.Blue;
But that does not loo good on RadGridView as the Grid headers and sort icons done show up.







Vanya Pavlova
Telerik team
 answered on 10 Jul 2014
1 answer
105 views
Hello!

I want to use variables in the middle of the imported rtf document.

When I write:
RtfBox.InsertField(new DocumentVariableField() { VariableName = "Name" }, FieldDisplayMode.Code);
field appears at the beginning of the document.

Is there any way to force field to appear at concrete place?



Petya
Telerik team
 answered on 09 Jul 2014
1 answer
122 views
Hi
I'm using RadGridView with all columns width set to "*". I set grid minwidth property and expect to see horizontall scrollbar on form resizing, but nothing appears. Documentation says not to use scrollviewer with radgridview.

please, suggest a proper way to solve the problem
wbr, 
slava
Yoan
Telerik team
 answered on 09 Jul 2014
1 answer
1.1K+ views

I'm having a problem where the IsSelected property of a row item is not getting set correctly if that row is not visible with EnableRowVirtualization="True". Only the rows that are visible get their IsSelected updated correctly. This is a problem when you want to perform an action on all selected items. See below for a simple example to illustrate. If you:

  • Run it with EnableRowVirtualization="False"
  • Select the first item
  • Scroll to the bottom
  • Select the last item

then the Selected Rows is 100, which is correct. Now if you repeat the test with EnableRowVirtualization="True",  you see you only have 12 rows selected. Now scroll up, and more and more rows will be selected as they come into view.

Is there a way to either force the IsSelected property to be updated on non-visible rows, or a way to retrieve the actual list of selected items?

Thanks,
Louis

XAML:

<Window x:Class="VirtualIsSelected.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <telerik:RadGridView Grid.Row="0"  x:Name="radGridView"
                             AutoGenerateColumns="True"
                             ItemsSource="{Binding Path=Segments}"
                             SelectionMode="Extended"
                             GroupRenderMode="Flat"
                             EnableRowVirtualization="True">
            <telerik:RadGridView.Resources>
                <Style TargetType="{x:Type telerik:GridViewRow}">
                    <Setter Property="IsSelected"
                            Value="{Binding Path=IsSelected,
                                            Mode=OneWayToSource}"/>
                </Style>
            </telerik:RadGridView.Resources>
        </telerik:RadGridView>
        <StackPanel Grid.Row="1" Orientation="Horizontal">
            <Label>Selected Rows:</Label>
            <TextBox Text="{Binding SelectedCount}" IsReadOnly="True"/>
        </StackPanel>
    </Grid>
</Window>

Code-Behind:
public class Segment
{
    private bool _IsSelected = false;
    private MainWindow _MyWindow;
    public Segment(MainWindow window)
    {
        _MyWindow = window;
    }
    public int Value { get; set; }
    public bool IsSelected
    {
        get { return _IsSelected; }
        set
        {
            _IsSelected = value;
            _MyWindow.RefreshCount();
        }
    }
}
public partial class MainWindow : Window, INotifyPropertyChanged
{
    public int SelectedCount { get; set; }
    public Collection<Segment> Segments { get; set; }
    public MainWindow()
    {
        Segments = new Collection<Segment>();
        for (int x = 0; x < 100; x++)
        {
            Segments.Add(new Segment(this) { Value = x });
        }
        SelectedCount = 0;
        InitializeComponent();
        DataContext = this;
    }
    public void RefreshCount()
    {
        SelectedCount = Segments.Where(s => s.IsSelected).Count();
        if (PropertyChanged != null)
            PropertyChanged(this, new PropertyChangedEventArgs("SelectedCount"));
    }
    public event PropertyChangedEventHandler PropertyChanged;
}
Yoan
Telerik team
 answered on 09 Jul 2014
1 answer
503 views
Hi,
I am using Telerik RadTreeView control, I have implemented context menu when i right click for selected treenode,if i right click empty space same context menu displaying.How to remove contextmenu for empty place.

Regards,
Ranjith
Martin Ivanov
Telerik team
 answered on 09 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?