Telerik Forums
UI for WPF Forum
1 answer
236 views
Hi,

I have a docking application and I want to resize my RadSplitContainer to have a 8.5 X 11 look because inside of it, I want to display scanned documents. When I try to do it, look at the picture what happen, it's look like to content of the RadSplitContainer is resizing but border become present...

Also, can you tell me if it's possible to block users to resize a RadPane, a RadPaneGroup or a RadSplitContainer ?

Here is the XAML:

<

 

Window x:Class="com.christiegrp.Neuron.ClientApplication.DictationForm"

 

 

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"

 

 

xmlns:telerikRibbonBar="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar"

 

 

Title="DictationForm" Name="Me" WindowState="Maximized"

 

 

telerik:PersistenceManager.StorageId="DictationForm">

 

 

 

 

<!--

 

PreviewClosed="Me_PreviewClosed"

SizeToContent="False"

-->

<!--

<telerik:RadWindow.IconTemplate>

<DataTemplate>

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

</DataTemplate>

</telerik:RadWindow.IconTemplate>

-->

 

 

<Window.Resources>

 

 

 

<ResourceDictionary>

 

 

 

<helper:LetterFormatWidth x:Key="letterFormatWidth" />

 

 

 

<ResourceDictionary.MergedDictionaries>

 

 

 

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

 

 

 

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

 

 

 

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

 

 

 

</ResourceDictionary.MergedDictionaries>

 

 

 

</ResourceDictionary>

 

 

 

</Window.Resources>

 

 

 

<Grid Name="gridRoot">

 

 

 

<Grid.RowDefinitions>

 

 

 

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

 

 

 

<telerikRibbonBar:RadRibbonBar Name="radRibbonBar" Margin="10 10 10 0" telerik:KeyTipService.IsKeyTipsEnabled="True" MinimizeButtonVisibility="Visible" ApplicationName="Neuron" IsMinimized="True" ApplicationButtonImageSource="Resources/Neuron_32x32.png">

 

 

 

<telerikRibbonBar:RadRibbonBar.Effect>

 

 

 

<DropShadowEffect />

 

 

 

</telerikRibbonBar:RadRibbonBar.Effect>

 

 

 

<telerikRibbonBar:RadRibbonBar.ApplicationMenu>

 

 

 

<telerikRibbonBar:ApplicationMenu telerik:KeyTipService.AccessText="F">

 

 

 

<telerikRibbonBar:ApplicationMenu.Content>

 

 

 

<StackPanel Width="300">

 

 

 

<telerikRibbonBar:RadGroupHeader Content="Menu" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="1. Option..." HorizontalAlignment="Stretch" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="2. Option..." HorizontalAlignment="Stretch" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="3. Option..." HorizontalAlignment="Stretch" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="4. Option..." HorizontalAlignment="Stretch" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="5. Option..." HorizontalAlignment="Stretch" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="6. Option..." HorizontalAlignment="Stretch" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="7. Option..." HorizontalAlignment="Stretch" />

 

 

 

</StackPanel>

 

 

 

</telerikRibbonBar:ApplicationMenu.Content>

 

 

 

<telerikRibbonBar:ApplicationMenu.FooterContent>

 

 

 

<StackPanel Height="25" Orientation="Horizontal">

 

 

 

<telerik:RadButton Width="106" Height="22" Margin="3 0" Click="radButtonQuit_Click">

 

 

 

<telerik:RadButton.Content>

 

 

 

<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="3 0 5 0">

 

 

 

<Image Width="16" Height="16" Source="Resources/Exit_32x32.png" />

 

 

 

<TextBlock Margin="4 0 0 0" VerticalAlignment="Center" Text="{StaticResource Quit}" />

 

 

 

</StackPanel>

 

 

 

</telerik:RadButton.Content>

 

 

 

</telerik:RadButton>

 

 

 

</StackPanel>

 

 

 

</telerikRibbonBar:ApplicationMenu.FooterContent>

 

 

 

<telerikRibbonBar:RadRibbonButton Text="1. Option..." />

 

 

 

<telerikRibbonBar:Separator />

 

 

 

<telerikRibbonBar:RadRibbonButton Text="2. Option..." />

 

 

 

<telerikRibbonBar:RadRibbonButton Text="3. Option..." />

 

 

 

<telerikRibbonBar:Separator />

 

 

 

