Telerik Forums
UI for WPF Forum
3 answers
74 views
Hello,

I have a data bound Chart with zooming and scrolling enabled. There are lots of points on the chart and since it's a (DateTime) categorical chart, the X axis shows a LOT of ticks. 

chart.DefaultView.ChartArea.ZoomScrollSettingsX.MinZoomRange = range;
chart.DefaultView.ChartArea.ZoomScrollSettingsX.RangeStart = 0.0;
chart.DefaultView.ChartArea.ZoomScrollSettingsX.RangeEnd = range * 2;
chart.DefaultView.ChartArea.ZoomScrollSettingsX.ScrollMode = ScrollMode.ScrollAndZoom;
  
chart.DefaultView.ChartArea.AxisX.LabelStep = 1;
chart.DefaultView.ChartArea.AxisX.StepLabelLevelCount = 3;
chart.DefaultView.ChartArea.AxisX.MajorGridLinesVisibility = Visibility.Visible;
chart.DefaultView.ChartArea.AxisX.DefaultLabelFormat = "MMM yyyy";


The problem is that when fully zoomed out (RangeStart = 0.0 and RangeEnd = 1.0), the X-axis ticker labels start to overlap. Is there an event or some other way to adjust the AxisX.LabelStep when zooming in and out ?

I've also attached a screenshot of the problem.

Thanks!
Peshito
Telerik team
 answered on 24 Nov 2011
3 answers
285 views
Hi,

I have a replicated the docking layout that can be found at the very bottom of this page link http://www.telerik.com/help/wpf/raddocking-getting-started2.html .

How can I disable the documenthost items from being dockable in other pane groups other than its own?

I've had a look this following guide http://www.telerik.com/help/wpf/raddocking-how-to-implement-conditional-docking.html , however it works fine if you want to apply the restrictions to all of the panes in the top level docking control, but I only want the restrictions to apply when moving the items from the documenthost container. In short, I don't want any of the documenthost items to be dockable in any other group other than its own original group.

Are there any example of how I can apply restrictions to some pane groups and not to others depending on where the pane in question originated from? I've looked through all of the online documents and forums but I can't seem to find what I'm looking for other than the following:

Private Sub radDocking_PreviewShowCompass(ByVal sender As Object, ByVal e As Telerik.Windows.Controls.Docking.PreviewShowCompassEventArgs)
    e.Compass.IsLeftIndicatorVisible = False
    e.Compass.IsTopIndicatorVisible = False
End Sub

Like I said, this works fine if you want apply to restrictions to all pane groups. I need some way to detect which pane group is displaying the compass so that I can make the decision on which indicators are visible depending on the panel item in question.

Thanks very much for your time, any help will be greatly appreciated,

Rob
Konstantina
Telerik team
 answered on 24 Nov 2011
0 answers
77 views
 i am using  RadGridView Control and facing some problems :-

1) i am facing some problem when i am trying to export the data to HTML format. Actually i want to add 2-3 headings and a small paragraph about the data before the HTML table  and i am unable to do this.

2) Can u tell me that How can i do it?? Also how can i take control over radGridView's data so that i can make some changes in between the file before exporting it. I mean to say how can i manually iterate grid view's data.

3) Also i am unable to export my gridview's data to XML format..please tell me how can i do this???

4) One more thing to ask, actually if i do not want to show all the  columns in the file, when i am exporting the data,  to any format for say CSV..than how can i handle this??   
Vinod
Top achievements
Rank 1
 asked on 24 Nov 2011
9 answers
246 views
Hi, I'm trying to persist a RadWindow on my disk but when the persistence is restored, some visual infos missing...

Here is my xaml

<

 

telerik:RadWindow x:Class="com.christiegrp.Neuron.ClientApplication.PatientFileForm"

 

 

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:self="clr-namespace:com.christiegrp.Neuron.ClientApplication"

 

 

Height="778" Width="1059" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" SizeToContent="False" Name="Me"

 

 

telerik:PersistenceManager.StorageId="PatientFileForm" Loaded="Me_Loaded" PreviewClosed="Me_PreviewClosed">

 

 

 

<telerik:RadWindow.IconTemplate>

 

 

 

