Telerik Forums
UI for WPF Forum
2 answers
168 views
Hallo,
is it possible to set size of space (distance) between tiles (especially in restored mode...). Something like "Margin" for each RadTileViewItem in RadTileView. Thank you.
David.

Tomas
Top achievements
Rank 1
 answered on 29 Jul 2011
5 answers
119 views
Hi,

I am facing specific requirement to design RadTileViewItems to have their headers oriented to the left border of the item.

Is there a simple solution of this (for better understanding of it please see picture attached)?

Thank a lot,
Petr H.
Tomas
Top achievements
Rank 1
 answered on 29 Jul 2011
5 answers
271 views
I have the following code for configuring RadPanelBar for Silverlight.

I have created a resource in the UserControl.Resources and referred to it through ItemTemplate of RadPanelBar.
The data source for the RadPanelBar is BindingProperties.SelectedTemplate.Charts. I am unable to generate the content of the RadPanelBarItem. What ever I do I either get the content in the header of the item or will not get any content generated.

BindingProperties.SelectedTemplate is an entity and Charts is a list of objects.

Am I missing any bindings here.

<UserControl.Resources>
    <telerik:HierarchicalDataTemplate x:Key="ChartDetailView">
        <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2" >
            <Button Width="25" Height="25" Margin="10,0,0,0">
                <Image Source="Resources/DeleteRed.png" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
            </Button>
            <Views:ChartConfigView  VerticalAlignment="Top" Grid.ColumnSpan="2" />
        </StackPanel>
    </telerik:HierarchicalDataTemplate>
 
    <telerik:HierarchicalDataTemplate x:Key="ChartView" ItemsSource="{Binding}" ItemTemplate="{StaticResource ChartDetailView}">
        <TextBlock Text="{Binding Path=ChartTitle}" Margin="5 3" />
    </telerik:HierarchicalDataTemplate>
</UserControl.Resources>

<telerik:RadPanelBar telerik:StyleManager.Theme="Vista" ItemsSource="{Binding Path=BindingProperties.SelectedTemplate.Charts}" ItemTemplate="{ StaticResource ChartView}" ></telerik:RadPanelBar>
Zarko
Telerik team
 answered on 29 Jul 2011
1 answer
81 views
Hi,
I am using SpecialSlot style in order to add a rectangle with some text on a slot. I am facing a difficulty since it's not a pattern that repeats itself like in the readonly brush example.
Here is the Content Template of my slot (assigned then by a SpecialSlotStyleSelector like in the examples).
           <ControlTemplate x:Key="VacationSlotTemplate">
               <Border Background="Black"  Opacity="0.655" VerticalAlignment="Stretch">
                   <Border  HorizontalAlignment="Left" Background="#FFDC1818">
                       <TextBlock Text="MD" 
                   Foreground="Azure"  FontSize="12px" HorizontalAlignment="Center"  TextAlignment="Center" Width="13" TextWrapping="Wrap"  />
                   </Border>
               </Border>
           </ControlTemplate>
Indeed, the text stays positionned relative to the top of the border in the viewPort, not positionned relative to the real border which is not shown completely on the viewport, it seems that the border is drawn such that it always begin inside the viewport (maybe for performance reasons?).
Hard to explain, I hope the screens will help :  screen1, screen2 
 The screen2 is the same as screen1 except that it is scrolled down a little bit in order to show that the border isn't at fixed position in the scheduler. In the second screen I shouldn't see the text since I have scrolled down.
Is this expected behavior? If so, can I remove this behavior?

Thanks
Dani
Telerik team
 answered on 29 Jul 2011
2 answers
158 views
Do you have any documentation on initializing and expression editor in code-behind and binding its Item proprty to either an ObservableCollection<T> or a datatable?

I am going to use it to filter a radgridview but the gridview is generated dynamically at runtime so I can't use XAML to bind the grid data to the expression editor.

