Telerik Forums
UI for WPF Forum
3 answers
139 views
Hi,
I have problem with RadPivotFieldList.
In Column labels, I choose field with type = datetime and step = Year. The problem is when I click  label filter, In list value, it shows all possible values, even these that are not in the columns. I don't know why? Am I miss songthing?
Please see picture I attached to see detail.

Another question, can we show/ hide, or sort list fields in run-time.
Kalin
Telerik team
 answered on 20 Mar 2015
1 answer
81 views
It appears that RadTimePicker don't show anything (like red border and IDataErrorInfo.Error), is it normal ?

I wrote :
    public partial class MyItem: IDataErrorInfo
    {
        public TimeSpan Duree { get; set; }

        public string this[string columnName]
        {
            get
            {
                string result = null;
                switch (columnName)
                {
                    case "Duree":
                        if (Duree.Ticks <= 0)
                            result = "Un(e) DurĂ©e est requis(e)";
                        break;

                    default:
                        result = null;
                        break;
                }
                return result;
            }
        }

        public string Error { get; private set; }
    }

<telerik:RadTimePicker SelectedTime="{Binding MyItemInstanced.Duree, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"

Laurent
Top achievements
Rank 1
 answered on 20 Mar 2015
1 answer
54 views
I was wondering if it would be somehow possible to create the step line series with lines like in the attached image,  It seems that the step lines are actually a vector graphic that is generated on the fly so I am thinking probably not but just wanted to make sure.  The idea is the lines would be slightly larger than the actual bar width.

Or is there another way to achieve this?

Thoughts?

William  
Martin Ivanov
Telerik team
 answered on 20 Mar 2015
1 answer
369 views
Hi,

in the latest version you removed the ShowInsertRow

>>Removed obsoleted property ShowInsertRow of RadGridView. Property NewRowPosition should be used instead.

So we should use NewRowPosition instead.

ATM we have ShowInsertRow="{Binding UserMayInsertRows}" which works fine.
And yes I could write a converter True==Insertrowpositon.Top -- False==I...None to help me out of it.

But - how (without a lot of effort) to position the InsertRow as I need it?
A multivalue Converter or...?

So what I search for is an easy way to have Grids - some with the InsertRow on Top - some with it at the bottom...
...and bind the visibility of the InsertRow to a boolean.

Manfred
Stefan
Telerik team
 answered on 20 Mar 2015
1 answer
91 views
Hello!

We have a scripting solution, which generates content for diagrams. The generated diagram content is published to a view model, which is bound to a RadDiagram component that is opened inside a docked RadPane by the script. The purpose of the script is to generate a possibly large number of diagrams, and then export each diagram to a file. What happens upon script execution is that each generated diagram is correctly opened in a docked RadPane, but the ExportToFile -method only works for the diagram that is created as the last one, ie the one that exists on the last opened RadPane, ie the only one that is actually visible. All other diagrams are generated as empty files.

In the script, the export command is invoked immediately after the RadDiagram has been shown, and specifically (hopefully) before the next RadDiagram (that covers the previous one) is being generated, so the diagram to be exported should be visible when the export command is invoked.

I found other threads having to do with the diagram control not being part of the visual tree, and this may be a related issue.

Help appreciated,

Kim Johnsson
Petar Mladenov
Telerik team
 answered on 20 Mar 2015
9 answers
832 views
Hey there,

I'm replacing your old Chart component with the new ChartView components. One of them is a pie chart and when I started replacing it a question appeared: How can I format the Label (I know of LabelFormat, but what are my options?). I have also found this site here (http://www.telerik.com/help/wpf/radchartview-series-pieseries.html) but the mentioned LabelTemplate is no longer there. I just want to give the Chart a ItemsSource where each object contains a count and a label, so that I can bind the Chart to it. I do not want to specify each datapoint in code, as you did in all your examples. I'm looking for a way to do this via databinding. Could you please provide an example of this? Perhaps you could extend the WPF Demos or the documentation too.

Best Regards,
Peter
Martin Ivanov
Telerik team
 answered on 20 Mar 2015
5 answers
93 views
I am using UI for WPF 2014.1.0224.40.

I tried to install the extension on my VS 2013 Premium to enable coded ui support. But when I click Record button on Test Builder, it keeps popping up "The following package for Coded UI is in an inconsistent state: ..."
Geri
Telerik team
 answered on 20 Mar 2015
2 answers
158 views
Hello,

I am using a PropertyGrid control but I need it to be very small, I set its FontSize property to 9 and I tried to change the Height property of the PropertyGridField by using a style:

<Style TargetType="telerik:PropertyGridField">
    Setter Property="Height" Value="18" />
</Style>

When I do that, the controls within the PropertyGridField don't adjust and they look kind of odd. I am attaching an image showing the result.

Is there a way to accomplish what I am trying to do?

Thanks in advance,

Alberto
Amige
Top achievements
Rank 1
Veteran
 answered on 19 Mar 2015
3 answers
400 views
I am looking for new ways to improve the load performance of the RadGridView control.
I already had a look at the tips from your site, and have followed many of them while others do not apply as we have some special requirements which I could not achieve using your default styles.

I found that reducing the number of FrameworkElements in the Grid greatly improves the loading performance. Using Snoop, I found that we had nearly 20000(!) FrameworkElements on a full-page GridView (with row-virtualization enabled, as we found that column-virtualization severely reduced the horizontal scrolling performance). After doing some optimizations, I was able to reduce the number of elements to now 5200, reducing the loading time from more than 5 seconds to 1.5 seconds (on a fast development PC - it could still be much slower on a user PC).

One big impact factor is the GridViewCell template. If you have a look at the template (in our case the VisualStudio2013 version), it has 174 lines of code and ~12 FrameworkElements! By creating my own template (specifically for WPF, using triggers), I was able to reduce it to 32 lines of code and 2 FrameworkElements (1 border for cell separation + 1 ContentPresenter), maintaining the same look as before (maybe not every single behavior is reproduced, but the ones that we use). This single optimization leads to a reduction of loading time by ~1.4 seconds!

Now I would like to further reduce the number of elements. One Idea was to merge the GridViewCell with the border and the ContentPresenter - having 1 element instead of 3. The next step would be to implement some kind of "cell renderer" to draw simple cell templates (like the TextBlock) in the OnRender event, saving one (or more) further elements per cell. To achieve this, I have to derive from GridViewCell(Base).

However, there is one problem: While the CreateItem method in the RadGridView is protected (so I could create a derived GridViewRow), the CreateItem method in the GridViewRow is internal, effectively stopping me from creating my own implementation of GridViewCell. I am wondering why it was decided to do it this way? I see that you are accessing the method from outside the row, so protected would not be an option. But what about "protected internal"? Changing it to this should not break an usage - but allows to greatly improve usability of the class.

Alex
Ivan Ivanov
Telerik team
 answered on 19 Mar 2015
5 answers
160 views
Hi,

I work creating at runtime a big report (250/300 pages). Any page contains 2/3 charts.
All works good with good performances.

Now, if I save the report as PDF the application freezes for a lot of minutes waiting the end of process (and it consumes >3Gb memory).

Is possible to show a Progress Bar with saving info and progress (and reduce the memory consuption)?

Thanks,
marc.
Petya
Telerik team
 answered on 19 Mar 2015
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?