<DataTemplate>

 

 

 

<Image Source="Resources/Patient_48x48.png" Height="24" Width="24" Stretch="Fill" Margin="0 0 3 0" />

 

 

 

</DataTemplate>

 

 

 

</telerik:RadWindow.IconTemplate>

 

 

 

<telerik:RadWindow.Resources>

 

 

 

<ResourceDictionary>

 

 

 

<self:HospitalDate x:Key="hospitalDateConverter" />

 

 

 

<self:ActualPatientAge x:Key="patientAgeConverter" />

 

 

 

<self:GenderToBool x:Key="genderConverter" />

 

 

 

<self:BoolInverter x:Key="enabledConverter" />

 

 

 

<ResourceDictionary.MergedDictionaries>

 

 

 

<ResourceDictionary Source="PatientFileForm-Fr-Res.xaml"/>

 

 

 

<ResourceDictionary Source="pack://application:,,,/Resources;component/Neuron-Styles.xaml"/>

 

 

 

<ResourceDictionary Source="/Telerik.Windows.Controls.Navigation;component/Themes/GenericOfficeBlack.xaml"/>

 

 

 

</ResourceDictionary.MergedDictionaries>

 

 

 

</ResourceDictionary>

 

 

 

</telerik:RadWindow.Resources>

 

 

 

 

<Grid>

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="*"/>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition Height="Auto"/>

 

 

 

<RowDefinition Height="*"/>

 

 

 

</Grid.RowDefinitions>

 

 

 

 

<Image Name="imageLockUnlock" Source="Resources/Unlock_32x32.png" Height="24" Width="24" Margin="10" Grid.Column="1" />

 

 

 

 

<telerik:RadTabControl Margin="5" BackgroundVisibility="Collapsed" Grid.ColumnSpan="2" Grid.RowSpan="2" IsContentPreserved="True">

 

 

 

<telerik:RadTabItem>

 

 

 

<telerik:RadTabItem.Header>

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

<Image Source="Resources/PatientFile_32x32.png" Height="24" Width="24" />

 

 

 

<TextBlock Text="{StaticResource RadJacket}" Margin="3 0 0 0" VerticalAlignment="Center"/>

 

 

 

</StackPanel>

 

 

 

</telerik:RadTabItem.Header>

 

 

 

<Grid Margin="5">

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="*" />

 

 

 

<ColumnDefinition Width="*" />

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="*" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

</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="Horizontal" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Margin="5">

 

 

 

<telerik:RadButton Margin="0 0 5 0" IsEnabled="{Binding ElementName=Me, Path=IsReadOnly, Converter={StaticResource enabledConverter}}">

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

<Image Margin="5 0 0 0" Source="Resources/Patient_48x48.png" Height="24" Width="24" />

 

 

 

<TextBlock Margin="5" VerticalAlignment="Center" Text="{StaticResource OtherPatient}" />

 

 

 

</StackPanel>

 

 

 

</telerik:RadButton>

 

 

 

<telerik:RadButton Margin="0 0 5 0" IsEnabled="{Binding ElementName=Me, Path=IsReadOnly, Converter={StaticResource enabledConverter}}">

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

<Image Margin="5 0 0 0" Source="Resources/Search_32x32.png" Height="24" Width="24" />

 

 

 

<TextBlock Margin="5" VerticalAlignment="Center" Text="{StaticResource Search}" />

 

 

 

</StackPanel>

 

 

 

</telerik:RadButton>

 

 

 

<telerik:RadButton Margin="0 0 5 0" IsEnabled="{Binding ElementName=Me, Path=IsReadOnly, Converter={StaticResource enabledConverter}}">

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

<Image Margin="5 0 0 0" Source="Resources/Confirm_32x32.png" Height="24" Width="24" />

 

 

 

<TextBlock Margin="5" VerticalAlignment="Center" Text="{StaticResource OK}" />

 

 

 

</StackPanel>

 

 

 

</telerik:RadButton>

 

 

 

<telerik:RadButton Margin="0 0 5 0" IsEnabled="{Binding ElementName=Me, Path=IsReadOnly, Converter={StaticResource enabledConverter}}">

 

 

 

<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>

 

 

 

