Telerik Forums
UI for WPF Forum
7 answers
503 views
Hello,

I am trying to create 2 RadRadioButtons in my xaml file, but they appear as regular RadButtons instead.  How do I get them to appear as RadioButtons?

Thanks,
Joe
Tina Stancheva
Telerik team
 answered on 25 Apr 2012
3 answers
260 views

When a ListBox is "below" a RadBusyIndicator in the visual tree, it seems to have a focus
or styling issue; its color changes to a light gray or off-white. Is this a known issue or
expected behavior? Is there a work-around? Here is a sample UserControl I threw together
to demonstrate what it's doing. The first ListBox appears correctly, the second one is shaded.

<UserControl x:Class="ListBoxFocusIssueUC"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:tk="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">

 <Grid>
  <Grid.RowDefinitions>
   <RowDefinition Height="Auto" />
   <RowDefinition Height="Auto" />
  </Grid.RowDefinitions>

  <ListBox Grid.Row="0" BorderThickness="0" MaxHeight="80">
   <ListBox.Items>
    <ListBoxItem Content="Item #1" />
    <ListBoxItem Content="Item #2" />
    <ListBoxItem Content="Item #3" />
   </ListBox.Items>
  </ListBox>

  <tk:RadBusyIndicator Grid.Row="1" Background="Transparent" BusyContent="Testing..." IsBusy="true">
   <ListBox BorderThickness="0" MaxHeight="80">
    <ListBox.Items>
     <ListBoxItem Content="Item #1" />
     <ListBoxItem Content="Item #2" />
     <ListBoxItem Content="Item #3" />
    </ListBox.Items>
   </ListBox>
  </tk:RadBusyIndicator>
 </Grid>
</UserControl>

Georgi
Telerik team
 answered on 25 Apr 2012
3 answers
189 views
I have the following column in a grid:
<t:GridViewComboBoxColumn IsComboBoxEditable="True"
            DataMemberBinding="{Binding Path=QuoteNum, Mode=TwoWay}"
            Header="Quote" Width="125"
            ItemsSource="{Binding Path=AvailableQuotes, Mode=OneWay}" />

The ItemsSource is a simple IEnumerable<string>, and the combo shows the values from the ItemsSource, but I also want to allow the user to input a value that is not in the list (ItemsSource), hence the IsComboBoxEditable="True".

However, whenever you type in a value to the combobox, the value is lost and the column is left unset.  In fact, as far as I can tell the property setter on the view model is never actually called.

What am I doing wrong?
Maya
Telerik team
 answered on 25 Apr 2012
2 answers
207 views
I am using C# and Telerik controls version 2012.1.326

In the Quick Access Toolbar overflow menu, I would like to create additional menu items.  I am referring to items like "Show Below the Ribbon" and "Minimize the Ribbon".  Any ideas on how to add additional menu items?

Thanks,
Trang
 
Trang
Top achievements
Rank 1
 answered on 25 Apr 2012
3 answers
197 views
Hello,

I am looking to add frozen / pinned row functionality to our grids, just like Excel.  I've already found this blog post and modified it for WPF.

http://blogs.telerik.com/blogs/posts/10-07-05/frozen-pinned-rows-in-radgridview-for-silverlight.aspx 

There are still a few items which I am struggling with.  The first, which is quite major, is that the sample simply uses auto generated columns.  That will not work for me, I need to specify the columns.  Our columns are defined in XAML and can be quite complex, with DataTemplates and a number of styling options configured.  I don't want to define those again somewhere, and even if I do I'm not sure how I would access them.  I simply want the columns that are already in the grid to appear in the frozen container as well.

The second item, is that the Column Headers are not appearing, not sure why.
Duncan
Top achievements
Rank 1
 answered on 24 Apr 2012
8 answers
263 views
Hi,

in my wpf usercontrol, I have a RadGridView with a RowDetailsTemplate inside of it. The template contain a RadTabControl and a only one TabItem with nothning inside of or if you want, we can add a TextBlock inside of it, it doesn't matter.

When I see my grid, I have my column with the "+" sign, when I click on the sign, my app hang and after 1 or 2 minutes, my Visual Studio tell me that I fall in an infinite loop.

Juste the fact to remove the RadTabItem it solve the problem!!!

Here is the xaml of my control:

