Telerik Forums
UI for WPF Forum
2 answers
136 views
Hello,
I derived the DataFormDataField class to return a RadMaskedNumericInput control.  Three problems are readily apparent.

1. The DataMemberBinding does not propagate to the control from the DataFormDataField derivative.
2. The IsReadOnly property is not propagated to the control.
3. The Width property of the DataFormDataField class does not effect the Width of the control.


Here's the code...
/// <summary>
/// Numeric specific <c>DataFormDataField</c>.
/// </summary>
public class DataFormNumericField : DataFormDataField
{
 
    /// <summary>
    /// Returns a control to display and edit the underlying data.
    /// </summary>
    /// <returns><c>Control</c></returns>
    protected override Control GetControl()
    {
        RadMaskedNumericInput ctrl = new RadMaskedNumericInput();
 
        return ctrl;
    }
}

You'll notice below, there is an extension to the DataFormDataField that sets the width of the label portion.  Other than that, it is a standard DataFormDataField derivation.
<amUI:DataFormNumericField x:Name="BatchNumberField"
                           DataMemberBinding="{Binding SelectedBatch.JournalEntryBatchNumber,
                                ValidatesOnDataErrors=True,
                                ValidatesOnExceptions=True,
                                NotifyOnValidationError=True,
                                UpdateSourceTrigger=PropertyChanged}"
                           Label="{x:Static localProperties:Resources.Batch_Number}"
                           Width="163"
                           amUI:DataFormColumn.LabelColumnWidth="80"
                           IsReadOnly="True">
    <amUI:DataFormNumericField.Resources>
        <Style TargetType="telerik:RadMaskedNumericInput">
            <Setter Property="Placeholder"
                    Value=" " />
            <Setter Property="SelectionOnFocus"
                    Value="SelectAll"/>
            <Setter Property="IsClearButtonVisible"
                    Value="False" />
            <Setter Property="AllowSkipPlaceholders"
                    Value="False" />
            <Setter Property="AutoFillNumberGroupSeparators"
                    Value="False" />
            <Setter Property="AutoFillZeros"
                    Value="False" />
            <Setter Property="Mask"
                    Value="#10" />
        </Style>
    </amUI:DataFormNumericField.Resources>
</amUI:DataFormNumericField>

Could you provide an example where these three issues are addressed?

Thanks in advance,
Steve
Steve
Top achievements
Rank 1
 answered on 02 Oct 2013
4 answers
240 views
Hi,
first of all I'm using the MVVM pattern.

In order to get the ActualVisibleRange from my DateTimeContinuousAxis i hooked up to the LayoutUpdated event and passed the axis via the CommandParameter:

<telerik:DateTimeContinuousAxis x:Name="horizontalAxis" LabelFormat="dd.MM hh:mm" LabelFitMode="MultiLine">   
    <i:Interaction.Triggers>
        <i:EventTrigger EventName="LayoutUpdated">
            <i:InvokeCommandAction Command="{Binding LayoutUpdatedCommand}" CommandParameter="{Binding ElementName=horizontalAxis}"/>
        </i:EventTrigger>
    </i:Interaction.Triggers>
</telerik:DateTimeContinuousAxis>


When I apply this pattern to the ChartTrackBallBehavior to pass the Data of the Behavior i got an error:

<telerik:ChartTrackBallBehavior x:Name="trackBallBehavior" ShowTrackInfo="True">
    <i:Interaction.Triggers>
        <i:EventTrigger EventName="TrackInfoUpdated">
            <i:InvokeCommandAction Command="{Binding TrackInfoUpdatedCommand}" CommandParameter="{Binding ElementName=trackBallBehavior}"/>
        </i:EventTrigger>
    </i:Interaction.Triggers>
</telerik:ChartTrackBallBehavior>


Is there an alternative way to pass the data of the ChartTrackBallBehavior to my ViewModel?

Regards Markus
James
Top achievements
Rank 1
 answered on 02 Oct 2013
2 answers
222 views
Hi,

I was looking the chart appearance demo and I want to implement something like that, I am using a RadChart with PieSeriesDefinition, a RadRadialGauge and a RadChart with AreaSeriesDefinition, I can't find how to apply the palette, I also have a RadPolarChart and a RadCartesianChart and I have no problem assigning the palette.

I don't know if for the first 3 charts is not possible assign a palette or it works in a different way.

Thanks,

Alberto
Alberto
Top achievements
Rank 1
 answered on 02 Oct 2013
1 answer
186 views
Hi

I am using a RadWindow as the apps Main window.  What i want to do is create a second Window using RadWindow.Show() which means IsModal = false which is what I want.  However, when I click into the main window the second window stays on top.  How do I get either window to be on top when clicked-in.  The only way I can get the mainwindow on top is by minimizing the second window. I need these two windows to be loosely coupled.

Thanks
Rich
Kalin
Telerik team
 answered on 02 Oct 2013
2 answers
193 views
I have implemented this on a grid that I have, and I have noticed that even if I click and drag the scroll bar to the very bottom, it doesn't show the bottom-most record. I have also noticed this same behavior in your WPF Example for this feature. Is this a known issue?
Vera
Telerik team
 answered on 02 Oct 2013
5 answers
902 views
Dear telerik,

I have to fix a problem in our software and we are using a gridview, which contains articles as items.
Each Item has a deletebutton (only visible for the the selected one), which Command is bound on a DelegateCommand (in the ViewModel). We are using the MVVM-pattern.
This button is only for removing the selected item of the gridview and works fine but when i have more than 16 articles in the grid there is always one or two articles, which I can't delete with the button. The other ones work fine.

The routed method doesn't get called in this times and I don't know why. A Button Click Event always works even when the bound command doesn't work.

I don't know where I have to search this mistake and would like to use the command and not the buttonclick.

Did you ever hear of a problem like this? Could you please help me?

Thanks a lot.


Cheers

Frank  
Maya
Telerik team
 answered on 02 Oct 2013
3 answers
177 views
Dear Telerik

I install RadControls for Wpf Q2.2013. After,I do step by step as link http://www.telerik.com/help/wpf/coded-ui-support.html
When I capture text box have value "3500" in "WPF Control Sample -> DataForm->First  Look" window as "err_25-sep_1.jpg" in attach file.When code generate,this TextBox will generate is UITestControl as "err_25-sep_2.jpg" in attach file. This is wrong,because if my machine don't have this extension,this Textbox will generate is WpfEdit as "err_25-sep_3.jpg"

Please help me solve this issuse
Sorry for my English not good
 
Ivan Ivanov
Telerik team
 answered on 02 Oct 2013
1 answer
155 views

Hi ,

I am using Rad Controls for WPF Q2 of 2013, Also I am new to Telerik.

I would like to create 2 rows for a single record in the telerik rad grid view as attached. Is it possible to do the template in the XAML code itself ?


With Regards.
Siva

Maya
Telerik team
 answered on 02 Oct 2013
1 answer
72 views

Hi,

I am using Rad Controls for WPF Q2 of 2013, Also I am new to Telerik.

I would like to create 2 rows for a single record in the telerik rad grid view as attached. Is it possible to do the template in the XAML code itself ?

With Regards.
Siva

Maya
Telerik team
 answered on 02 Oct 2013
1 answer
81 views

Hi,

I am using Rad Controls for WPF Q2 of 2013, Also I am new to Telerik.

I would like to create 2 rows for a single record in the telerik rad grid view as attached. Is it possible to do the template in the XAML code itself ?

With Regards.
Siva

Maya
Telerik team
 answered on 02 Oct 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?