<telerikRibbonBar:RadRibbonButton Text="4. Option..." />

 

 

 

<telerikRibbonBar:RadRibbonButton Text="5. Option..." />

 

 

 

<telerikRibbonBar:RadRibbonButton Text="6. Option..." />

 

 

 

<telerikRibbonBar:Separator />

 

 

 

<telerikRibbonBar:RadRibbonButton Text="7. Option..." LargeImage="Resources/Exit_32x32.png" />

 

 

 

</telerikRibbonBar:ApplicationMenu>

 

 

 

</telerikRibbonBar:RadRibbonBar.ApplicationMenu>

 

 

 

<telerikRibbonBar:RadRibbonBar.QuickAccessToolBar>

 

 

 

<telerikRibbonBar:QuickAccessToolBar>

 

 

 

<!--

 

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Departments_32x32.png" SnapsToDevicePixels="True"/>

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Billing_32x32.png" SnapsToDevicePixels="True"/>

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Receivables_32x32.png" SnapsToDevicePixels="True"/>

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Reports_32x32.png" SnapsToDevicePixels="True"/>

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Files_32x32.png" SnapsToDevicePixels="True"/>

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Configuration_32x32.png" SnapsToDevicePixels="True"/>

-->

 

 

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Exit_32x32.png" SnapsToDevicePixels="True" Click="radButtonQuit_Click"/>

 

 

 

</telerikRibbonBar:QuickAccessToolBar>

 

 

 

</telerikRibbonBar:RadRibbonBar.QuickAccessToolBar>

 

 

 

</telerikRibbonBar:RadRibbonBar>

 

 

 

<telerik:RadDocking Grid.Row="1" Margin="10">

 

 

 

<telerik:RadDocking.Effect>

 

 

 

<DropShadowEffect />

 

 

 

</telerik:RadDocking.Effect>

 

 

 

<telerik:RadDocking.DocumentHost>

 

 

 

<telerik:RadSplitContainer Name="splitContainerRight" telerik:DockingPanel.InitialSize="{Binding ElementName=webDocuments, Path=ActualHeight, Converter={StaticResource letterFormatWidth}}" Width="{Binding ElementName=webDocuments, Path=ActualHeight, Converter={StaticResource letterFormatWidth}}">

 

 

 

<telerik:RadPaneGroup>

 

 

 

<telerik:RadPane Title="{StaticResource ScannedDocs}" CanFloat="{Binding ElementName=Me, Path=IsDockable}" CanUserPin="{Binding ElementName=Me, Path=IsDockable}" CanUserClose="False">

 

 

 

<WebBrowser Name="webDocuments" LoadCompleted="webDocuments_LoadCompleted" />

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadPaneGroup>

 

 

 

</telerik:RadSplitContainer>

 

 

 

</telerik:RadDocking.DocumentHost>

 

 

 

<telerik:RadSplitContainer InitialPosition="DockedRight" Orientation="Vertical">

 

 

 

<telerik:RadSplitContainer InitialPosition="DockedRight" Orientation="Horizontal">

 

 

 

<!-- Controls -->

 

 

 

<telerik:RadPaneGroup Name="radPaneControls" Height="138" MinHeight="{Binding Height}" MaxHeight="{Binding Height}">

 

 

 

<telerik:RadPane Title="{StaticResource Controls}" CanDockInDocumentHost="False" CanFloat="{Binding ElementName=Me, Path=IsDockable}" CanUserPin="{Binding ElementName=Me, Path=IsDockable}" CanUserClose="False">

 

 

 

<Grid>

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

</Grid.RowDefinitions>

 

 

 

<helper:NavigationControl Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3" Name="dnDocuments" TextPrefix="{StaticResource Documents}" NavigationChangedEvent="dnDocuments_NavigationChanged" Margin="5" Buttons="All"/>

 

 

 

<helper:NavigationControl Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" Name="dnExams" TextPrefix="{StaticResource Exams}" NavigationChangedEvent="dnExams_NavigationChanged" Margin="5" Buttons="All"/>

 

 

 

<CheckBox Grid.Column="0" Grid.Row="2" Name="ckUrgent" Margin="5" Content="{StaticResource Urgent}" />

 

 

 

<CheckBox Grid.Column="1" Grid.Row="2" Name="ckSign" Margin="5" Content="{StaticResource Sign}" />

 

 

 

