Telerik Forums
UI for WPF Forum
1 answer
210 views
Hi
I am using data annotations to validate items in a collection presented in a RadGridView.
It successfully validates a property of an item in the collection e.g. a name is required
// ...
{
    public class GroupOfItems
    {
        [Required(ErrorMessage="Name must be provided!")]
        public string GroupName { get; set; }
// ...

I now want to ensure the name is unique within the collection. I have tried adding the [Key] attribute but no error is indicated if I enter another item with the same name. It may be that [Key] is not appropriate in this context.

What can you suggest I do to implement this validation rule?
Thanks
Craig
PS. I'm using C#, WPF, MVVM, Rad Controls for WPF 2012.3.1129.40

Nedyalko Nikolov
Telerik team
 answered on 28 Feb 2013
1 answer
97 views
For some reason, vertical lines do not appear on our scheduleview until the vertical scroll bar is used. I've attached two images for reference.

Please Advise.
Yana
Telerik team
 answered on 28 Feb 2013
6 answers
424 views
I have a radribbonview defined as this:

<telerik:RadRibbonView IsMouseWheelTabScrollingEnabled="False" ApplicationButtonVisibility="Collapsed" TitleBarVisibility="Collapsed" Background="HotPink">
          <telerik:RadRibbonTab HeaderVisibility="Collapsed">
              <telerik:RadRibbonGroup />
              ...
              <telerik:RadRibbonGroup />
          </telerik:RadRibbonTab>
<telerik:RadRibbonView />

I set the background to hotpink to illustrate my problem. There is only one radribbontab inside the radribbonview - so I really do not need any header for it.

In my program it looks like this (see attached file). The top row of tabs ("Project", "Contacts"... are not part of this problem, my problem is on a radribbonview inside the "Suppliers" tab).

I changed it resently from RadRibbonBar to RadRibbonView because it kept bugging me that RadRibbonBar is obsolete.

How do I make the large "margin" in top go away (the margin is not really a margin - it is where my RadRibbon tab would have had it's header if it had one). Anything else I need to collapse?

Thanks
Inger Marie
Inger Marie
Top achievements
Rank 1
 answered on 28 Feb 2013
0 answers
578 views
Hello telerik team. I have problem with CellEditTemplate navigation. I have GridViewDataColumn with RadMaskedNumericInput CellEditTemplate:
<telerik:GridViewDataColumn Name="RateColumn" DataMemberBinding="{Binding Rate,Mode=TwoWay}"
                          Header="{x:Static properties:Resources.CurrencyRateHeader}" DataFormatString="{} {0:#########0.00000000}">
                        <telerik:GridViewDataColumn.CellEditTemplate>
                            <DataTemplate>
                                <controls:RadMaskedNumericInput InputBehavior="Insert" Value="{Binding Rate, Mode=TwoWay}"
                                                                IsClearButtonVisible="False" Mask="##.########" FormatString="########00.00000000"
                                                                SpinMode="PositionAndValue"
                                                                UpdateValueEvent="PropertyChanged"
                                                                SelectionOnFocus="SelectAll"
                                                                KeyboardNavigation.TabNavigation="Local"
                                                                HorizontalAlignment="Stretch"
                                                                />
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellEditTemplate>
 
                    </telerik:GridViewDataColumn>

The problem is in navigation: when i'm ending editing of this cell i cannot navigate to the next row's cell on hitting enter button. Navigation work's only with Tab button. How can i achieve desired result?
Alex Suutri
Top achievements
Rank 1
 asked on 28 Feb 2013
5 answers
382 views
Hello, the problem is such DataDrid to create a context menu, but it has a function of interaction with the selected row, so that when one line is highlighted, and we click the right mouse button on the 2, the context menu appears for the selection, that is, for one. Need to by pressing the right button on the DataGrid stood Item and its context menu. Tell me how to implement this.
Владимир
Top achievements
Rank 1
 answered on 28 Feb 2013
1 answer
78 views
Hi Telerik,

is it possible to have multiple zooms in a chart with multiple y-axes? (for each Y axis it's own zoom)


Greetings Uwe
Peshito
Telerik team
 answered on 28 Feb 2013
3 answers
68 views
I'm trying to use the RadGridView control for a WPF app (.NET 4.5). We've got a WCF service which runs a SQL query that looks at 2 tables in 1 database, and a third table in a secod database. The WCF service returns all of the results. The results include things like client number, case number, client's first and last names, date of birth, etc. We want to group the results by the client number, and that's easily done, but what we also want to do is display things like the client's first and last name, DOB, etc in the group header. Clearly, however, we don't want to group by the client's name, or DOB, etc. Only by the client number (the case number does change from one record to the next and some other fields do too, but aren't relevant to this discussion).

My question is a simple one, is it possible to put into the group header data that isn't a part of the group, like client's first and last name, DOB, etc? If so, how is that done. But if not, then how do we get the data in a way that the RadGridView will display it the way we need it displayed?
Vlad
Telerik team
 answered on 28 Feb 2013
0 answers
109 views
Hi,
I'm trying to use the GridView export to *whatever format*, and they all seem to work fine, except the export to Text. I tried using your demo online, and that gave me the same problem. When I save it, it saves as a .doc (I also tried with .docx), and then the file is naturally saved to my drive as that format. However when I open it, it tries to open in a browser (in my case IE), and throws an error and won't open. First of all, have you seen this before, and secondly why would it try to open in a browser? Shouldn't it just be Word?

Thanks,
Ryan
Lars
Top achievements
Rank 1
 asked on 27 Feb 2013
1 answer
176 views
Hi,

Can I override default editortemplate for properties?

I would like to use TextBox instead of TextBlock on properties, that are readonly (like in VS2012
I'm using autogenerated scenarios.

I guess setting editortemplate explicitly in propertydefinition will override editortemplateselector logic as well, which is not desired behaviour
Daniel
Top achievements
Rank 1
 answered on 27 Feb 2013
1 answer
116 views
Hi, 

I am trying to display company revenue by product using AreaSeries and SeriesMapping. But unfortunately
I don't know how to set CombineMode in SeriesMapping way. Could you please provide an example? 

private
void SetMappings(RadChart chart)
{
    SeriesMapping seriesMapping = new SeriesMapping() { ChartAreaName = "MyChartArea" };
    seriesMapping.SeriesDefinition = new AreaSeriesDefinition();
 
    //=============================================//
    ItemMapping itemMapping = new ItemMapping();
    itemMapping.DataPointMember = DataPointMember.YValue;
    itemMapping.FieldName = "Rev";
 
    ItemMapping itemMapping2 = new ItemMapping();
    itemMapping2.DataPointMember = DataPointMember.XValue;
    itemMapping2.FieldName = "Date";
 
    seriesMapping.ItemMappings.Add(itemMapping);
    seriesMapping.ItemMappings.Add(itemMapping2);
 
    chart.SeriesMappings.Add(seriesMapping);
}

<telerikChart:RadChart x:Name="RadChart1" UseDefaultLayout="False">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
 
            <telerikCharting:ChartTitle Grid.ColumnSpan="2" Content="Chart Title"></telerikCharting:ChartTitle>
 
            <telerikCharting:ChartArea Grid.Row="1" x:Name="MyChartArea" LegendName="MyLegend" Margin="-1,1,1,-1"  />
            <telerikCharting:ChartLegend Grid.Row="1" Grid.Column="1" x:Name="MyLegend"></telerikCharting:ChartLegend>
        </Grid>
    </telerikChart:RadChart>


Thanks!
Evgenia
Telerik team
 answered on 27 Feb 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
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?