Telerik Forums
UI for WPF Forum
3 answers
68 views
Hi,

I confused. RadDataFilter is listed under RadControls for WPF but on the "Getting Started" page (http://www.telerik.com/help/wpf/datafilter-getting-started.html) I see:

RadDataFilter is available for Silverlight 4 only.

Is this a mistake?

Thx

Rob
Vlad
Telerik team
 answered on 12 Mar 2012
1 answer
98 views
Hi,

I am working on an audit application where I use lot of GridViews. There are columns such as SSN, Date, accountnumbers ..etc which I use in a lot of grids. Every column is initially in readonly mode has edittrigger set to F2.  For SSN I am using GridViewMaskedTextBoxColumn and defined it as below

<telerikGrid:GridViewMaskedTextBoxColumn DataMemberBinding="{Binding SSN, Mode=TwoWay,
Converter={StaticResource ssnConverter}}" Header="SSN" EditTriggers="F2" Mask="###-##-####"
 MaskType="Standard" />              

When I write a Style as below :

<Style x:Key="SSN_GridViewColumn" TargetType="{x:Type telerik:GridViewMaskedTextBoxColumn}">
            <Setter Property="Mask" Value="###-##-####"/>
            <Setter Property="Header" Value="SSN"/>
            <Setter Property="MaskType" Value="Standard"/>
            <Setter Property="EditTriggers" Value="F2"/>
 </Style>

and try to apply them to all the SSN columns in my grids, I get runtime errors regarding the Properties "Mask" and "MaskType" properties in the Style. They only work when I add them explicitly in the Column defiition rather than in the style. Is this an Issue with MaskedTextBoxColum

Is there any other alternative to this?
Vlad
Telerik team
 answered on 12 Mar 2012
6 answers
159 views
How can be scrollbar both horizontal and vertical in chart legend.
MahMah
Top achievements
Rank 1
 answered on 12 Mar 2012
3 answers
157 views
Hello. I have such problem: when I try to add aggregate functions for group, that was created from user interface(user drags column headers to grouping panel), i cant use foreach for groups collection, that have more than one element. I get exception, that talk my group collection has changed. But i changed only aggregate functions collection. Code demonstrated such behaviour is below:

foreach (var group in AssociatedObject.GroupDescriptors)
{
    var localGroup = (group as GroupDescriptor);
 
    AggregateFunctionCollection aggregateFunctions = localGroup == null ?
        (@group as ColumnGroupDescriptor).Column.AggregateFunctions :
           localGroup.AggregateFunctions;
 
   aggregateFunctions.Clear();
 
    aggregateFunctions.Add(new CountFunction { Caption = GroupAggregatesName });
}

What is the way to solve this problem? Please help.
Evgeny
Top achievements
Rank 1
 answered on 11 Mar 2012
3 answers
81 views
Hi,

I am facing an issue with the WPF RadGrid, that when i extend a column width, the column title gets cut off. Please refer attached screenshot. Could anyone help me with this please?

Thanks.
Ruhban
Top achievements
Rank 1
 answered on 10 Mar 2012
0 answers
107 views

Hello,

We are working with Telerik TreeListView control to display hierarchical data. We have a tree with upto 3 levels deep and unable to to maintain the expanded/collapsed state everytime we do a rebind. The tree collapses every-time we save the data and rebind the data back to the control. We have looked at options of manually storing the state (expanded/collapsed nodes)  on IsExpandedChanged() and expanding the nodes manually using treeListView.ExpandHierarchyItem(item) after rebind. This doesn’t seem to work as expected.

We also tried the MVVM approach as suggested in the demo but this works only for the first time.

This is an urgent request and any help on this at the earliest would be greatly appriciated.

Thanks,
Mahesh

Mahesh Aloysius
Top achievements
Rank 1
 asked on 10 Mar 2012
10 answers
551 views
How can I make the GridView resize itself when the window is being resized. I have the GridView inside a Header Content control. The Header Content control resize itself horizontally but not vertically.

The GridView inside the Header Content control, does not resize.

I have tried setting the Height and Width to Auto, but there is no difference.

Any ideas?
Marcelo
Top achievements
Rank 1
 answered on 09 Mar 2012
4 answers
259 views
Hello Telerik Team,
                              I want to know how to set Keyboard short cuts in radmenu?
In wpf standard menu contains InputGestureText.But not in Radmenu.
i want to set F4 for save in radmenu item......

 

Buzz
Top achievements
Rank 1
 answered on 09 Mar 2012
1 answer
136 views
i want to provide localization for the word processor in the greek language , is it possible and how?(radribbonUI)

i have a virtual on screen keyboard and i inject the characters being clicked into the richtextbox
how to insert tab , backspace (i've used commandbinding but with no luck),carriage return and line feed
if i inject the ascii character will it have the appropriate result in the richtextbox view?

thanks

Iva Toteva
Telerik team
 answered on 09 Mar 2012
2 answers
106 views
Hello,

I have implemented the custom sorting example http://www.telerik.com/help/wpf/gridview-sorting-custom.html 
But using the following line of code results in an error that it cannot sort by System.Object
employees = employees.OrderByDescending( employee => employee.GetType()
                                                            .GetProperty( (e.Column as GridViewDataColumn).GetDataMemberName() )
                                                            .GetValue( employee, null ) );
So I think the example code is not working, but I do not seem to be able to figure out how to get it working.
I am using this code on the server side so the code looks like this.

IQueryable<Customer> custList = dbProPlan.Customers.Where(cust => !cust.IsDeleted);
                if (!string.IsNullOrEmpty(propertyName) && sortingState == SortingState.Ascending)
                {
                    custList = custList.OrderBy(cust => cust.GetType().GetProperty(propertyName).GetValue(cust, null));
                }
                else if (!string.IsNullOrEmpty(propertyName) && sortingState == SortingState.Ascending)
                {
                    custList = custList.OrderByDescending(cust => cust.GetType().GetProperty(propertyName).GetValue(cust, null));
                } 


                numberOfItems = custList.Count();
                double pages = numberOfItems / aPageSize;
                int numberOfPages = (Math.Ceiling(pages) >= 1 ? (int)Math.Ceiling(pages) : 1);
                aPageNumber = (numberOfPages < aPageNumber ? numberOfPages - 1 : aPageNumber);


                IEnumerable<Customer> customerList = custList.Skip(aPageNumber * aPageSize).Take(aPageSize);
                dbProPlan.Refresh(RefreshMode.OverwriteCurrentValues, customerList);
                return customerList;

What do I need to change to get this working properly.
Kevin Hendriks
Top achievements
Rank 1
 answered on 09 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?