Giving the user the option to use RadDataFilter or RadExpressionEditor to filter the same RadGridView so if you have anything on that particular scenario it would be appreciated.

I assume I will have to maybe accomplish it with one or the other unbound. Such as binding the grids itemsource to the datafilters filteredsource and changing the datafilters source after the expressioneditors changed event is fired... etc... please advise if there is a better way.
Dimitrina
Telerik team
 answered on 29 Jul 2011
1 answer
147 views
Is it possible to synchronize a datafilter and expression editor in code-behind?

Goal: give user option to user eith to filter gridview.

So the grid view will be bound to observablecollection<T> and the 2 filters will modify the grids filterdescriptors.
It would be nice if they are going from one filter to the other if the somehow reflect each others previous states...
Yavor Georgiev
Telerik team
 answered on 29 Jul 2011
0 answers
96 views
Hi,

I am trying to lazy load a child grid that is embedded with a tab strip within the grid. I am unable to do it as I am unable to access the child grid object. I am also unable to do it using WPF binding. Please help as I have deadlines looming. Thanks.
Here is the xaml code.

Thanks.

<UserControl x:Class="CoE.VCS.WPF.Violations.Controls.SupervisorSearch"
             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:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:viewModels="clr-namespace:CoE.VCS.WPF.ViewModels"
             mc:Ignorable="d"
             SizeChanged="UserControl_SizeChanged" Loaded="UserControl_Loaded"
             d:DesignWidth="1200" d:DesignHeight="500">

    <UserControl.DataContext>
        <viewModels:SupervisorSearchViewModel />
    </UserControl.DataContext>
   
    <UserControl.Resources>
        <DataTemplate x:Key="TypeItemTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Description}"/>
            </StackPanel>
        </DataTemplate>

        <DataTemplate x:Key="OfficerItemTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding OperatorId}"/>
                <TextBlock Text="{Binding OperatorLastName}"/>
                <TextBlock Text=", "/>
                <TextBlock Text="{Binding OperatorFirstName}"/>
            </StackPanel>
        </DataTemplate>
       
        <DataTemplate x:Key="SiteItemTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding SiteId}"/>
                <TextBlock Text="{Binding LocationDescription}"/>
            </StackPanel>
        </DataTemplate>

        <DataTemplate x:Key="ReviewerItemTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding UserName}"/>
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>

    <Grid x:Name="LayoutGrid">    
        <Grid.RowDefinitions >
            <RowDefinition Height="25" />
            <RowDefinition Height="180" />
            <RowDefinition Height="*" />
            <RowDefinition Height="55" />
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="0" HorizontalAlignment="Center" Style="{StaticResource ImportantTextBlock}">Search for Violation</TextBlock>

        <Grid Grid.Column="0" Grid.Row="1" Name="SearchCriteria">
            <Grid.ColumnDefinitions >
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="350"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="200"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions >
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
           
            <Label Grid.Column="0" Grid.Row="0">Ticket Number:</Label>
            <Label Grid.Column="0" Grid.Row="1">License Plate:</Label>
            <Label Grid.Column="0" Grid.Row="2">First Name:</Label>
            <Label Grid.Column="0" Grid.Row="3">Last/Company Name:</Label>

            <TextBox Grid.Column="1" Grid.Row="0" Name="textBoxTicketNumber" ToolTip="Enter Ticket Number" HorizontalAlignment="Left" Width="100" />
            <TextBox Grid.Column="1" Grid.Row="1" Name="textBoxLicensePlate"  ToolTip="Enter License Plate" HorizontalAlignment="Left" Width="100" CharacterCasing="Upper" />
            <TextBox Grid.Column="1" Grid.Row="2" Name="textBoxFirstName" ToolTip="Enter First Name" />
            <TextBox Grid.Column="1" Grid.Row="3" Name="textBoxLastName" ToolTip="Enter Last Name or Company Name" />

            <Label Grid.Column="2" Grid.Row="0">Reviewer:</Label>
            <Label Grid.Column="2" Grid.Row="1">Site:</Label>
            <Label Grid.Column="2" Grid.Row="2">Officer:</Label>
            <Label Grid.Column="2" Grid.Row="3">Type:</Label>
           
            <telerik:RadComboBox Grid.Column="3" Grid.Row="0" Name="ReviewerComboBox" ItemTemplate="{StaticResource ReviewerItemTemplate}" />
            <telerik:RadComboBox Grid.Column="3" Grid.Row="1" Name="SiteComboBox" ItemTemplate="{StaticResource SiteItemTemplate}" />
            <telerik:RadComboBox Grid.Column="3" Grid.Row="2" Name="OfficerComboBox" ItemTemplate="{StaticResource OfficerItemTemplate}" />
            <telerik:RadComboBox Grid.Column="3" Grid.Row="3" Name="TypeComboBox" ItemTemplate="{StaticResource TypeItemTemplate}" />

            <Label Grid.Column="4" Grid.Row="0">Start Date:</Label>
            <Label Grid.Column="4" Grid.Row="1">End Date:</Label>

            <telerik:RadDateTimePicker Grid.Column="5" Grid.Row="0" Name="ViolationDateStart" InputMode="DatePicker" Margin="4"/>
            <telerik:RadDateTimePicker Grid.Column="5" Grid.Row="1" Name="ViolationDateEnd" InputMode="DatePicker" Margin="4"/>

            <StackPanel Grid.Column="1" Grid.Row="4" Name="SearchCommands" Grid.ColumnSpan="2" HorizontalAlignment="Left">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="160" />
                        <ColumnDefinition Width="160" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="50"/>
                    </Grid.RowDefinitions>
                    <telerik:RadButton Name="buttonSearch" Margin="6,6,15,6" Click="ButtonSearchClick" IsDefault="True" >
                        <TextBlock TextWrapping="Wrap" TextAlignment="Center">Search for Violations</TextBlock>
                    </telerik:RadButton>
                    <telerik:RadButton Name="buttonClear" Margin="151,6,28,6" Click="ButtonClearClick" Grid.ColumnSpan="2">
                        <TextBlock TextWrapping="Wrap" TextAlignment="Center">Clear Search</TextBlock>
                    </telerik:RadButton>
                </Grid>
            </StackPanel>
        </Grid>

        <telerik:RadGridView Grid.Column="0" Grid.Row="2"
                             x:Name="SearchResultsGrid"
                             RowLoaded="SearchResultsGrid_RowLoaded"
                             ScrollViewer.VerticalScrollBarVisibility ="Visible" 
                             RowIndicatorVisibility="Collapsed"
                             AutoGenerateColumns="False"
                             CanUserDeleteRows="False"
                             CanUserFreezeColumns="False"
                             CanUserInsertRows="False"
                             CanUserReorderColumns="False"
                             CanUserResizeColumns="False"
                             SelectionMode="Multiple" 
                             ShowGroupPanel="True"
                             ShowColumnHeaders="True"
                             SnapsToDevicePixels="True"
                             EnableRowVirtualization="True"
                             ItemsSource="{Binding Path=Results}"
                             Focusable="True"
                             IsReadOnly="True"
                             IsTabStop="False" RowDetailsVisibilityChanged="SearchResultsGrid_RowDetailsVisibilityChanged" RowIsExpandedChanged="SearchResultsGrid_RowIsExpandedChanged">
           
            <telerik:RadGridView.Columns>
                <telerik:GridViewToggleRowDetailsColumn />
                <telerik:GridViewDataColumn x:Name="TicketNumber" DataMemberBinding="{Binding Path=TicketNumber}" Header="Ticket Number"  Width="92" IsReadOnly="True" IsFilterable="False" />
                <telerik:GridViewDataColumn x:Name="FirstName"  DataMemberBinding="{Binding Path=FirstName}" Header="First Name" Width="100" IsReadOnly="True" />
                <telerik:GridViewDataColumn x:Name="LastName"  DataMemberBinding="{Binding Path=LastName}" Header="Last/Company Name" Width="150" IsReadOnly="True" />               
                <telerik:GridViewDataColumn x:Name="ViolationType" DataMemberBinding="{Binding Path=ViolationType}" Header="Violation Type" Width="125"  IsReadOnly="True" />
                <telerik:GridViewDataColumn x:Name="ViolationDateTime" DataMemberBinding="{Binding Path=ViolationDateTime}" DataFormatString="{} {0:dd-MMM-yyyy HH:mm}" Header="Violation Date/Time"  Width="145" IsReadOnly="True" />
                <telerik:GridViewDataColumn x:Name="State" DataMemberBinding="{Binding Path=ViolationState}" Header="Violation State" Width="120"  IsReadOnly="True" />
                <telerik:GridViewDataColumn x:Name="Officer" DataMemberBinding="{Binding Path=Officer}" Header="Officer" Width="110"  IsReadOnly="True" />
                <telerik:GridViewDataColumn x:Name="Site" DataMemberBinding="{Binding Path=Site}" Header="Site" Width="190"  IsReadOnly="True" />
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>
                    <telerik:RadTabControl BackgroundVisibility="Collapsed" x:Name="RadTabMain" Margin="8" VerticalAlignment="Center" Background="Transparent">
                        <telerik:RadTabItem Header="Details" Margin="0,0,0,0" Height="24">
                            <telerik:RadGridView x:Name="DetailsGrid" ItemsSource="{Binding Path=Details}" Height="300" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False"
               CanUserFreezeColumns="False" BorderThickness="0" CanUserResizeColumns="False"
               ShowGroupPanel="False" BorderBrush="{x:Null}"
               Margin="0" Width="744">
                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewSelectColumn IsGroupable="False" />
                                    <telerik:GridViewDataColumn x:Name="TicketNumber" DataMemberBinding="{Binding Path=TicketNumber}" Header="Ticket Number"  Width="150" IsReadOnly="True" IsFilterable="False" />
                                    <telerik:GridViewDataColumn x:Name="ViolationType" DataMemberBinding="{Binding Path=ViolationType}" Header="Violation Type" Width="200"  IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="ViolationDateTime" DataMemberBinding="{Binding Path=ViolationDateTime}" DataFormatString="{} {0:dd-MMM-yyyy HH:mm}" Header="Violation Date/Time"  Width="150" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="ViolationStatus" DataMemberBinding="{Binding Path=ViolationStatus}" Header="Violation Status" Width="200"  IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="SiteId" DataMemberBinding="{Binding Path=SiteId}" Header="Site Id" Width="100"  IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="FirstName"  DataMemberBinding="{Binding Path=FirstName}" Header="First Name" Width="200" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="LastName"  DataMemberBinding="{Binding Path=LastName}" Header="Last/Company Name" Width="300" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="SiteLocation"  DataMemberBinding="{Binding Path=SiteLocation}" Header="Site Location" Width="300" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="SpeedLimit"  DataMemberBinding="{Binding Path=SpeedLimit}" Header="Speed Limit" Width="80" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="SpeedThreshold"  DataMemberBinding="{Binding Path=SpeedThreshold}" Header="Speed Threshold" Width="80" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="CapturedSpeed"  DataMemberBinding="{Binding Path=CapturedSpeed}" Header="Captured Speed" Width="80" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="FineAmount"  DataMemberBinding="{Binding Path=FineAmount}" Header="Fine Amount" Width="80" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="CourtDate" DataMemberBinding="{Binding Path=CourtDate}" DataFormatString="{} {0:dd-MMM-yyyy HH:mm}" Header="Court Date" Width="80" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="IssueDate" DataMemberBinding="{Binding Path=IssueDate}" DataFormatString="{} {0:dd-MMM-yyyy HH:mm}" Header="Issue Date" Width="80" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="ModifiedDateTime" DataMemberBinding="{Binding Path=ModifiedDateTime}" DataFormatString="{} {0:dd-MMM-yyyy HH:mm}" Header="Modified Date/Time" Width="80" IsReadOnly="True" />
                                </telerik:RadGridView.Columns>
                            </telerik:RadGridView>
                        </telerik:RadTabItem>
                        <telerik:RadTabItem Header="History" Height="24">
                            <telerik:RadGridView x:Name="ReviewGrid" Height="300" ItemsSource="{Binding Path=Reviews}" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False"
               CanUserFreezeColumns="False" BorderThickness="0" CanUserResizeColumns="False"
               ShowGroupPanel="False" BorderBrush="{x:Null}"
               Margin="0" Width="744">
                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewSelectColumn IsGroupable="False" />
                                    <telerik:GridViewDataColumn x:Name="ReviewResult" DataMemberBinding="{Binding Path=ReviewResult}" Header="Review Result"  Width="80" IsReadOnly="True" IsFilterable="False" />
                                    <telerik:GridViewDataColumn x:Name="ViolationStatusReviewTime" DataMemberBinding="{Binding Path=ViolationStatus}" Header="Violation Status" Width="200"  IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="ReviewedBy" DataMemberBinding="{Binding Path=ReviewedBy}" Header="Reviewed By" Width="200"  IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="ReviewedDateTime" DataMemberBinding="{Binding Path=ReviewedDateTime}" DataFormatString="{} {0:dd-MMM-yyyy HH:mm}" Header="Reviewed Date/Time" Width="80" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="PlateNumber" DataMemberBinding="{Binding Path=PlateNumber}" Header="Plate Number" Width="90"  IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="Province" DataMemberBinding="{Binding Path=Province}" Header="Province" Width="70"  IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="RejectionReasonCategory" DataMemberBinding="{Binding Path=RejectionReasonCategory}" Header="Rejection Reason Category" Width="120"  IsReadOnly="True" />
                                    <telerik:GridViewDataColumn x:Name="RejectionReason" DataMemberBinding="{Binding Path=RejectionReason}" Header="Rejection Reason" Width="120"  IsReadOnly="True" />
                                </telerik:RadGridView.Columns>
                            </telerik:RadGridView>
                        </telerik:RadTabItem>
                        <telerik:RadTabItem Header="Comments" Height="24">

                        </telerik:RadTabItem>
                        <telerik:RadTabItem Header="Actions" Height="24">

                        </telerik:RadTabItem>
                    </telerik:RadTabControl>
                </DataTemplate>
            </telerik:RadGridView.RowDetailsTemplate>
        </telerik:RadGridView>

        <StackPanel Grid.Column="0" Grid.Row="3" Name="ResultCommands">
            <Grid>
                <Grid.ColumnDefinitions >
                    <ColumnDefinition Width="146"/>
                    <ColumnDefinition Width="146"/>
                    <ColumnDefinition Width="146"/>
                    <ColumnDefinition Width="146"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="2*"/>                   
                </Grid.ColumnDefinitions>
            <Grid.RowDefinitions >
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <telerik:RadButton Grid.Column="0"  Margin="0, 6, 0, 6" Width="130" HorizontalAlignment="Left" Name="buttonView" Click="ButtonViewClick">
                <TextBlock TextWrapping="Wrap" TextAlignment="Center">View Selected Violations</TextBlock>
            </telerik:RadButton>
                <telerik:RadButton Grid.Column="1"  Margin="0, 6, 0, 6" Width="130" HorizontalAlignment="Left" Name="buttonCourtPackage" Click="ButtonCourtpackagesClick">
                    <TextBlock TextWrapping="Wrap" TextAlignment="Center">Prepare Court Packages</TextBlock>
                </telerik:RadButton>
                <telerik:RadButton Grid.Column="2"  Margin="0, 6, 0, 6" Width="130" HorizontalAlignment="Left" Name="buttonConvert" Click="ButtonConvertClick">
                    <TextBlock TextWrapping="Wrap" TextAlignment="Center">Convert</TextBlock>
                </telerik:RadButton>
                <telerik:RadButton Grid.Column="3"  Margin="0, 6, 0, 6" Width="130" HorizontalAlignment="Left" Name="buttonServeTicket" Click="ButtonServeClick">
                    <TextBlock TextWrapping="Wrap" TextAlignment="Center">Ticket Served</TextBlock>
                </telerik:RadButton>
                <TextBlock Grid.Column="4"  HorizontalAlignment="Right"  Height="21" Name="NumberOfViolationsFound" >Number of Violations found:</TextBlock>
                <TextBlock Grid.Column="5"  Name="NumberOfViolationsFoundTextBlock" Style="{StaticResource BoldTextBlock}" Margin="25, 6, 0, 6" HorizontalAlignment="Left"  Height="21"></TextBlock>
            </Grid>
        </StackPanel>
      
    </Grid>
