Telerik Forums
UI for WPF Forum
1 answer
111 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
175 views
How can be scrollbar both horizontal and vertical in chart legend.
MahMah
Top achievements
Rank 1
 answered on 12 Mar 2012
3 answers
173 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
95 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
127 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
589 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
281 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
150 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
122 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
1 answer
106 views
I am using the day view and ordering by resource. It appears that the headers are showing up in a random order. Sometimes the resource is on top, sometimes it's the date. I have attached a screen shot of the issue.

This is the XAML for my day view
<telerik:DayViewDefinition VisibleDays="{Binding DataContext.VisibleDays, ElementName=Schedule}" MajorTickLength="1h" MinorTickLength="{Binding DataContext.Interval, ElementName=Schedule}" DayStartTime="{Binding DataContext.DayStartTime, ElementName=Schedule}" DayEndTime="{Binding DataContext.DayEndTime, ElementName=Schedule}" TimerulerMajorTickStringFormat="{}{0:h t}" TimerulerMinorTickStringFormat="{}{0:mm}" />
Yana
Telerik team
 answered on 09 Mar 2012
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?