<UserControl x:Class="com.christiegrp.Neuron.ClientApplication.BillingGrid"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:helper="clr-namespace:com.christiegrp.Neuron.ClientApplication;assembly=ClientHelper"   
    Height="Auto" Width="Auto" Unloaded="UserControl_Unloaded">
   
    <UserControl.Resources>
        <ResourceDictionary>
            <helper:HospitalDate x:Key="DConverter" />
            <helper:HospitalTime x:Key="TConverter" />
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="BillingGrid-Fr-Res.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/Resources;component/Neuron-Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
   
    <telerik:RadBusyIndicator Name="radBusyIndicator">
        <Grid Height="Auto" Width="Auto" Background="Transparent">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
           
            <!-- The following element is used to trigger an event allowing to replace the language resources before they are used. -->
            <TextBlock Initialized="ReplaceLanguageResources"/>
           
            <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Name="Title1" HorizontalAlignment="Center" VerticalAlignment="Stretch" FontWeight="Bold" FontSize="16" TextWrapping="Wrap" Margin="5 5 5 0" Text="N/A"/>
                <TextBlock Name="Title2" HorizontalAlignment="Center" VerticalAlignment="Stretch" FontWeight="Bold" FontSize="12" TextWrapping="Wrap" Margin="5 0 5 0" Text="N/A"/>
            </StackPanel>
           
            <WrapPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="5 0 5 5">
                <telerik:RadButton CommandTarget="{Binding ElementName=radGridViewList}" Margin="0 5 0 0" Name="radButtonDatesRange" Click="radButtonDatesRange_Click" ToolTip="{Binding ElementName=Me, Path=DatesSelectionText}">
                    <StackPanel Orientation="Horizontal">
                        <Image Margin="5 0 0 0" Source="Resources/Calendar_32x32.png" Height="24" Width="24"/>
                        <TextBlock Margin="5" VerticalAlignment="Center" Text="{StaticResource Interval}" />
                    </StackPanel>
                </telerik:RadButton>
                <telerik:RadButton CommandTarget="{Binding ElementName=radGridViewList}" Margin="0 5 5 0" Name="radButtonUndoDatesRange" Click="radButtonUndoDatesRange_Click" ToolTip="{StaticResource ResetInterval}">
                    <StackPanel Orientation="Horizontal">
                        <Image Margin="0" Source="Resources/Undo_32x32.png" Height="24" Width="24"/>
                    </StackPanel>
                </telerik:RadButton>
                <telerik:RadButton CommandTarget="{Binding ElementName=radGridViewList}" Margin="0 5 5 0" Name="radButtonRefresh" Click="radButtonRefresh_Click">
                    <StackPanel Orientation="Horizontal">
                        <Image Margin="5 0 0 0" Source="Resources/Refresh_32x32.png" Height="24" Width="24"/>
                        <TextBlock Margin="5" VerticalAlignment="Center" Text="{StaticResource Refresh}" />
                    </StackPanel>
                </telerik:RadButton>
                <telerik:RadButton CommandTarget="{Binding ElementName=radGridViewList}" Margin="0 5 5 0" Name="radButtonPatientFile" Click="radButtonPatientFile_Click">
                    <StackPanel Orientation="Horizontal">
                        <Image Margin="5 0 0 0" Source="Resources/Patient_32x32.png" Height="24" Width="24" />
                        <TextBlock Margin="5" VerticalAlignment="Center" Text="{StaticResource PatientFile}" />
                    </StackPanel>
                </telerik:RadButton>
                <telerik:RadButton CommandTarget="{Binding ElementName=RadGridViewBilling}" Click="RadButton_Click" Tag="RebillStatementOfAccount" Margin="0 5 5 0">
                    <StackPanel Orientation="Horizontal">
                        <Image Margin="5 0 0 0" Source="Resources/Rebill_32x32.png" Height="24" Width="24" />
                        <TextBlock Name="textBlockRebill" Margin="5" VerticalAlignment="Center" Text="{StaticResource Rebill}" />
                    </StackPanel>
                </telerik:RadButton>
                <telerik:RadButton CommandTarget="{Binding ElementName=RadGridViewBilling}" Click="RadButton_Click" Tag="Conciliate" Margin="0 5 5 0">
                    <StackPanel Orientation="Horizontal">
                        <Image Margin="5 0 0 0" Source="Resources/Conciliate_32x32.png" Height="24" Width="24" />
                        <TextBlock Margin="5" VerticalAlignment="Center" Text="{StaticResource Conciliate}" />
                    </StackPanel>
                </telerik:RadButton>
                <telerik:RadButton CommandTarget="{Binding ElementName=RadGridViewBilling}" Click="RadButton_Click" Tag="SaveChanges"  Margin="0 5 5 0">
                    <StackPanel Orientation="Horizontal">
                        <Image Margin="5 0 0 0" Source="Resources/Save_32x32.png" Height="24" Width="24" />
                        <TextBlock Margin="5" VerticalAlignment="Center" Text="{StaticResource Save}" />
                    </StackPanel>
                </telerik:RadButton>
                <telerik:RadButton CommandTarget="{Binding ElementName=RadGridViewBilling}" Click="RadButton_Click" Tag="CancelChanges" Margin="0 5 0 0">
                    <StackPanel Orientation="Horizontal">
                        <Image Margin="5 0 0 0" Source="Resources/Cancel_32x32.png" Height="24" Width="24" />
                        <TextBlock Margin="5" VerticalAlignment="Center" Text="{StaticResource Cancel}" />
                    </StackPanel>
                </telerik:RadButton>
            </WrapPanel>
           
            <telerik:RadGridView Height="Auto" Width="Auto" x:Name="radGridViewBilling" Margin="5 0 5 5" Visibility="Visible"  RowDetailsVisibilityMode="Collapsed"
            RowIndicatorVisibility="Collapsed" IsReadOnly="True" AutoGenerateColumns="False" CanUserFreezeColumns="False" Grid.Row="2"
            CanUserResizeColumns="True" SelectionMode="Extended" ShowColumnFooters="True">

            <telerik:RadGridView.Columns>
                <telerik:GridViewToggleRowDetailsColumn />
            </telerik:RadGridView.Columns>

                <telerik:RadGridView.RowStyle>
                    <Style TargetType="telerik:GridViewRow">
                        <Setter Property="MinHeight" Value="40"/>
                    </Style>
                </telerik:RadGridView.RowStyle>

                <telerik:RadGridView.RowDetailsTemplate>
                    <DataTemplate>
                        <telerik:RadTabControl x:Name="RadTabControl1" BackgroundVisibility="Collapsed" Margin="10" Background="Transparent">
                            <!--
                            <telerik:RadTabItem Header="{StaticResource Transactions}">
                               
                                <telerik:RadGridView Height="Auto" Width="Auto" x:Name="radGridViewTransactions" AutoGenerateColumns="False"
                           CanUserFreezeColumns="False" BorderThickness="0" CanUserResizeColumns="False"
                           ShowGroupPanel="False"
                           Margin="0" IsReadOnly="True">

                                    <telerik:RadGridView.Columns>
                                        <telerik:GridViewDataColumn Header="No" DataMemberBinding="{Binding TransactionSequence}" />
                                        <telerik:GridViewDataColumn Header="Date" DataMemberBinding="{Binding TransactionTimeStamp, Converter={StaticResource DConverter}}" />
                                        <telerik:GridViewDataColumn Header="Heure" DataMemberBinding="{Binding TransactionTimeStamp, Converter={StaticResource TConverter}}" />
                                        <telerik:GridViewDataColumn Header="Type" DataMemberBinding="{Binding TransactionType}"  />
                                        <telerik:GridViewDataColumn Header="Montant" DataMemberBinding="{Binding Amount}" TextAlignment="Right" DataFormatString = "{}{0:c2}" />
                                        <telerik:GridViewDataColumn Header="Balance" DataMemberBinding="{Binding Balance}" TextAlignment="Right" DataFormatString = "{}{0:c2}" />
                                        <telerik:GridViewDataColumn Header="Commentaire" DataMemberBinding="{Binding Comment}" Width="250" />
                                    </telerik:RadGridView.Columns>                               
                                </telerik:RadGridView>                               
                            </telerik:RadTabItem>
                            -->
                           
                            <!--
                            <telerik:RadTabItem Header="{StaticResource Visit}">

                                <Grid Width="Auto" HorizontalAlignment="Stretch">
                                    <Grid.RowDefinitions>
                                        <RowDefinition />
                                        <RowDefinition />
                                        <RowDefinition />
                                        <RowDefinition />
                                        <RowDefinition />
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="*" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>

                                    <TextBlock Text="Patient PHN:" TextAlignment="Right" Margin="5" FontWeight="Bold" Grid.Row="0" Grid.Column="0" />
                                    <telerik:RadMaskedTextBox x:Name="VisitPatientPHN" Value="{Binding PHN}" EmptyContent="Entrer patient PHN" MaskType="None" ValueChanged="RadMaskedTextBox_ValueChanged"  Margin="5" Grid.Row="0" Grid.Column="1"/>
                                    <TextBlock Text="Nom:" TextAlignment="Right" Margin="5" FontWeight="Bold" Grid.Row="1" Grid.Column="0" />
                                    <telerik:RadMaskedTextBox x:Name="VisitPatientName" Value="{Binding PatientName}" EmptyContent="Entrez nom patient" MaskType="None" ValueChanged="RadMaskedTextBox_ValueChanged"  Margin="5" Grid.Row="1" Grid.Column="1"/>
                                    <TextBlock Text="Province:" TextAlignment="Right" Margin="5" FontWeight="Bold" Grid.Row="2" Grid.Column="0" />
                                    <TextBox Text="{Binding PatientProvince}" Margin="5" Grid.Row="2" Grid.Column="1" />
                                    <TextBlock Text="Date visite:" TextAlignment="Right" Margin="5" FontWeight="Bold"  Grid.Row="0" Grid.Column="3" />
                                    <telerik:RadDatePicker x:Name="FromTimePicker" Margin="5" IsTooltipEnabled="False" SelectionChanged="FromTimePicker_SelectionChanged" DateTimeWatermarkContent="VisitDate" SelectedValue="{Binding VisitDate, Mode=TwoWay}" Grid.Row="0" Grid.Column="4" />
                                    <TextBlock Text="Code diag:" TextAlignment="Right" Margin="5" FontWeight="Bold" Grid.Row="1" Grid.Column="3" />
                                    <TextBox Text="{Binding DiagCode}" Margin="5" Grid.Row="1" Grid.Column="4" />
                                    <TextBlock Text="Code exam:" TextAlignment="Right" Margin="5" FontWeight="Bold" Grid.Row="2" Grid.Column="3" />
                                    <TextBox Text="{Binding ExamCode}" Margin="5" Grid.Row="2" Grid.Column="4" />
                                    <TextBlock Text="Mnt soumis:" TextAlignment="Right" Margin="5" FontWeight="Bold" Grid.Row="3" Grid.Column="3" />
                                    <telerik:RadMaskedTextBox x:Name="VisitAmountSubmitted" MaskType="Numeric" Mask="c" Value="{Binding AmountSubmitted}" EmptyContent="Entrer montant" Background="White" ValueChanged="RadMaskedTextBox_ValueChanged" Margin="5" Grid.Row="3" Grid.Column="4"/>
                                    <TextBlock Text="Commentaire:" TextAlignment="Left" Margin="5" FontWeight="Bold" Grid.Row="4" Grid.Column="0" />
                                    <TextBox Text="{Binding Comment}" Margin="5" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="4" />
                                </Grid>
                            </telerik:RadTabItem>
                            -->
                           
                            <!--
                            <telerik:RadTabItem Header="{StaticResource ErrorsReport}">                               
                                <telerik:RadGridView Height="Auto" Width="Auto" x:Name="radGridViewErrorsReport" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False"
                   CanUserFreezeColumns="False" BorderThickness="0" CanUserResizeColumns="False"
                   ShowGroupPanel="False"
                   Margin="0">

                                    <telerik:RadGridView.Columns>
                                        <telerik:GridViewDataColumn Header="Nom fichier" DataMemberBinding="{Binding ReceivedFileName}" />
                                        <telerik:GridViewDataColumn Header="Date" DataMemberBinding="{Binding CreationTime, Converter={StaticResource DConverter}}" />
                                        <telerik:GridViewDataColumn Header="Heure" DataMemberBinding="{Binding CreationTime, Converter={StaticResource TConverter}}" />
                                        <telerik:GridViewDataColumn Header="Message d'erreur" DataMemberBinding="{Binding ErrorMessage}" Width="250" />
                                    </telerik:RadGridView.Columns>                                   
                                </telerik:RadGridView>                               
                            </telerik:RadTabItem>
                            -->
                           
                            <!--
                            <telerik:RadTabItem Header="{StaticResource StatementOfAccount}">                               
                                <telerik:RadGridView Height="Auto" Width="Auto" x:Name="radGridViewStatementOfAccount" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False"
                   CanUserFreezeColumns="False" BorderThickness="0" CanUserResizeColumns="False"
                   ShowGroupPanel="False"
                   Margin="0">

                                    <telerik:RadGridView.Columns>
                                        <telerik:GridViewDataColumn Header="Nom fichier" DataMemberBinding="{Binding ReceivedFileName}" />
                                        <telerik:GridViewDataColumn Header="Date" DataMemberBinding="{Binding CreationTime, Converter={StaticResource DConverter}}" />
                                        <telerik:GridViewDataColumn Header="Heure" DataMemberBinding="{Binding CreationTime, Converter={StaticResource TConverter}}" />
                                        <telerik:GridViewDataColumn Header="Montant soumis" DataMemberBinding="{Binding AmountSubmitted}" TextAlignment="Right" DataFormatString = "{}{0:c2}" IsReadOnly="True" />
                                        <telerik:GridViewDataColumn Header="Montant payé" DataMemberBinding="{Binding AmountPaid}" TextAlignment="Right" DataFormatString = "{}{0:c2}" IsReadOnly="True" />
                                        <telerik:GridViewDataColumn Header="Message d'erreur" DataMemberBinding="{Binding ErrorMessage}" Width="250" />
                                    </telerik:RadGridView.Columns>
                                </telerik:RadGridView>                               
                            </telerik:RadTabItem>
                            -->
                            <!--
                            <telerik:RadTabItem Header="{StaticResource RelatedBills}">
                                <TextBlock Text="Alain" />
                           
                                <telerik:RadGridView Height="Auto" Width="Auto" x:Name="radGridViewRelatedBills" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False"
                   CanUserFreezeColumns="False" BorderThickness="0" CanUserResizeColumns="False"
                   ShowGroupPanel="False"
                   Margin="0" />
                           
                            </telerik:RadTabItem>
                            -->
                            <telerik:RadTabItem Header="Performance Chart" HorizontalContentAlignment="Stretch" HorizontalAlignment="Left">
                               
                            </telerik:RadTabItem>

                        </telerik:RadTabControl>
                    </DataTemplate>
                </telerik:RadGridView.RowDetailsTemplate>
            </telerik:RadGridView>
        </Grid>
    </telerik:RadBusyIndicator>
   
