Telerik Forums
UI for WPF Forum
2 answers
514 views
Hi,

I am starting with Telerik MVVM for WPF.

I would like to know how can I transform a Window Event (closing Event) in a DelegateCommand so that I can Drive in my ViewModel the event.

Thanks in advance
mvbaffa
Top achievements
Rank 1
 answered on 19 Jul 2013
5 answers
385 views

I'm replacing a plain textbox control that I had, with a RadMaskedNumericInput control, in a VS 2012 app. This control is to handle a client's social security number. However, in testing it I've found it doesn't exactly do what I want it to do. Here's the XAML:

<telerik:RadMaskedNumericInput x:Name="txtSSN" MinWidth="80"
        Text="{Binding SocialSecurityNo, UpdateSourceTrigger=PropertyChanged}" Mask="###-##-####"
        VerticalContentAlignment="Center" FontSize="15" Margin="3,0" BorderBrush="#FFE3E9EF"
        InputBehavior="Insert" />

With this, when the window first comes up, it looks like this: "___-__-___0". So if the user starts typing in a SSN, the problem becomes apparent. The 0, at the end of the control, starts getting pushed along. For example, suppose the user wanted to enter "123-45-6789" as a SSN. When they start typing what they get is, "___-__-__01". By the time they get to entering all digits from 1 to 9, in order, what they wind up with in the control is this: "012-34-5679". That is not what they want, but I don't know to make it work properly. Most likely I defined some property wrong, or left a property out. So, how do we achieve what we're trying to achieve?

Rod
Top achievements
Rank 1
 answered on 19 Jul 2013
2 answers
77 views
Hi
I have a Radgrid and I have drag and drop enabled for this grid.
Whenever I try to drag a nonselected row and drop then all the other rows which are in between the dragged point and dropped point are getting selected. But I want just that one particular row  to be dragged.Did any one see this issue. I attached a image how it is being done.
Any help is much appreciated. These are the events I see.

Telerik.windows.controls.gridview.selection.selectiondrag.tryselectrowundermouse(bool scrolladjusted)
Telerik.windows.controls.gridview.selection.selectiondrag.tryselectelementundermouse(bool scrolladjusted)

I am handling these events
 DragDropManager.AddDragInitializeHandler(this.AssociatedObject, OnDragInitialize);
            DragDropManager.AddGiveFeedbackHandler(this.AssociatedObject, OnGiveFeedback);
            DragDropManager.AddDropHandler(this.AssociatedObject, OnDrop);
            DragDropManager.AddDragDropCompletedHandler(this.AssociatedObject, OnDragDropCompleted);
            DragDropManager.AddDragOverHandler(this.AssociatedObject, OnDragOver);

In the attached image I tried to drag no 3 and drop it at no 7. But all the other rows in between are selected while dragging.

Any help is much appreciated.

Thanks
Rakesh


 



Rakesh
Top achievements
Rank 1
 answered on 19 Jul 2013
1 answer
154 views
Hi,

A property that was changed in code does not display in the cell it is bound to until the cell is clicked on twice.  The first click outlines the cell and the second click puts the cell into edit mode.  When in edit mode the new value is displayed.  Also, if a row is added the cell value is also displayed. What do I need to do to get the cell to display when the property is set.


private string columnAlias;
public string ColumnAlias 
{
get { return this.columnAlias; }
        set
        {
        if (columnAlias == value)
                return;
   
                this.columnAlias = value;
                Filter.EditWhereFilter();
                OnPropertyChanged("ColumnAlias");
}
}


 <telerik:GridViewDataColumn
            Width="15*" Name="ColumnAlias" Header="Alias" DataMemberBinding="{Binding ColumnAlias, Mode=TwoWay}">
</telerik:GridViewDataColumn>


