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

I have a problem using the control RadTabControl. In my case, a gridview is in one of the tabitem.
When we navigate in the cells of the gridview with the keyboard arrows and we arrived at the last cell, another press on the right key change the active tab of the tabcontrol (instead of doing nothing because it's the last cell).

With the source code below, you could reproduce the bug with the following steps :
1. Go to the tab "Tab2" containing the Gridview
2. Select the last column of a row
3. Press right arrows key
4. You could now navigate throught the tabs using arrows :(

How can I prevent this?

The xaml code used is quite simple :
<Window x:Class="TestTabs.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" Title="GlobalFund" Height="1024" Width="1280"
        WindowState="Maximized" WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <ResourceDictionary Source="MainWindowResources.xaml" />
    </Window.Resources>
    <telerik:RadTabControl >
        <telerik:RadTabItem Header="Tab1" />
        <telerik:RadTabItem Header="Tab2" >
            <Controls:RadGridView x:Name="SelectedAttributes" AutoGenerateColumns="True" RowIndicatorVisibility="Collapsed">
            </Controls:RadGridView>
        </telerik:RadTabItem>
        <telerik:RadTabItem Header="Tab3">
        </telerik:RadTabItem>
        <telerik:RadTabItem Header="Tab4" />
    </telerik:RadTabControl>
</Window>


I would like to join you the zipped solution but I don't know why but there is no "Attach your file" link in the wpf forum (but it is in silverlight one) :(

An advice?

Thank you for your help....
Philippe
Top achievements
Rank 1
 answered on 06 Jul 2011
2 answers
211 views
Hello, I have some RadPanes floating. 
I try this:


oRadPane.IsSelected=true; 
  
oRadPane.Focus(); 
 
In order that some RadPane got focus and see over all.

If yoy click in header of Pane, this got the focus and see over all, but with code, not.

Any way to set the "z-index" of floating panes?

In this sample
http://www.telerik.com/ClientsFiles/193221_docking-isselected.zip
 
Is you put both RadPane Floating, and click on "Click Me" button see the problem. The same Radpane is over the other

Thanks in advance
Charlie
Top achievements
Rank 2
 answered on 06 Jul 2011
4 answers
203 views
Dear Telerik Team,
i have a small problem.

I have a ScheduleView, which has just one active view definition: Timeline.

The Timeline everytime shows one month (31 days).

When a user use the included datepicker in the header of the scheduleview, the visible range of the scheduleview changes
just for 7 days (when a user clicks next or forward) every time (eg.: when i start with 1. July - 31. July and i cklick forward, then the visible range will be 8.July - 9. August). 

My problem is, the visible range, have to change for a complete month (eg. when i start with 1. July - 31. July and i cklick forward, then the visible range has to be 1.August - 31. August)

Can you please tell me how i can do this ?
Markus
Top achievements
Rank 1
 answered on 06 Jul 2011
1 answer
107 views
Hi..
Can you tell me what is wrong with this.. and how I can show the busy indicator when loading map data.. thanks

 

 

private void LoadData()

 

{

 

 

this.radBusy.IsBusy = true;

 

 

 


DataCRMDataContext
dc = new DataCRMDataContext();

 

 

 


var
query = from i in dc.VACTIVEREPs

 

 

 

where i.RepID > 0

 

 

 

select i;

 

 

 

List<CRM_GIS.VACTIVEREP> lstVActiveReps = query.ToList();

 

 

 

 

foreach (VACTIVEREP Rep in lstVActiveReps)

 

{

 

 

var pushpin = new Pushpin();

 

pushpin.Background = System.Windows.Media.

 

Brushes.Red;

 

pushpin.ToolTip = Rep.LastName +

 

", " + Rep.FirstName + " " + Rep.RepNo;

 

 

 

 

MapLayer.SetLocation(pushpin, new Location(Convert.ToDouble(Rep.lat), Convert.ToDouble(Rep.lng)));

 

pushpin.MouseDoubleClick +=

 

new MouseButtonEventHandler(pushpin_MouseDoubleClick);

 

pushpin.MouseDown +=

 

new MouseButtonEventHandler(pushpin_MouseDown);

 

 

 

 

this.informationLayer.Items.Add(pushpin);

 

}

 

 

this.radBusy.IsBusy = false;

 

}

Konstantina
Telerik team
 answered on 06 Jul 2011
1 answer
106 views
Hello,

Is it possible to highlight the current date in timelineview like in the scheduler ?

Regards
Rosi
Telerik team
 answered on 06 Jul 2011
4 answers
478 views
Hello,

I am new to the RadMap and GeoCoding in general and have a question. 

The first version of this application will be a thin WPF client, and in this version it will show a map with a route drawn on it.  Is it possible to show the current location (where the app is running) on the RadMap by using the Internet connection the host computer is using?

Any suggestions would be great.

Thanks!

Reid
Reid
Top achievements
Rank 2
 answered on 06 Jul 2011
9 answers
176 views
Hi,

i have this xml File:

<?xml version="1.0" encoding="utf-8" ?>
<MODULE>
    <Content>
        <ContentItems>
            <ContentItem>
                <ContentCategoryName>Mandanten</ContentCategoryName>
                <Attributes>
                    <Attribute AttributeGroup="Mandant">
                        <ContentAttribute AttributeName="Name">ERP</ContentAttribute>
                        <ContentAttribute AttributeName="Host">okljkj</ContentAttribute>
                        <ContentAttribute AttributeName="Port">6550</ContentAttribute>
                        <ContentAttribute AttributeName="mandant">eks</ContentAttribute>
                        <ContentAttribute AttributeName="pw">lolo</ContentAttribute>
                    </Attribute>
                </Attributes>
            </ContentItem>
            <ContentItem>
                <ContentCategoryName>Mandanten</ContentCategoryName>
                <Attributes>
                    <Attribute AttributeGroup="Mandant">
                        <ContentAttribute AttributeName="Name">DEMO</ContentAttribute>
                        <ContentAttribute AttributeName="Host">jhkhjk</ContentAttribute>
                        <ContentAttribute AttributeName="Port">6551</ContentAttribute>
                        <ContentAttribute AttributeName="mandant">demo</ContentAttribute>
                        <ContentAttribute AttributeName="pw">lolo</ContentAttribute>
                    </Attribute>
                </Attributes>
            </ContentItem>
        </ContentItems>
    </Content>
</MODULE>

and i don't now how to bind this File to an Combobox: How must the XMLDataProvider and the ComboboxItem look like?

Thanks for helping me.
Best Regrads
Rene
Hristo
Telerik team
 answered on 06 Jul 2011
1 answer
184 views
Is there a way to easily change the quarter numbering to align based on a fiscal calendar vs "calendar" year? 

Thanks,
Shawn
Missing User
 answered on 06 Jul 2011
2 answers
204 views
Hi,
i have spent the last two days two find out how the validation works in the dataform. My DAL uses Entity Framework 4.1 with auto generated POCO Entities (in a seperate Assembly).
I'm working with MVVM and have UserControls for my views. One UserControl has a RadDataFrom with customized fields. The currentItem is bound to a an instance of my POCO Entities. Now i'd like to use DataAnnotations in the entities for my validatioin. But the error are not displayed in the dataform. I don't know what i'm doing wrong, can you please help me?
Here is the UserControl containing the dataform and the corresponding POCO:

<UserControl xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="MiexProto.Views.EmployeeFormView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             x:Name="me"
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <DataTemplate x:Key="EmployeeTemplate">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="0">
                    <Label Content="Anrede"/>
                    <telerik:DataFormComboBoxField Height="auto"  DataMemberBinding="{Binding AnredeId, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}" SelectedValuePath="AnredeId" DisplayMemberPath="Bezeichnung" ItemsSource="{Binding ElementName=me, Path=DataContext.ListAnrede}" />
                </StackPanel>
                <StackPanel Orientation="Horizontal"  Grid.Row="0" Grid.Column="1">
                    <Label Content="Titel" />
                    <telerik:DataFormComboBoxField Height="Auto" DataMemberBinding="{Binding Titel.Bezeichnung, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}" DisplayMemberPath="Bezeichnung" ItemsSource="{Binding ElementName=me, Path=DataContext.ListTitel}" />
                </StackPanel>
                <telerik:DataFormCheckBoxField Grid.Row="0" Grid.Column="2" Label="Deaktiviert" DataMemberBinding="{Binding Deaktiviert, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}" />
                <telerik:DataFormDataField Grid.Row="1" Grid.Column="0" Label="Nachname" DataMemberBinding="{Binding Nachname, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}" />
                <telerik:DataFormDataField Grid.Row="1" Grid.Column="1" Label="Vorname" DataMemberBinding="{Binding Vorname, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}" />
                <telerik:DataFormDataField Grid.Row="2" Grid.Column="0" Label="Durchwahl" DataMemberBinding="{Binding Durchwahl, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}" />
                <telerik:DataFormDataField Grid.Row="2" Grid.Column="1" Label="Mobilnummer" DataMemberBinding="{Binding Mobilnummer, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True, ValidatesOnDataErrors=True}" />
            </Grid>
        </DataTemplate>
 
    </UserControl.Resources>
    <Grid>
        <telerik:RadDataForm CurrentItem="{Binding Employee}" Header="{Binding Employee.Nachname}" AutoEdit="True" CommandButtonsVisibility="None" EditTemplate="{StaticResource EmployeeTemplate}" AutoGenerateFields="False" />
    </Grid>
</UserControl>

namespace Entities
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
     
    public partial class Mitarbeiter
    {
        public Mitarbeiter()
        {
            this.Veranstaltungsanmeldung = new HashSet<Veranstaltungsanmeldung>();
            this.Zustaendigkeit = new HashSet<Zustaendigkeit>();
        }
     
        public int MitarbeiterId { get; set; }
        public int KundeId { get; set; }
        public int AnredeId { get; set; }
        public int TitelId { get; set; }
        public string Vorname { get; set; }
        public string Nachname { get; set; }
        public string Durchwahl { get; set; }
        public string Email { get; set; }
        [Required(AllowEmptyStrings = false, ErrorMessage = "Es muss eine Handynummer angegeben werden!")]
        [Display(Name = "Kunde")]
        [RegularExpression("^\\+(\\d+)\\s\\((\\d+)\\)\\s(\\d+)(\\s-\\s(\\d+))?", ErrorMessage = "Die Telefonnummer muss im Format +43 (XXX) XXXXX - XX sein")]
        public string Mobilnummer { get; set; }
        public bool Deaktiviert { get; set; }
        public string Bild { get; set; }
        public System.DateTime UpdateDatum { get; set; }
        public string UpdateBenutzer { get; set; }
     
        public virtual Anrede Anrede { get; set; }
        public virtual Kunde Kunde { get; set; }
        public virtual Titel Titel { get; set; }
        public virtual ICollection<Veranstaltungsanmeldung> Veranstaltungsanmeldung { get; set; }
        public virtual ICollection<Zustaendigkeit> Zustaendigkeit { get; set; }
    }
}

Mike
Top achievements
Rank 2
 answered on 05 Jul 2011
5 answers
148 views
Hi Guy,
How do I collapse / expande a GridViewComboBoxColumn.
Regards,

Freeky
Top achievements
Rank 1
 answered on 05 Jul 2011
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?