<telerik:RadButton>

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

<Image Margin="5 0 0 0" Source="Resources/Help_32x32.png" Height="24" Width="24" />

 

 

 

<TextBlock Margin="5" VerticalAlignment="Center" Text="{StaticResource Help}" />

 

 

 

</StackPanel>

 

 

 

</telerik:RadButton>

 

 

 

</StackPanel>

 

 

 

<GroupBox Grid.Column="0" Grid.Row="1" Margin="5" Header="{StaticResource GroupPatientHeader}" >

 

 

 

<Grid>

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="*"/>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="*" />

 

 

 

</Grid.RowDefinitions>

 

 

 

<TextBlock Grid.Column="0" Grid.Row="0" Text="{StaticResource PatientId}" Margin="5" />

 

 

 

<TextBlock Grid.Column="1" Grid.Row="0" Text="*" Foreground="Red" VerticalAlignment="Center" />

 

 

 

<TextBox Grid.Column="2" Grid.Row="0" Margin="5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.MasterRecordNumber}"/>

 

 

 

<TextBlock Grid.Column="0" Grid.Row="1" Text="{StaticResource LastName}" Margin="5" />

 

 

 

<TextBlock Grid.Column="1" Grid.Row="1" Text="*" Foreground="Red" VerticalAlignment="Center" />

 

 

 

<TextBox Grid.Column="2" Grid.Row="1" Margin="5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.LastName}"/>

 

 

 

<TextBlock Grid.Column="0" Grid.Row="2" Text="{StaticResource FirstName}" Margin="5" />

 

 

 

<TextBlock Grid.Column="1" Grid.Row="2" Text="*" Foreground="Red" VerticalAlignment="Center" />

 

 

 

<TextBox Grid.Column="2" Grid.Row="2" Margin="5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.FirstName}"/>

 

 

 

<TextBlock Grid.Column="0" Grid.Row="3" Text="{StaticResource BirthDate}" Margin="5" />

 

 

 

<TextBlock Grid.Column="1" Grid.Row="3" Text="*" Foreground="Red" VerticalAlignment="Center" />

 

 

 

<TextBox Grid.Column="2" Grid.Row="3" Margin="5 5 0 5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.BirthDate, Converter={StaticResource hospitalDateConverter}}"/>

 

 

 

<telerik:RadButton Grid.Column="3" Grid.Row="3" Margin="0 5 5 5" IsEnabled="{Binding ElementName=Me, Path=IsReadOnly, Converter={StaticResource enabledConverter}}">

 

 

 

<Image Source="Resources/Calendar_32x32.png" Height="18" Width="18" />

 

 

 

</telerik:RadButton>

 

 

 

<TextBlock Grid.Column="4" Grid.Row="3" Text="{StaticResource Age}" Margin="5"/>

 

 

 

<TextBox Grid.Column="5" Grid.Row="3" Margin="5" IsReadOnly="True" Text="{Binding ElementName=Me, Path=Patient.BirthDate, Converter={StaticResource patientAgeConverter}}"/>

 

 

 

<TextBlock Grid.Column="0" Grid.Row="4" Text="{StaticResource Sex}" Margin="5"/>

 

 

 

<StackPanel Orientation="Horizontal" Grid.Column="2" Grid.Row="4" Grid.ColumnSpan="3" VerticalAlignment="Center" IsEnabled="{Binding ElementName=Me, Path=IsReadOnly, Converter={StaticResource enabledConverter}}">

 

 

 

<RadioButton Content="{StaticResource Female}" GroupName="Gender" IsChecked="{Binding ElementName=Me, Path=Patient.Gender, Converter={StaticResource genderConverter}, ConverterParameter=F}" Margin="5"/>

 

 

 

<RadioButton Content="{StaticResource Male}" GroupName="Gender" IsChecked="{Binding ElementName=Me, Path=Patient.Gender, Converter={StaticResource genderConverter}, ConverterParameter=M}" Margin="5"/>

 

 

 

<RadioButton Content="{StaticResource Indeterminate}" GroupName="Gender" Margin="5"/>

 

 

 

</StackPanel>

 

 

 