<telerik:RadGridView
Name="radGridViewSelectedColumns" Grid.Row="1"
ItemsSource="{Binding CriteriaColumns,
Source={StaticResource criteriaColumns}}"  
        telerik:RadDragAndDropManager.AllowDrop="True" 
        SelectionMode="Extended" 
        SelectionChanged="radGridViewSelectedColumns_SelectionChanged"
        ShowGroupPanel="False"
        IsFilteringAllowed="False"
        ShowColumnHeaders="true"
        BorderThickness="0"
        EnableColumnVirtualization="False"
        EnableRowVirtualization="False"
        AutoGenerateColumns="False"
        CanUserFreezeColumns="False"
        CanUserResizeColumns="True"
        CanUserDeleteRows="True"
        Deleted="radGridViewSelectedColumns_Deleted" 
        RowIndicatorVisibility="Visible">
Dimitrina
Telerik team
 answered on 19 Jul 2013
1 answer
197 views
Hello
I have strange "error" when using column grouping in xaml. The grouping is working, and I cannot find any issue with that however I don't like having binding errors in output window because that means that something is wrong.

I have flowing column:
<telerik:GridViewDataColumn Header="Device Type" Width="Auto" DataMemberBinding="{Binding Path=DeviceTypeDescription}" UniqueName="DeviceTypeDescription" />
 and following group description:
<telerik:RadGridView.GroupDescriptors>
<telerik:ColumnGroupDescriptor Column="{Binding Columns[\DeviceTypeDescription\], ElementName=GridView}" SortDirection="Ascending" />
</telerik:RadGridView.GroupDescriptors>
However during application start I can see following error:

System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Columns[DeviceTypeDescription]; DataItem=null; target element is 'ColumnGroupDescriptor' (HashCode=36687163); target property is 'Column' (type 'GridViewColumn')

When I go to the tab where grid is, grouping is working properly. Just for information. Data for taht grid is loaded only when I open tab not during application start.

Regards

Vera
Telerik team
 answered on 19 Jul 2013
7 answers
122 views
Hi,

Do all member icons exists? eg : Class Internal Template, Class Protected Template, Class Private Template, Constructor Internal Template, Constructor Protected Template, Constructor Private Template, and other member icons.

Thanks.
Tina Stancheva
Telerik team
 answered on 19 Jul 2013
2 answers
57 views
Good afternoon,,,
We've started using Telerik components and saw that the Conference do with some dlls were created several files inside the Debug folder of my project, here is a doubt. What files should I send is within the Setup to and installed on the end user application to function properly.

Ateciosamente
André
Andre
Top achievements
Rank 1
 answered on 19 Jul 2013
1 answer
208 views
Is there a feature to get a TODAY button in the RadDateTimePicker for WPF,
or that this day has a painted circle for example?

Thanks.
Stefan
Yana
Telerik team
 answered on 19 Jul 2013
4 answers
568 views

<telerik:GridViewDataColumn DataMemberBinding="{Binding HoursValue}" ColumnGroupName="HoursInfo"

HeaderCellStyle="{DynamicResource GridViewHeaderRowStyle1}" Width="100" HeaderTextAlignment="Center">

<telerik:GridViewColumn.Header>

<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">

<TextBlock Text="Hours "/>

<TextBlock Text="{Binding ElementName=chkCompYear, Path=Content}"/> // here binding is not working
or
<TextBlock Text="{Binding Year}"/> // here binding is not working

</StackPanel>

</telerik:GridViewColumn.Header>

</telerik:GridViewDataColumn>

 

<CheckBox Name="chkYear" Content="{Binding Year}" // Here it is working


Model
-----
public string Year {get; set;}

 I can able to bind the data to checkbox which is outside the RadGridview, But I cant bind the header.
Pls help me out to resolve this

 

 

 

Adam
Top achievements
Rank 1
 answered on 19 Jul 2013
1 answer
173 views
Hi,

Is there a way to publish/subscribe messages so that I can implement a communication mecanism between different ViewModels of a View.

Does Telerik MMVM provide this kind of tool.

Thanks in advance
Yana
Telerik team
 answered on 19 Jul 2013
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?