<CheckBox Grid.Column="2" Grid.Row="2" Name="ckOnHold" Margin="5" Content="{StaticResource FilmsPending}" />

 

 

 

</Grid>

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadPaneGroup>

 

 

 

<!-- Audio -->

 

 

 

<telerik:RadPaneGroup>

 

 

 

<telerik:RadPane Name="radPaneAudio" Height="138" MinHeight="{Binding Height}" MaxHeight="{Binding Height}" CanDockInDocumentHost="False" CanFloat="{Binding ElementName=Me, Path=IsDockable}" CanUserPin="{Binding ElementName=Me, Path=IsDockable}" CanUserClose="False">

 

 

 

<!--<telerik:RadButton Grid.Column="2" Grid.Row="0" Grid.RowSpan="3" Content="Alain" />-->

 

 

 

<WindowsFormsHost Name="RecorderContainer" />

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadPaneGroup>

 

 

 

</telerik:RadSplitContainer>

 

 

 

<!-- Panel containing visit infos -->

 

 

 

<telerik:RadPaneGroup>

 

 

 

<telerik:RadPane Title="{StaticResource VisitInfos}" CanDockInDocumentHost="False" CanFloat="{Binding ElementName=Me, Path=IsDockable}" CanUserPin="{Binding ElementName=Me, Path=IsDockable}" CanUserClose="False">

 

 

 

<Grid Margin="5">

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

<ColumnDefinition Width="*" />

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

<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="*" />

 

 

 

<RowDefinition Height="*" />

 

 

 

</Grid.RowDefinitions>

 

 

 

<!-- Row #0 -->

 

 

 

<Label BorderThickness="1" BorderBrush="Black" Grid.Column="0" Grid.Row="0" Name="lPatientMRN" Margin="0 2 2 2" Foreground="Green" FontSize="14" FontWeight="Bold" Content="N/A" />

 

 

 

<Label BorderThickness="1" BorderBrush="Black" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2" Name="lPatientName" Margin="2" Foreground="Green" FontSize="14" FontWeight="Bold" Content="N/A" />

 

 

 

<Label BorderThickness="1" BorderBrush="Black" Grid.Column="3" Grid.Row="0" Name="lGender" Margin="2" Foreground="Green" FontSize="14" FontWeight="Bold" Content="M" />

 

 

 

<Label BorderThickness="1" BorderBrush="Black" Grid.Column="4" Grid.Row="0" Name="lPHN" Margin="2" Foreground="Green" FontSize="14" FontWeight="Bold" Content="N/A" />

 

 

 

<Label BorderThickness="1" BorderBrush="Black" Grid.Column="5" Grid.Row="0" Grid.ColumnSpan="3" Name="lPatientAge" Foreground="Green" Margin="2 2 0 2" FontSize="14" FontWeight="Bold" Content="N/A" />

 

 

 

<!-- Row #1 -->

 

 

 

<Label Grid.Column="0" Grid.Row="1" Content="{StaticResource Date}" HorizontalAlignment="Right" Margin="0 2 2 2" />

 

 

 

<TextBox Name="txtVisitDate" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2" Margin="2" IsEnabled="False" />

 

 

 

<Label Grid.Column="3" Grid.Row="1" Content="{StaticResource Visit}" HorizontalAlignment="Right" Margin="2" />

 

 

 

<TextBox Name="txtVisitNumber" Grid.Column="4" Grid.Row="1" Grid.ColumnSpan="3" Margin="2 2 0 2" IsEnabled="False" />

 

 

 

<!-- Row #2 -->

 

 

 

<Label Grid.Column="0" Grid.Row="2" Content="{StaticResource Exams}" HorizontalAlignment="Right" Margin="0 2 2 2" />

 

 

 

<TextBox Name="txtExams" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="6" Margin="2 2 0 2" IsEnabled="False" />

 

 

 

<!-- Row #3 -->

 

 

 

<Label Grid.Column="0" Grid.Row="3" Content="{StaticResource RefPhysician}" HorizontalAlignment="Right" Margin="0 2 2 2" />

 

 

 

<TextBox Name="txtRefPhysician" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="5" Margin="2 2 0 2" IsEnabled="False" />

 

 

 

<telerik:RadButton Grid.Column="6" Grid.Row="3" Margin="2 2 0 2" Name="btnPhone" Click="btnPhone_Click">

 

 

 

<Image Height="18" Width="18" SnapsToDevicePixels="True" Source="Resources/Phone_32x32.png" />

 

 

 

