Telerik Forums
UI for WPF Forum
1 answer
149 views
Hi

I'm trying to get DataForm validation up and running for my WCF Service based application. I'm using item level attribute-based validation according to http://www.telerik.com/help/wpf/raddataform-validation-item-level.html. This is working fine if I add the attributes directly to the DTO classes generated by the Open Access Service Wizard (i.e. directly in Transport.cs).

[DataMember]
[Required]
public virtual string Name {
    get {
        return this._name;
    }
    set {
        if (Name == value)
            return;
 
        this.OnPropertyChanging("Name");
        this._name = value;
        this.OnPropertyChanged("Name");
    }
}


However, as adding the metadata to Transport.cs is probably not the best idea, i tried to move the metadata to a seperate metadata class and inject it to the DTO via a MetaDataTypeAttribute.

[MetadataTypeAttribute(typeof(EmployeeDto.Metadata))]
public partial class EmployeeDto
{
    internal sealed class Metadata
    {
        private Metadata() {
        }
 
        [Required]
        public string Name { get; set; }
    }
}

But i couldn't get this to work, the DataForm ignores the metadata while validating. Is there something I've missed or is this fature not supported by RadDataForm?

Regards
Ivan Ivanov
Telerik team
 answered on 14 Jan 2013
3 answers
291 views
Greetings all,

I am using a RadTabControl.

I'd like to remove the little space to the left of the tab and the line at the bottom of the tab. What I'm trying to do is have a gradient that spans from the top of the tab through the bar where the toolbar is placed.

Image is attached.

Is this possible?

Thanks

Wade
Pavel R. Pavlov
Telerik team
 answered on 14 Jan 2013
4 answers
507 views
How could I use code to set the background color and icon image of each RadPane?

The RadPane is created in code and added to RandPanGroup with AddItem method.

For the background, I tried radPane.Background = brush but it has no effect.

For the icon, I can not find any properties for assigning values.

Thanks
Masha
Telerik team
 answered on 14 Jan 2013
1 answer
84 views
I'm sending the following request to a BingGeocodeProvider.

            var address = new Address
            {
                Locality = city,
                CountryRegion = "United Kingdom"
            };
            var request = new GeocodeRequest { Address = address };
            BingGeocodeProvider.GeocodeAsync(request);

This works but if I put the 'city' in the 'PostalTown' I don't get any results returned.

My question is why? It appears that if I put data in some fields (like PostalCode) it works, but other fields don't. Is there any documentation on what works/is required?
Andrey
Telerik team
 answered on 14 Jan 2013
1 answer
174 views
Hi, I have a problem with the gridView in that when I set the SelectedItem property via my view model the grid highlights the full row even though the selectionunit of the grid is set to cell. I was expecting the grid to just select the first column in the row, rather than the full row. If you click on the row in question the highlight is cleared and the selected cell highlighted. Can the SelectItem property not be used when the selectionunit is set to cell?
Nick
Telerik team
 answered on 14 Jan 2013
1 answer
128 views
I have a GridView which has 3 columns:
  • CheckBox: if the row is active;
  • TextBlock: row id;
  • TextBlock: row name;

There are a object collection and a binding is made to the GridView.
Now when I active the checkBox, I would like have access to the row, ie, to the object which was allocate to the row.

This is the XAML code I have:
<telerik:RadGridView Grid.Row="0" Grid.Column="0" x:Name="mainRadGridView"
IsSynchronizedWithCurrentItem="True" IsReadOnly="True"
AutoGenerateColumns="False">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="" DataMemberBinding="{Binding isActive}" Width="Auto" >
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding isActive}"
 Checked="checkBox_Checked"
 Unchecked="checkBox_Unchecked"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Header="id" DataMemberBinding="{Binding id}" Width="Auto"></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn Header="name" DataMemberBinding="{Binding name}" Width="Auto"></telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>                                
</telerik:RadGridView>

Any suggestion?
Nedyalko Nikolov
Telerik team
 answered on 14 Jan 2013
1 answer
109 views
 How can I get active cell in RadGridView control? I mean cell which is highlighted when mouse pointer is moving over it. (i.e it is not a current or a selected cell).

Thanks,
Alex
Nick
Telerik team
 answered on 14 Jan 2013
1 answer
138 views
Hi,

I create a RadExpressionEditor and assign an object base on the following class.

    class TestClass
    {
        public string Name { get; set; }
    }
Using the editor, I enter the following expression (Count(Name)). At the bottom of the editor, there is a label "Result Preview" that show me the result of the expression. 

So, I add a button in my interface to retrieve this value, but I don't see a way to get the result of my expression.

So, what is the best way to retrieve the result of my expression base on a specific object?

Best Regards,
Dimitrina
Telerik team
 answered on 14 Jan 2013
1 answer
317 views
Hi,

Please help me in finding solution to following scenario.

I have a treeview control populated dynamically. I need a click event for the treeview control in MVVM. and i want to access selected item in
the ViewModel class.

How i can achive that ?

Can you please provide sample snippet for clickevent using MVVM. ?

Thanks
Rama.
Petar Mladenov
Telerik team
 answered on 14 Jan 2013
0 answers
223 views
I have WPF 1Q 2012 SP1  and I am trying to follow the info on this page:
http://www.telerik.com/help/wpf/styling-apperance-themes-runtime.html

the instructions seem to be referring to some dll files that I can not find or do not have.

like this:
Add the required assemblies from the Binaries.NoXaml folder located in the RadControls installation folder. Include also the theme assemblies:

it then shows a screen shot that seems to list some dll files  named like this Telerik.WIndows.Themes.*  and I do not have them.

later in the help it also tells me to add to the app
Add the needed resource dictionaries for the default theme in App.xaml:
and refers to
Source="/Telerik.Windows.Themes.Office_Black;component/Themes/System.Windows.xaml"/
which reads as a packed URI in a dll also....

but I do not have the dlls ???
do I have to copy the xaml files and make my own dll's to use this or what ??
did some prior release have the files and the version I have assumes I have the prior release installed to provide the missing files ?
Denny Figuerres
Top achievements
Rank 1
 asked on 13 Jan 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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?