</UserControl >

Manny
Top achievements
Rank 1
 asked on 29 Jul 2011
1 answer
209 views
i'm using the latest version of the WPF controls but it seems that the RTB wants to load an old version of the Telerik.Windows.Documents assembly.

{"Could not load file or assembly 'Telerik.Windows.Documents, Version=2011.1.419.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Telerik.Windows.Documents, Version=2011.1.419.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7"}

I've examined my project's references and it appears to be referencing the correct version of the 2011.2 controls.

"Locating source for 'c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Documents\UI\DocumentWebLayoutPresenter.cs'. Checksum: MD5 {e2 9a ab de 97 19 2a fe ba a7 ec a5 15 77 8f 5d}
The file 'c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Documents\UI\DocumentWebLayoutPresenter.cs' does not exist.
Looking in script documents for 'c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Documents\UI\DocumentWebLayoutPresenter.cs'...
Looking in the projects for 'c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Documents\UI\DocumentWebLayoutPresenter.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Documents\UI\DocumentWebLayoutPresenter.cs.
The debugger could not locate the source file 'c:\TB\102\WPF_Scrum\Release_WPF_40\Sources\Development\Documents\UI\DocumentWebLayoutPresenter.cs'."

I'm using only the RTB on the control with HTML binding.

    <Reference Include="Telerik.Windows.Controls, Version=2011.2.712.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" />
    <Reference Include="Telerik.Windows.Controls.Navigation, Version=2011.2.712.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" />
    <Reference Include="Telerik.Windows.Data, Version=2011.2.712.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" />
    <Reference Include="Telerik.Windows.Documents, Version=2011.2.712.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" />
    <Reference Include="Telerik.Windows.Documents.FormatProviders.Html, Version=2011.2.712.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" />