</telerik:RadButton>

 

 

 

<!-- Row #4 -->

 

 

 

<Label Grid.Column="0" Grid.Row="4" Content="{StaticResource Technician}" HorizontalAlignment="Right" Margin="0 2 2 2" />

 

 

 

<TextBox Name="txtTech" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="6" Margin="2 2 0 2" IsEnabled="False" />

 

 

 

<!-- Row #5 -->

 

 

 

<Label Grid.Column="0" Grid.Row="5" Content="{StaticResource Comments}" HorizontalAlignment="Right" Margin="0 2 2 2" />

 

 

 

<TextBox Name="txtComments" Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="6" Margin="2 2 0 2" IsEnabled="False" />

 

 

 

<!-- Row #6 -->

 

 

 

<Label Grid.Column="0" Grid.Row="6" Content="{StaticResource Note}" HorizontalAlignment="Right" Margin="0 2 2 2" />

 

 

 

<TextBox Name="txtNote" Grid.Column="1" Grid.Row="6" Grid.ColumnSpan="6" Margin="2 2 0 2" IsEnabled="False" />

 

 

 

</Grid>

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadPaneGroup>

 

 

 

<!-- Old reports -->

 

 

 

<telerik:RadPaneGroup>

 

 

 

<telerik:RadPane Title="{StaticResource OldReports}" CanDockInDocumentHost="False" CanFloat="{Binding ElementName=Me, Path=IsDockable}" CanUserPin="{Binding ElementName=Me, Path=IsDockable}" CanUserClose="False">

 

 

 

<Grid Margin="5">

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition Height="*" />

 

 

 

<RowDefinition Height="*" />

 

 

 

</Grid.RowDefinitions>

 

 

 

<telerik:RadGridView Name="gridHistorical" Margin="0 0 0 2" Grid.Row="0" IsSynchronizedWithCurrentItem="True" Height="Auto" Width="Auto" IsReadOnly="True" SelectionMode="Single" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False" ShowGroupPanel="False" SelectionUnit="FullRow">

 

 

 

<telerik:RadGridView.Columns>

 

 

 

<telerik:GridViewDataColumn Header="{StaticResource Date}" HeaderTextAlignment="Center" TextAlignment="Center" IsFilterable="False" />

 

 

 

<telerik:GridViewDataColumn Header="{StaticResource Exams}" HeaderTextAlignment="Left" TextAlignment="Left" IsFilterable="False" />

 

 

 

<telerik:GridViewDataColumn Header="{StaticResource Accession}" HeaderTextAlignment="Center" TextAlignment="Center" IsFilterable="False" />

 

 

 

<telerik:GridViewDataColumn Header="{StaticResource Status}" HeaderTextAlignment="Center" TextAlignment="Center" IsFilterable="False" />

 

 

 

</telerik:RadGridView.Columns>

 

 

 

</telerik:RadGridView>

 

 

 

<TextBox Name="rtbPreviousReport" Margin="0 2 0 0" Grid.Row="1" Text="" IsEnabled="False" />

 

 

 

</Grid>

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadPaneGroup>

 

 

 

<!-- Current report -->

 

 

 

<telerik:RadPaneGroup>

 

 

 

<telerik:RadPane Title="{StaticResource CurrentReport}" CanDockInDocumentHost="False" CanFloat="{Binding ElementName=Me, Path=IsDockable}" CanUserPin="{Binding ElementName=Me, Path=IsDockable}" CanUserClose="False">

 

 

 

<TextBox Name="rtbCurrentReport" Margin="5" Text="" IsReadOnly="False" />

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadPaneGroup>

 

 

 

</telerik:RadSplitContainer>

 

 

 

</telerik:RadDocking>

 

 

 

</Grid>

 

 

 

</Window>

 

Miroslav Nedyalkov
Telerik team
 answered on 21 Nov 2011
0 answers
118 views
Hello,
Could anybody post me a demo about RadTreeListView binding DataRow in code behind?
Thanks!

Best Wishes,
Sky
Yu
Top achievements
Rank 1
 asked on 21 Nov 2011
7 answers
142 views
Hi,

When I have non-contiguous values for X axis, the chart fills in the gaps.

ie: 2011.50, 2011.51, 2011.52, 2012,01, 2012.02...

The Chart adds values for : 2011.53, 2011.54, 2011.55, etc...