<GroupBox Grid.Column="0" Grid.Row="7" Grid.ColumnSpan="6" Margin="10" Header="{StaticResource Address}">

 

 

 

<self:AddressControl x:Name="addressControl" Margin="5" />

 

 

 

</GroupBox>

 

 

 

<TextBlock Grid.Column="0" Grid.Row="5" Text="{StaticResource ExternalPatientId}" Margin="5"/>

 

 

 

<TextBox Grid.Column="2" Grid.Row="5" Margin="5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.ExternalRecordNumber}"/>

 

 

 

<TextBlock Grid.Column="0" Grid.Row="6" Text="{StaticResource Language}" Margin="5"/>

 

 

 

<telerik:RadComboBox Grid.Column="2" Grid.Row="6" Margin="5" SelectedIndex="{Binding ElementName=Me, Path=Patient.Language}" IsEnabled="{Binding ElementName=Me, Path=IsReadOnly, Converter={StaticResource enabledConverter}}">

 

 

 

<telerik:RadComboBoxItem Content="{StaticResource LanguageFr}"/>

 

 

 

<telerik:RadComboBoxItem Content="{StaticResource LanguageEn}"/>

 

 

 

</telerik:RadComboBox>

 

 

 

<GroupBox Grid.Column="0" Grid.Row="8" Grid.ColumnSpan="6" Margin="10 0 10 10" Header="{StaticResource MinistryInsurance}">

 

 

 

<Grid>

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="*"/>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="*"/>

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition Height="*"/>

 

 

 

<RowDefinition Height="*"/>

 

 

 

<RowDefinition Height="*"/>

 

 

 

</Grid.RowDefinitions>

 

 

 

<TextBlock Text="{StaticResource Number}" Grid.Column="0" Grid.Row="0" Margin="5" />

 

 

 

<TextBlock Text="*" Grid.Column="1" Grid.Row="0" Foreground="Red" VerticalAlignment="Center" />

 

 

 

<TextBox Grid.Column="2" Grid.Row="0" Grid.ColumnSpan="4" Margin="5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.HealthCareNumber}"/>

 

 

 

<TextBlock Text="{StaticResource Expiration}" Grid.Column="0" Grid.Row="1" Margin="5"/>

 

 

 

<TextBox Grid.Column="2" Grid.Row="1" Margin="5 5 0 5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.HealthCareExpiration}"/>

 

 

 

<telerik:RadButton Grid.Column="3" Grid.Row="1" Margin="0 5 5 5" IsEnabled="{Binding ElementName=Me, Path=IsReadOnly, Converter={StaticResource enabledConverter}}">

 

 

 

<Image Source="Resources/Calendar_32x32.png" Height="18" Width="18" />

 

 

 

</telerik:RadButton>

 

 

 

<TextBlock Text="{StaticResource VersionCode}" Grid.Column="4" Grid.Row="1" Margin="5"/>

 

 

 

<TextBox Grid.Column="5" Grid.Row="1" Margin="5" IsEnabled="False" Text="{Binding ElementName=Me, Path=Patient.VersionCode}"/>

 

 

 

<TextBlock Text="{StaticResource Province}" Grid.Column="0" Grid.Row="2" Margin="5" />

 

 

 

<TextBlock Text="*" Grid.Column="1" Grid.Row="2" Foreground="Red" VerticalAlignment="Center" />

 

 

 

<telerik:RadComboBox Name="radComboBoxProvince" Grid.Column="2" Grid.Row="2" Grid.ColumnSpan="4" Margin="5" SelectedValue="{Binding ElementName=Me, Path=Patient.HealthCareProvinceGuid}" SelectedValuePath="TheGuid" DisplayMemberPath="Name" IsEnabled="{Binding ElementName=Me, Path=IsReadOnly, Converter={StaticResource enabledConverter}}"/>

 

 

 

</Grid>

 

 

 

</GroupBox>

 

 

 

</Grid>

 

 

 

</GroupBox>

 

 

 

 

<StackPanel Orientation="Vertical" Grid.Column="1" Grid.Row="1" Margin="0">

 

 

 

<GroupBox Margin="5" Header="{StaticResource GroupPhonesEmailHeader}">

 

 

 