Any help would be greatly appreciated.

Regards,

John Hamilton

P.S. I had the Q1 trial installed previous to buying the Dev version. I did uninstall before I installed the latest build of dotnet 4.0's assemblies.
John
Top achievements
Rank 1
 answered on 28 Jul 2011
3 answers
145 views
I copied the code directly from the demo into my project for printing a grid.  It prints, and shows the headers and correct number of rows but does not show any cell text.  What could be wrong???  I was using the Windows7Theme but commented that out and had the same issue.  This is WPF 4.0, WPF Controls 2010.3.1314.40.  I know this is a few versions behind but the last time I checked the 2011 release it had a bug with the TabControl and Prism interaction that I do not have time to work around.

EDIT: I have upgraded my project to the latest WPF Controlss (2011 Q2) and now it works for all columns EXCEPT hyperlinks (or maybe its just related to columns with cell templates).  How can I get hyperlink/celltemplate columns to display?

<telerik:RadGridView.Columns>
  <telerik:GridViewDataColumn Header="Account Number" DataMemberBinding="{Binding AccountNumber}" ShowDistinctFilters="False" >
    <telerik:GridViewDataColumn.CellTemplate>
      <DataTemplate>
        <TextBlock><Hyperlink Command="{Binding DataContext.SelectCommand, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}" CommandParameter="{Binding}"><InlineUIContainer
                  <TextBlock Text="{Binding AccountNumber}"/>
              </InlineUIContainer></Hyperlink></TextBlock>
      </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
    <telerik:GridViewDataColumn.AggregateFunctions>
      <telerik:CountFunction Caption="Count:" />
    </telerik:GridViewDataColumn.AggregateFunctions>
  </telerik:GridViewDataColumn>
  <telerik:GridViewDataColumn Header="Account Name" DataMemberBinding="{Binding AccountName}" Width="*" ShowDistinctFilters="False"  FooterCellStyle="{StaticResource GridNoLinesFooterStyle}"/>
  <telerik:GridViewDataColumn Header="Association" DataMemberBinding="{Binding AssociationName}"  FooterCellStyle="{StaticResource GridNoLinesFooterStyle}"/>
  <telerik:GridViewDataColumn Header="Status" DataMemberBinding="{Binding AccountStatusName}"  FooterCellStyle="{StaticResource GridNoLinesFooterStyle}" />