Is it possible to tell the Chart NOT to fill those gaps ?

Thanks !

Michel

Nikolay
Telerik team
 answered on 21 Nov 2011
1 answer
194 views
I have been looking but I haven't found yet where I can change the font format (color, style, size, etc) of a font from selected text within the radrichtextbox. I wish to do this programmatically in vb.net. I know this is pretty straightforward, but can someone point me in the right direction?

If the user has the text "this is only a test" in the richtextbox, and wishes to highlight the word "only" with their mouse and change the color and font family/size to Arial 14pt, blue color by clicking button, how can I do this directly in code for the button click event?

Don't want to use any ribbon controls or font dialogs at this time, just trying to understand which classes/methods involved.


Thanks
Boby
Telerik team
 answered on 21 Nov 2011
3 answers
151 views
Hello Support
I have used an RadTreeview
<telerik:RadTreeView x:Name="radTreeView" Margin="8" IsTriStateMode="true" IsOptionElementsEnabled="True" ItemsOptionListType="CheckList" DataContext="{StaticResource dataSetProvider}" ItemsSource="{Binding Group}" ItemTemplate="{StaticResource MasterTemplate}">
</telerik:RadTreeView>

It looks like
A
  A.1
  A.2
  A.3
B
  B.1
  B.2

Now while saving the information user has checked on checkboxes for example A.1 & A.2 only
When he revisits the screen I need to show the checkboxes of A.1 & A.2 has checked. How to do this? Tried many of your forums
all the references is pointing towards following line of code.
for (int i = 0; i < rdGroups.radTreeView.Items.Count; i++)
 {
     RadTreeViewItem container = rdGroups.radTreeView.ItemContainerGenerator.ContainerFromIndex(i) as RadTreeViewItem;
 
     for (int x = 0; x < container.Items.Count; x++)
     {              
        if ((container.Items[x] as System.Data.DataRowView).Row.ItemArray[0].ToString() == strLocationIds[j])
        {
          RadTreeViewItem ch = rdGroups.radTreeView.ItemFromContainer(container.Items[x]) as RadTreeViewItem;
          ch.CheckState = System.Windows.Automation.ToggleState.On;
 
      //I am getting ch as null. hence it is giving error for object reference.
        }
                         
     }
}

Please suggest me where I am getting wrong.
Thanks
Petar Mladenov
Telerik team
 answered on 21 Nov 2011
3 answers
158 views
I have GridView with Radiobutton column, but I don't know how to check/uncheck my radiobuttons programmatically. Could you help me?

 

 

 

 

<telerik:RadGridView Name="gridIVmodels" AutoGenerateColumns="False" CanUserReorderColumns="False" CanUserFreezeColumns="False" CanUserSortColumns="False" IsFilteringAllowed="False" ShowGroupPanel="False" CanUserDeleteRows="False" CanUserInsertRows="False" RowIndicatorVisibility="Collapsed" SelectionChanged="gridIVmodels_SelectionChanged">
  
<telerik:RadGridView.Columns>
  
<telerik:GridViewDataColumn Header="On/Off">
  
<telerik:GridViewDataColumn.CellTemplate>
  
<DataTemplate>
  
<RadioButton GroupName="groupIVmodels" Checked="RadioButton_Checked" />
  
</DataTemplate>
  
</telerik:GridViewDataColumn.CellTemplate>
  
</telerik:GridViewDataColumn>
  
</telerik:RadGridView.Columns>
  
</telerik:RadGridView>

Alena
Top achievements
Rank 1
 answered on 21 Nov 2011
0 answers
88 views
I like to know how to do it in code once a gridview is binded to a dataset. Can anyone share some examples?
Oliver
Top achievements
Rank 1
 asked on 21 Nov 2011
0 answers
113 views
Hello all.

My current EF model looks like this:
Klanten 1----* KlantenOrders *----1 Orders

I have a datatemplate to show all the information on 1 template, looking like this:

<telerik:DataFormDataField Label="First Name" DataMemberBinding="{Binding KlantenSet.Naam, Mode=TwoWay}" />
                    <telerik:DataFormDataField Grid.Column="1" Label="Last Name" DataMemberBinding="{Binding KlantenSet.Voornaam, Mode=TwoWay}" />
                    <telerik:RadGridView Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" ItemsSource="{Binding Path=OrdersSet}"/>

