Telerik Forums
UI for WPF Forum
1 answer
99 views

Hi,

The gridview really impress us. The way of showing data is very nice to us. 

But we have a problem about the speed .

When we show the list with many columns(more than 35 columns),every time it takes a lot time(more than 3~4 sec),  even only loading 100 records.

We have tried everything we can try , but the result is not OK yet.

Is the reason that we use the trial version?

If we buy the professional version , can we improve the speed ?

 

We appreciate your help very much.

 

Stan

Yoan
Telerik team
 answered on 02 Mar 2016
2 answers
103 views

When select a cell  an then click it  the cell  is in edit mode  

it is too flexible 

is there any way to block it  and  just enter the edit mode by doubleclick

thank you!

rui
Top achievements
Rank 1
 answered on 02 Mar 2016
5 answers
129 views

Hello,

On the RadSpreadsheet whenever I press the decimal key the default decimal separator apears selected. So whatever I press after that overwrites it unless I unselect it first. This doesn't happen if I press the respective keyboard key (next to the letters). This happens on all the spreadsheet demos and my application. This still happens if I change my default decimal separator.

 The PreviewKeyDownEvent is called when the pressed key is Key.Decimal, but the KeyDownEvent is not called.

My telerik version is 2015.2.728.40 

Felipe
Top achievements
Rank 1
 answered on 01 Mar 2016
4 answers
372 views

I am trying very hard to format a cell number, but it is not working as expected.

 

In my country we use the numbers like this: 1.000,00. The 'comma' to represent the decimal and the 'dot' to represent 'thousand' point.

What I want:  The number value to look like this: "0,824".

What I get: the number value looking like this: "823.723.228.995.058,00". (PS: I get this value from a database).

That's really weird.

 

I am setting the format like this: 

worksheet.Cells[row, column].SetFormat(new CellValueFormat("#.##0,00"));

 

I have already tried a lot of formats, but none of them seems to work as I expect. I aways get the same result.

 

Is there any other CellValueFormat that I am missing here?

 

Thank you

Tanya
Telerik team
 answered on 01 Mar 2016
3 answers
237 views

I've followed the example at:

http://docs.telerik.com/devtools/wpf/controls/radgridview/troubleshooting/styling-custom-header.html

 

Well, it works for most cases, but it doesn't work if the column visibility is bound to a property, and it is invisible when the grid is loaded. It's hard for me to give a simple example that demonstrates exactly the scenario I have, but I've managed to find a different scenario, which reproduces the problem.

 

MyGridView.xaml

<UserControl x:Class="GridViewHeaderForground.MyGridView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:local="clr-namespace:GridViewHeaderForground"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <telerik:RadGridView AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="First Column" Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType={x:Type ContentControl}}}"/>
                    </telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</UserControl>

 

MainWindow.xaml

<Window x:Class="GridViewHeaderForground.MainWindow"
        xmlns:local="clr-namespace:GridViewHeaderForground"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <TabControl SelectedIndex="0">
            <TabItem Header="1">
                <local:MyGridView />
            </TabItem>
            <TabItem Header="2">
                <local:MyGridView />
            </TabItem>
        </TabControl>
    </Grid>
</Window>

 

As you can see, the first tab looks fine, but if you switch to the second one, then the textblocks are all black.

If you try to "debug" it with snoop, and it fixes the binding problem.

 

My scenario is a little different: I have several RadPanes which only one of them is selected. On the other ones, few columns are invisible by using the IsVisible which is bound to a property.

When one of the RadPanes get selected, it loads (and so does the header cells). On the RowLoaded event, I get only the cells that are visible (if I'm correct).

Now if I change that property to true, the column becomes visible, but the textblock is black.

 

I think both problems are the same.

How do I solve it? I need to have both image and text in the header.

 

Thanks.

 

 

 

BENN
Top achievements
Rank 1
 answered on 01 Mar 2016
3 answers
111 views
I have a SeriesProvider with multiple CandlestickSeries. Is it possible to cluster these together using combinemode, as you can with BarSeries? If not how would you suggest that we style the series so that multiple candlesticks can be displayed, side by side, within their relevant categories?
Petar Marchev
Telerik team
 answered on 01 Mar 2016
1 answer
80 views

My program needs to display a TimeSpan with days expressed in hours. For example,take the following TimeSpan:

var someTimeSpan = TimeSpan.FromHours(50);

The RadTimeSpanPicker displays the value and allows it to be edited in this format:

2.2:00:00

However, I need it to display the value and allow it to be edited in this format:

50:00:00

I grant that the way this is done out of the box is the way most would want it, and that I am asking for something special.

Yana
Telerik team
 answered on 01 Mar 2016
5 answers
197 views
Hello, 

My application uses a RadRibbonView with a single tab in which I hide the header. I would like to add KeyTips to every RadRibbonButton but I don't want to have to give a KepTip to the tab the buttons are part of. 

Basically, when a user presses the Alt key, I want the KeyTips to appear for all of the RadRibbonButtons in the RadRibbonView such that the user doesn't have to select the RadRibbonTab they are a part of.

Thanks,
Jason
Kiril Vandov
Telerik team
 answered on 01 Mar 2016
1 answer
264 views

Hi, when using the GridViewSelectColumn filters, it deselects the selecteditems. So I use this bit of code to fix it 

 

private void LoanGrid_OnFiltered(object sender, GridViewFilteredEventArgs e)
{
    LoanGrid.SelectedItems.AddRange(SelectedLoans);
}
         
public BindableCollection<LoanDTO> SelectedLoans { get; set; }
         
private void LoanGrid_OnFiltering(object sender, GridViewFilteringEventArgs e)
{
    SelectedLoans = new BindableCollection<LoanDTO>();
    foreach (var selectedItem in LoanGrid.SelectedItems)
    {
        SelectedLoans.Add((LoanDTO)selectedItem);
    }
}

That works perfectly fine, but I'm trying to have it be in MVVM format using caliburn.

on xaml side,     cal:Message.Attach="[Filtered] = [Filtered];[Filtering] = [Filtering] "

ViewModel

 

private BindableCollection<LoanDTO> _oldLoans = new BindableCollection<LoanDTO>();
 
public void Filtered()
{
    SelectedLoans = new BindableCollection<LoanDTO>(Items.Where(x => _oldLoans.Any(y => y.Id == x.Id)));
}
 
public void Filtering()
{
    _oldLoans = new BindableCollection<LoanDTO>();
    foreach (var selectedItem in SelectedLoans)
    {
        _oldLoans.Add(selectedItem);
    }
}

 

The selecteditems get cleared using the MVVM methods. Any thoughts?

Stefan
Telerik team
 answered on 01 Mar 2016
5 answers
105 views
I'm using telerik tile view in my application, when I mouse over the minimize and maximize the button on the tile, it displayed the message correctly in "en", What should I do to make the text(Minimize, Maximize) as localized
sheik
Top achievements
Rank 1
 answered on 01 Mar 2016
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?