</telerik:RadGridView.Columns>


Pavel Pavlov
Telerik team
 answered on 28 Jul 2011
1 answer
205 views
I am trying to import HTML with images into a RadRichTextBox using the LoadImageFromUrl event with the following code.  The import runs with no error, and the LoadImageFromUrl delegate was called the correct number of times.  At some point after the import, the app throws an exception.  What am I doing wrong?  Is there a code sample for importing HTML with bitmaps (that are stored in a byte array)?

==>Code<==
HtmlFormatProvider provider = new HtmlFormatProvider();
HtmlImportSettings settings = new HtmlImportSettings();
provider.ImportSettings = settings;
settings.LoadImageFromUrl += new EventHandler<LoadImageEventArgs>(LoadImageFromUrl);
editor.Document = provider.Import(HTML);

void LoadImageFromUrl(object sender, LoadImageEventArgs e)
{
    e.ImageElement.Init(
jpg_image_byte_array, "jpg");
}

==>Exception<==
   at System.Windows.Media.PixelFormat.CreatePixelFormatInfo()
   at System.Windows.Media.PixelFormat.get_InternalBitsPerPixel()
   at System.Windows.Media.Imaging.BitmapSource.GetClosestDUCEFormat(PixelFormat format, BitmapPalette palette)
   at System.Windows.Media.Imaging.BitmapSource.get_DUCECompatiblePtr()
   at System.Windows.Media.Imaging.BitmapSource.UpdateBitmapSourceResource(Channel channel, Boolean skipOnChannelCheck)
   at System.Windows.Media.Imaging.BitmapSource.AddRefOnChannelCore(Channel channel)
   at System.Windows.Media.Imaging.BitmapSource.System.Windows.Media.Composition.DUCE.IResource.AddRefOnChannel(Channel channel)
   at System.Windows.Media.RenderData.System.Windows.Media.Composition.DUCE.IResource.AddRefOnChannel(Channel channel)
   at System.Windows.UIElement.RenderContent(RenderContext ctx, Boolean isOnChannel)
   at System.Windows.Media.Visual.UpdateContent(RenderContext ctx, VisualProxyFlags flags, Boolean isOnChannel)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   at System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   at System.Windows.Media.Visual.Render(RenderContext ctx, UInt32 childIndex)
   at System.Windows.Media.CompositionTarget.Compile(Channel channel)
   at System.Windows.Media.CompositionTarget.System.Windows.Media.ICompositionTarget.Render(Boolean inResize, Channel channel)
   at System.Windows.Media.MediaContext.Render(ICompositionTarget resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Ivailo Karamanolev
Telerik team
 answered on 28 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?