<Grid>

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="*"/>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="*"/>

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition Height="*"/>

 

 

 

<RowDefinition Height="Auto"/>

 

 

 

<RowDefinition Height="Auto"/>

 

 

 

</Grid.RowDefinitions>

 

 

 

<self:PhonesControl x:Name="phonesControl" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="4" Margin="5"></self:PhonesControl>

 

 

 

<TextBlock Grid.Column="0" Grid.Row="1" Text="{StaticResource Home}" Margin="5" />

 

 

 

<TextBox Grid.Column="1" Grid.Row="1" Margin="5" Text="{Binding ElementName=Me, Path=HomePhone}" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}"/>

 

 

 

<TextBlock Grid.Column="2" Grid.Row="1" Text="{StaticResource Work}" Margin="5" />

 

 

 

<TextBox Grid.Column="3" Grid.Row="1" Margin="5" Text="{Binding ElementName=Me, Path=WorkPhone}" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}"/>

 

 

 

<TextBlock Grid.Column="0" Grid.Row="2" Text="{StaticResource Email}" Margin="5" />

 

 

 

<TextBox Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="4" Margin="5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.EmailAddress}"/>

 

 

 

</Grid>

 

 

 

</GroupBox>

 

 

 

<GroupBox Margin="5" Header="{StaticResource GroupConjointHeader}">

 

 

 

<Grid>

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="*"/>

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition />

 

 

 

<RowDefinition />

 

 

 

</Grid.RowDefinitions>

 

 

 

<TextBlock Text="{StaticResource LastName}" Margin="5" />

 

 

 

<TextBox Grid.Column="1" Grid.Row="0" Margin="5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.SpouseLastName}"/>

 

 

 

<TextBlock Text="{StaticResource FirstName}" Grid.Column="0" Grid.Row="1" Margin="5"/>

 

 

 

<TextBox Grid.Column="1" Grid.Row="1" Margin="5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.SpouseFirstName}"/>

 

 

 

</Grid>

 

 

 

</GroupBox>

 

 

 

<GroupBox Margin="5" Header="{StaticResource GroupFatherHeader}">

 

 

 

<Grid>

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="*"/>

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition />

 

 

 

<RowDefinition />

 

 

 

</Grid.RowDefinitions>

 

 

 

<TextBlock Text="{StaticResource LastName}" Margin="5"/>

 

 

 

<TextBox Grid.Column="1" Grid.Row="0" Margin="5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.FatherLastName}"/>

 

 

 

<TextBlock Text="{StaticResource FirstName}" Grid.Column="0" Grid.Row="1" Margin="5"/>

 

 

 

<TextBox Grid.Column="1" Grid.Row="1" Margin="5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.FatherFirstName}"/>

 

 

 

</Grid>

 

 

 

</GroupBox>

 

 

 

<GroupBox Margin="5" Header="{StaticResource GroupMotherHeader}">

 

 

 

<Grid>

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="Auto"/>

 

 

 

<ColumnDefinition Width="*"/>

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition />

 

 

 

<RowDefinition />

 

 

 

</Grid.RowDefinitions>

 

 

 

<TextBlock Text="{StaticResource LastName}" Margin="5" HorizontalAlignment="Left" />

 

 

 

<TextBox Grid.Column="1" Grid.Row="0" Margin="5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.MotherLastName}"/>

 

 

 

<TextBlock Text="{StaticResource FirstName}" Grid.Column="0" Grid.Row="1" Margin="5"/>

 

 

 

<TextBox Grid.Column="1" Grid.Row="1" Margin="5" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}" Text="{Binding ElementName=Me, Path=Patient.MotherFirstName}"/>

 

 

 

</Grid>

 

 

 

</GroupBox>

 

 

 

</StackPanel>

 

 

 

<GroupBox Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" Margin="5" Header="{StaticResource GroupCommentsHeader}" HorizontalContentAlignment="Stretch">

 

 

 

<Grid Margin="5">

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="*" />

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<TextBox Height="100" Margin="5 5 0 5" Text="{Binding ElementName=Me, Path=Patient.Comments}" IsReadOnly="{Binding ElementName=Me, Path=IsReadOnly}"/>

 

 

 