</UserControl>


Thank's
Oliver
Top achievements
Rank 1
 answered on 24 Apr 2012
1 answer
92 views
How to remove horizontal scroller on PropertyGrid?
How to remove grey block left to "SomeString"?
Maya
Telerik team
 answered on 24 Apr 2012
0 answers
92 views
Hi,

I'm not able to create an appointment with a frequency like weekly by c# Code! No error but the appointment is not shown in
the scheduleview! Why?

I'm using WPF RadControls 2012 Q1 SP1 and c# .Net 4.0

foreach (DataRow tasks_dr in passw_dt.Rows)
    {
        DateTime start = Convert.ToDateTime(tasks_dr.Field<String>("StartDatum"));
     
         switch (start.DayOfWeek)
          {
              case DayOfWeek.Saturday:
                     start = start.AddDays(2);
                     break;
               case DayOfWeek.Sunday:
                      start = start.AddDays(1);
                       break;
           }
 
           TimeSpan duration = TimeSpan.FromDays(5);
            DateTime end = Convert.ToDateTime(tasks_dr.Field<String>("Enddatum"));
            switch (end.DayOfWeek)
            {
                case DayOfWeek.Sunday:
                     end = end.AddDays(-1);
                      break;
                 case DayOfWeek.Monday:
                      end = end.AddDays(-2);
                      break;
              }
           
              Appointment appointment = new Appointment
               {
                   Start = start,
                   Url = Convert.ToString(tasks_dr.Field<Int64>("id") + "#" + tasks_dr.Field<String>("Betreuer")),
                   End = end,
                   Subject = tasks_dr.Field<String>("Subject"),
                   Body = tasks_dr.Field<String>("Body"),
                   Importance = GetImportance(tasks_dr.Field<String>("Importance"))
                };
 
                if (tasks_dr.Field<String>("Kategorie") == "Fertig")
                {
                    appointment.Category = this.Categories[0];
                }
                else if (tasks_dr.Field<String>("Kategorie") == "in Arbeit")
                {
                    appointment.Category = this.Categories[1];
                }
                else
                {
                    appointment.Category = this.Categories[2];
                }
 
                if (tasks_dr.Field<Int64>("Ganztag") == 0)
                {
                    appointment.IsAllDayEvent = false;
                }
                else
                {
                    appointment.IsAllDayEvent = true;
                }
 
                var Pattern = new RecurrencePattern();
                Pattern.Frequency = GetFreuqency(tasks_dr.Field<String>("Frequency"));
 
                if (Pattern.Frequency != RecurrenceFrequency.None)
                {
                    Pattern.DayOrdinal = Convert.ToInt32(tasks_dr.Field<Int64>("DayOridnal"));
                    Pattern.DaysOfWeekMask = GetDay(tasks_dr.Field<String>("DaysofWeekMask"));
                    Pattern.FirstDayOfWeek = GetFirstday(tasks_dr.Field<Int64>("FirstDayOfWeek"));                   
                    Pattern.Interval = Convert.ToInt32(tasks_dr.Field<Int64>("Interval"));
                    Pattern.MaxOccurrences = Convert.ToInt32(tasks_dr.Field<Int64>("MaxOccurrences"));
                    Pattern.MonthOfYear = Convert.ToInt32(tasks_dr.Field<Int64>("MonthofYear"));
                    Pattern.DayOfMonth = Convert.ToInt32(tasks_dr.Field<Int64>("DayofMonth"));
 
                    System.DateTime? RecursUntil_d;
                    if (tasks_dr.Field<String>("RecursUntil") != "")
                    {
                        RecursUntil_d = Convert.ToDateTime(tasks_dr.Field<String>("RecursUntil"));                       
                    }                   
                    Pattern.RecursUntil = RecursUntil_d;
 
                    appointment.RecurrenceRule = new RecurrenceRule(Pattern);
                }
                this.appointments.Add(appointment);

Every appointment withput a freqeuncy is shown fine. Thanks
Rgards
Rene
ITA
Top achievements
Rank 1
 asked on 24 Apr 2012
1 answer
122 views
Hi,

Is it possible to add controls like textblock, buttons, etc... under a tab item?  I have an application I'm mocking up and I'd like to show the main function of the application in the 1st tab and rich content in other tabs.

Thank you!
Teo
Top achievements
Rank 1
 answered on 24 Apr 2012
1 answer
195 views
Hi,

I have a gridview that consists of mix data bound columns and custom template column. The custom template column are basically a check box column and a calendar column. I used the techniques from this example to create those custom column (using the CreateCellElement)

http://www.telerik.com/community/forums/wpf/gridview/tab-navigation-in-a-grid-with-a-button-column.aspx

The check box column works fine with tabbing to/from the column. However the issue is with the Calendar column, as the tabbing doesn’t get the focus in the calendar control inside the column, and it doesn’t move away from it to move to the next column. Instead the focus moves to the next control beside the grid.

Any advice how to accomplish a smooth tab navigation between all column, and have the focus land in the inner controls when it is a custom column?

Regards

public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
{
    cell.GotFocus += this.cell_GotFocus;
     
    var picker = cell.Content as RmpDatePicker ?? new RmpDatePicker()
                     {
                         HorizontalAlignment = HorizontalAlignment.Stretch
                     };
    this.BindingTarget = RmpDatePicker.SelectedDateProperty;
    picker.SetBinding(this.BindingTarget, this.CreateValueBinding());
    return picker;
}
private void cell_GotFocus(object sender, RoutedEventArgs e)
{
    var picker = (sender as GridViewCell).ChildrenOfType<RmpDatePicker>().FirstOrDefault();
         
    if (picker == null) return;
          
    picker.Focus();
    picker.HorizontalAlignment = HorizontalAlignment.Stretch;
}
private Binding CreateValueBinding()
{
    var valueBinding = new Binding
                           {
                               Mode = BindingMode.TwoWay,
                               NotifyOnValidationError = true,
                               ValidatesOnExceptions = true,
                               UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged,
                               Path = new PropertyPath(this.DataMemberBinding.Path.Path)
                           };
    return valueBinding;
}


Nedyalko Nikolov
Telerik team
 answered on 24 Apr 2012
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
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Bronze
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
Bronze
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?