I set the CurrentItem to the KlantOrders. Hower, the radgridview does not display the ordersset at all.
When i change the ItemsSource to, for example, the KlantenSet, it does display the tables.
If i set it to KlantenSet.OrdersSet, it also displays the data (but not the data that i need).

So how can i make my radgrid show all the Orders for the selected customer, straight from the Orders table, and not the data form the KlantenOrders table?

I use this code to retrieve the KlantenOrders:

Public Function GetKlantOrders(KlantID As Integer) As IEnumerable(Of KlantenOrders)
        Return DataContext.ST.KlantenOrdersSet.Where(Function(s) s.KlantID = KlantID)
End
Function

Many thanks, i'm stucked for a long time on this now...
steve
Top achievements
Rank 1
 asked on 20 Nov 2011
2 answers
226 views
Hi!

I have a grid which has another grid in its row details. Parent grid is not the context menu, and the child grid contains the context menu,however, if I right-click in the row details grid, it shows me the context menu and disappears immediately.
Artem
Top achievements
Rank 1
 answered on 19 Nov 2011
0 answers
254 views

Hi!


Something is happening to me, I appreciate any guide to follow. I have a XBAP main App Full trusted, it added telerik assemblies and my custom assemblies to the references. My custom assemblies referenced has entity classes and general functions and methods which are called from main App and classes (cs file from XAML), and its respective xaml view where to go by using NavigationService.navigate, but something that being taking so long time with no solution is happening to me.

I've constructed a DLL assembly containing XAML views, telerik references and other custom assemblies. Main goal to do it so is because I need to add this Assembly dynamically when is requiered, and that's why this assembly is not added into references into main App. To call a xaml view from main App is by using:

(MainApp)
Assembly dll = Assembly.Load("........dll"); <---- External Assembly not added as reference
object obj = dll.CreateInstance(".../../../mainMenu.xaml");
NavigationService.navigate(obj);

MainMenu.xaml containing telerik components and others is shown successfully, but for some reason when I bind DataContext's MainMenu to my class (ViewModel class) located into my external Custom Assemblies (TransitoMV.dll, and others), system throws an exception:

In spanish:

=== Información de estado anterior al enlace ===
LOG: Usuario = ENTERPRISE\Sistemas01
LOG: DisplayName = TransitoMV, PublicKeyToken=null
 (Partial)
AVS: Se proporcionó información de enlace parcial para un ensamblado:
AVS: Nombre de ensamblado: TransitoMV, PublicKeyToken=null | Id. de dominio: 2
AVS: Un enlace parcial tiene lugar cuando solo se proporciona parte del nombre para mostrar del ensamblado.
AVS: Esto puede dar lugar a que el enlazador cargue un ensamblado incorrecto.
AVS: Se recomienda proporcionar una identidad textual completamente especificada para el ensamblado,
AVS: que consta del nombre simple, la versión, la referencia cultural y el token de clave pública.
AVS: Vea las notas del producto http://go.microsoft.com/fwlink/?LinkId=109270 para obtener más información y soluciones comunes a este problema.
LOG: Appbase = file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/
LOG: PrivatePath inicial = NULL
Ensamblado de llamada : (Unknown).
===
LOG: Este enlace empieza en el contexto de carga default.
LOG: Utilización del archivo de configuración de la aplicación: D:\Proyectos\NET\Solar\Solar\bin\Debug\Solar.exe.config
LOG: Utilizando el archivo de configuración de host:
LOG: Utilizando el archivo de configuración del equipo en C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: La directiva no se está aplicando a la referencia en este momento (enlace de ensamblado privado, personalizado, parcial o basado en la ubicación).
LOG: Intento de descarga de la nueva dirección URL file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/TransitoMV.DLL.
LOG: Intento de descarga de la nueva dirección URL file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/TransitoMV/TransitoMV.DLL.
LOG: Intento de descarga de la nueva dirección URL file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/TransitoMV.EXE.
LOG: Intento de descarga de la nueva dirección URL file:///D:/Proyectos/NET/Solar/Solar/bin/Debug/TransitoMV/TransitoMV.EXE.

With telerik assemblies I have no problems, but with mine I do. How can I do to have no problems with TransitoMV.dll and others mine to be referenced by my external dynamic DLL (containing xaml view) assembly?

thanks
ENTERPRISE INTERNATIONAL SAS
Top achievements
Rank 1
 asked on 18 Nov 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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?