<StackPanel Orientation="Vertical" Grid.Column="1" Margin="5">

 

 

 

<telerik:RadButton IsEnabled="{Binding ElementName=Me, Path=IsReadOnly, Converter={StaticResource enabledConverter}}">

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

<Image Margin="5 0 0 0" Source="Resources/Text_32x32.png" Height="24" Width="24" />

 

 

 

<TextBlock Margin="5" VerticalAlignment="Center" Text="{StaticResource Text}" />

 

 

 

</StackPanel>

 

 

 

</telerik:RadButton>

 

 

 

</StackPanel>

 

 

 

</Grid>

 

 

 

</GroupBox>

 

 

 

</Grid>

 

 

 

</telerik:RadTabItem>

 

 

 

<telerik:RadTabItem>

 

 

 

<telerik:RadTabItem.Header>

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

<Image Source="Resources/RadiologyFile_32x32.png" Height="24" Width="24" />

 

 

 

<TextBlock Text="{StaticResource RadiologyFile}" Margin="3 0 0 0" VerticalAlignment="Center"/>

 

 

 

</StackPanel>

 

 

 

</telerik:RadTabItem.Header>

 

 

 

</telerik:RadTabItem>

 

 

 

<telerik:RadTabItem>

 

 

 

<telerik:RadTabItem.Header>

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

<Image Source="Resources/Allergy_32x32.png" Height="24" Width="24" />

 

 

 

<TextBlock Text="{StaticResource Allergies}" Margin="3 0 0 0" VerticalAlignment="Center"/>

 

 

 

</StackPanel>

 

 

 

</telerik:RadTabItem.Header>

 

 

 

</telerik:RadTabItem>

 

 

 

<telerik:RadTabItem>

 

 

 

<telerik:RadTabItem.Header>

 

 

 

<StackPanel Orientation="Horizontal">

 

 

 

<Image Source="Resources/Form_32x32.png" Height="24" Width="24" />

 

 

 

<TextBlock Text="{StaticResource Forms}" Margin="3 0 0 0" VerticalAlignment="Center"/>

 

 

 

</StackPanel>

 

 

 

</telerik:RadTabItem.Header>

 

 

 

</telerik:RadTabItem>

 

 

 

</telerik:RadTabControl>

 

 

 

</Grid>

 

 

</

 

telerik:RadWindow>

Here is my code

 

 

IsolatedStorageProvider storage = new IsolatedStorageProvider();

 

storage.SaveToStorage();

 

storage.LoadFromStorage();

also, if you look at picture 3 and 4, you can see an expanded RadOutlookBar, I minimized my RadOutlookBar and call a SaveToStorage. In picture 4 it's when I call a LoadFromStorage and expand my RadOutlookbar.

Tina Stancheva
Telerik team
 answered on 24 Nov 2011
3 answers
72 views
Hello:

I update to Q3 Today and when run project and all icons in tabs show in small size.

When resize windows the icons only show in small size.

In Q2 the icons show ok (medium, large and small if configurate).

Thanks

Excuse me english
Viktor Tsvetkov
Telerik team
 answered on 24 Nov 2011
3 answers
67 views
i want to show cursor into 1st column when i click on the new button and
 grid contain a check box ,
When new record is added, the Active checkbox is not displayed. Please make sure it is displayed with DEFAULT: checked (active=True)

Grid html

  <Grid>       
        <UI:ModuleControl x:Name="mdUser"
                          Title="Users"
                          Margin="8,0" VerticalAlignment="Top">
            
            <UI:MaestroGridView x:Name="grdUsers" 
                                Margin="0 8 0 0" AutoGenerateColumns="False" IsReadOnly="True" 
                         Height="460"
                >
                <UI:MaestroGridView.Columns >
                    <telerik:GridViewDataColumn Header= "User Name"
                                                HeaderTextAlignment="Center"
                                                DataMemberBinding="{Binding appusers_id}"
                                                Width="220"  IsVisible="False"/>
                    <telerik:GridViewDataColumn Header= "User Name"
                                                HeaderTextAlignment="Center"
                                                DataMemberBinding="{Binding appuser_name}"
                                                Width="220" />
                    <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding approle_id}"
                                    UniqueName="Roles"
                                                    IsComboBoxEditable="True"
                                                    Header= "Roles"
                                    SelectedValueMemberPath="approle_id"
                                    DisplayMemberPath="approle_name" />
                  
                    <telerik:GridViewDataColumn Header="Active"
                                                HeaderTextAlignment="Center"
                                                DataMemberBinding="{Binding IsActive}"
                                                Width="100" />
                </UI:MaestroGridView.Columns>
            </UI:MaestroGridView>
            


        </UI:ModuleControl>
        
    </Grid>

   Private Sub tbUserManagement_ButtonNewClicked(ByVal sender As Object, ByVal e As System.EventArgs) Handles tbUserManagement.ButtonNewClicked
        grdUsers.IsReadOnly = "False"
        Me.grdUsers.BeginInsert()
    End Sub


please reply soon
vikas gupta
Top achievements
Rank 1
 answered on 24 Nov 2011
1 answer
49 views
I have a WPF Map control in a UserControl initially having Visibility set to Hidden.  The provider for the map is set while its containing parent UserControl is hidden, and the Window holding the UserControl hangs for a long time (longer for lower Internet bandwith) waiting for the Provider setter to execute.  When I comment out setting the Provider property, the Window/UserControl loads quickly.  I tried to defer setting the provider until the UserControl visibility changes, but the setter is still slow and hangs the application.  Is there a way to set the provider on a separate thread or otherwise improve the performance of setting the Provider property?
Andrey
Telerik team
 answered on 24 Nov 2011
9 answers
322 views
When I set Width="*" on any of my RadGridView columns, I cannot make the column smaller. I can make it bigger, but not smaller. 

The GridView I'm working with usually doesn't fill all available space, so I want to set a column width to * to make sure that it fills all remaining space, however on occasion the * column contains data that is too long and gets clipped. When users resize the column bigger to view the data, they cannot make it small again to view the rest of the data.

Is there a workaround for this? I don't want to use word wrapping.

I'm using RadControls for WPF, v.2011.1.419.40
Chris
Top achievements
Rank 1
 answered on 23 Nov 2011
2 answers
185 views
Hello,

I would like to apply logical scrolling to the ScrollViewer RepeatButtons, so I can scroll by one RadTabItem at a time, instead of by a set physical measurement. Out of the box, RadTabControl appears to support logical scrolling for RadTabItems when using the mouse scroll wheel. It even includes animation when scrolling from one RadTabItem to the next. I would like to replicate this same behavior when a user clicks on the ScrollViewer RepeatButtons. Any ideas how to do this?

Thanks,
Frankie
Frankie
Top achievements
Rank 1
 answered on 23 Nov 2011
2 answers
123 views
Hello,

I am trying to use the Persistence Framework to persist a custom object, and am hoping to confirm some of the behaviour that I am seeing.

If I do not specify a custom property provider for my type, I observe the following:

  • Only properties that are primitive types get persisted.
  • However, nullable types are not supported.  You cannot return null for ProvideValue.
  • Properties that are complex types (i.e. other classes) do not get persisted.
  • Implementing ISerializable my classes (top-level or property classes) makes no difference!  (I.e. ISerializable.GetObjectData never gets called.)

 

If I do specify a custom property provider, I observe the following:

 

  • Only properties returned in GetCustomProperties get persisted.  This means, that I need to specify (and support) every property that I want persisted - even ones of primitive types.
  • For complex properties, I can create proxy objects to be saved.  But if these property types themselves have complex properties, it seems I need to package up the entire property tree in the proxy for my top-level property.  Is this true??!
  • Again, implementing ISerializable makes no difference as it never gets called.  This would be a nice way to serialize deep property structures as described in the previous point.

Since the persistence framework has a method that returns a Stream for a particular object, it surprises me that implementing ISerializable on the object I wish to persist does not help.  Am I missing something? 

Finally, if you cannot implement ISerializable, how do you go about persisting deep structures using the custom property provider? 

If someone could help clarify these observations, and perhaps offer a suggeestion about these deep property structures, that would be great!!

Thanks,
Mark

Mark
Top achievements
Rank 1
 answered on 23 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?