Telerik Forums
UI for WPF Forum
2 answers
137 views

VS 2010 Pro (ver 4.0.3019 SP1Rel) crashes when I add the attribute DocumentSource="" to the XAML.

My steps are as follows:
  1. Create new Telerik > Windows > C# RadControls WPF Application (>net 3.5 or 4.0)
  2. Choose Telerik.Windows.Controls.FixedDocumentViewers
  3. Auto-Selects Telerik.Windows.Controls
  4. Auto-Selects Telerik.Windows.Documents.Fixed
  5. Click Finish
  6. Add <telerik:RadPdfViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></telerik:RadPdfViewer> to Window XAML

Then, as step 7, as soon as I add the attribute DocumentSource="", the ide crashes and restarts.  It can simply be empty quotes or I can add a reference to a pdf added as a resource, it doesn't matter.  As soon as the second quotation mark is added and the designer tries to update, it crashes.

Hope you can help!!!

UPDATE:

If I try to assign the DocumentSource in the codebehind, I get the error:

Locating source for 'c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\FixedDocumentViewers\UI\RadPdfViewer.cs'. Checksum: MD5 {9 32 c2 2f 18 c8 80 10 92 4e 2 a0 df da f3 e2}
The file 'c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\FixedDocumentViewers\UI\RadPdfViewer.cs' does not exist.
Looking in script documents for 'c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\FixedDocumentViewers\UI\RadPdfViewer.cs'...
Looking in the projects for 'c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\FixedDocumentViewers\UI\RadPdfViewer.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\105\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\FixedDocumentViewers\UI\RadPdfViewer.cs.
The debugger could not locate the source file 'c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\FixedDocumentViewers\UI\RadPdfViewer.cs'.


James
Top achievements
Rank 1
 answered on 24 May 2012
3 answers
409 views
Hi,
why are Telerik brushes in XAML-Code not froozen? Potential memory leak?
More here: http://blogs.msdn.com/b/jgoldb/archive/2008/02/04/finding-memory-leaks-in-wpf-based-applications.aspx 
Ioan
Top achievements
Rank 1
 answered on 24 May 2012
0 answers
84 views
Is there a limit of the radpanes that can be contained in a single container.?
Or in a RadPaneGroup ?
RR
Top achievements
Rank 1
 asked on 24 May 2012
3 answers
499 views
Hi,

I noticed an issue with GridView.

I bind 88 rows to a grid and when I maximise the window you get a black canvas and the grid overlayed by the same grid for a second or so before the grid resizes to the maximised window width.

I have attached a screenshot which shows this behaviour (the white areas were sensitive data cut, it's not a graphical issue).

The machine is a pretty new quad core 3Ghz machine with 8GB RAM and 512MB DDR2 ram graphic card running Win7 x64.

Visual Studio 2010 SP1, Rad Controls 20112.01.320.0. I tried with an older sample of RadGrid 2011.1.0419.40 and it had the same issue.

Is there a way to make the grid resize a little less clunky? am I missing something in the XAML?

Any feedback would be appreciated,

Thanks.

private void Window_Loaded(object sender, RoutedEventArgs e)
{
    // Instantiate the DataServiceContext.
    _context = new Vessel.Service.VesselService(_svcUri);
}
 
private void button_getvesselTypes_Click(object sender, RoutedEventArgs e)
{
    try
    {
 
        StartStats();
 
        var VTQuery = from v in _context.Vestype
                      select v;
 
        DataServiceCollection<VestypeEntity> VesselTypes = new
            DataServiceCollection<VestypeEntity>(VTQuery);
 
        this._radgrid_output.DataContext = VesselTypes;
 
        ShowStats();
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.ToString());
    }
}

<Window x:Class="TestClient.MainWindow"
        Title="WCF oData Test"
        Width="750" Height="600"
        x:Name="OutputWindow"
        Loaded="Window_Loaded">
     
    <Grid x:Name="grid_mainlayout">
        <Grid.RowDefinitions>
            <RowDefinition x:Name="gridrow_detailsection" Height="*"></RowDefinition>
            <RowDefinition x:Name="gridrow_footersection" Height="60"></RowDefinition>
        </Grid.RowDefinitions>
 
        <telerik:RadGridView  Name="_radgrid_output"
                              Grid.Row="0"
                              Margin="2"
                              HorizontalAlignment="Stretch"
                              VerticalAlignment="Stretch"
                              DataContext="{Binding}"
                              ItemsSource="{Binding}"
                              EnableColumnVirtualization="True"
                              EnableRowVirtualization="True"
                              DataLoadMode="Asynchronous"
                              IsReadOnly="True"
                              ActionOnLostFocus="None" />
         
        <StackPanel x:Name="stackpannel_buttons" Grid.Row="1" Orientation="Horizontal">
            <Button x:Name="button_Query1" Margin="2,10,10,10" Width="100" Content="Get 6000 rows" Click="button_getvessels_Click"></Button>
            <Button x:Name="button_Query2" Margin="2,10,10,10" Width="100" Content="Get 80 rows" Click="button_getvesselTypes_Click"></Button>
        </StackPanel>
    </Grid>
     
</Window>
N Mackay
Top achievements
Rank 1
 answered on 24 May 2012
7 answers
394 views
I have tried to set the SelectionRectangleStyle of the Diagram control without any luck.  Below is the code I am using. I can see it at design time, when I run the app and load a saved diagram it seems to ignore the style.  I am modifying one of the Telerik examples.

<UserControl.Resources>
    <Style x:Key="Style1" TargetType="{x:Type Rectangle}">
        <Setter Property="StrokeThickness" Value="12" />
        <Setter Property="StrokeDashArray" Value="3 3"/>
        <Setter Property="Stroke" Value="Red"/>
        <Setter Property="Fill" Value="Transparent"/>
    </Style>
</UserControl.Resources>
 
 <telerik:RadDiagram x:Name="diagram"  SelectionRectangleStyle="{DynamicResource Style1}" />          
    


Miro Miroslavov
Telerik team
 answered on 24 May 2012
1 answer
172 views
In our TreeListView, we define only TreeListView part at design time. Columns are Auto Generated. We don't add columns from the code behind also. I need to have custom filter for few columns. 

From your demo example, I found that you need to define the filtering Column like this in XAML. 

<telerik:GridViewDataColumn.FilteringControl>
                        <local:FromDateToDateFilterControl FromDate="1/1/1863" ToDate="1/1/1933"/>
 </telerik:GridViewDataColumn.FilteringControl>

I want to know how can I define this when my columns are Autogenerated?

What if I want to have different Custom Filters for different columns? 

Could you please let me know to achieve this?



Rossen Hristov
Telerik team
 answered on 24 May 2012
5 answers
139 views
We have a requirement where we need the Filter Option Dialog/ filter functionality to behave differently from the default behavior. 

We don't want  to really FILTER the data, but to select/unselect the nodes that match the criteria. 

Would it be possible to do this?

Rossen Hristov
Telerik team
 answered on 24 May 2012
1 answer
316 views
I am doing drag & drop between two RadTreeListVIew, but I guess this question should not be limited only for this control. From what I have seen, most (if not all) list controls show a mouse over effect (border element) when we move mouse over a row. During the Drag&Drop operation, normal user experience would be to visually show user where an item will be dropped. It seems that for some reason, in case of drag&dop, mouse over border around the row is not applied. Why is this the case, was this necessary by design, and how can we show user the same visual experience during drag&drop, just like with mouse over.

Regards,
Goran
Nick
Telerik team
 answered on 24 May 2012
1 answer
169 views
I'm trying to print a RadPane using the following code:
public static void PrintHeaderedContentControl(HeaderedContentControl VisualToPrint)
        {
            PrintDialog myPrintDialog = new PrintDialog();
 
            if (myPrintDialog.ShowDialog() == true)
            {
                myPrintDialog.PrintVisual(VisualToPrint, VisualToPrint.Header.ToString());
            }
 
        } // PrintHeaderedContentControl

If I try this with PrintHeaderedContentControl(myRadPane) I just get an empty page with only the header text.
Any Ideas what I can do get this to work?
the following the following

 

It turned out the control was printed but outside the printer paper. So we need to resize and transform the control to get it on paper with code like this:

 

Transform transOld = ControlToPrint.RenderTransform;
                TransformGroup myTransforms = new TransformGroup();
                myTransforms.Children.Add(new ScaleTransform(dScale, dScale));
                myTransforms.Children.Add(new TranslateTransform((myPrintDialog.PrintableAreaWidth - 20) / 20, (myPrintDialog.PrintableAreaHeight - 20) / 20));
 
                ControlToPrint.LayoutTransform = myTransforms;
 
                Size pageSize = new Size(myPrintDialog.PrintableAreaWidth - 20, myPrintDialog.PrintableAreaHeight - 20);
                ControlToPrint.Measure(pageSize);
                ControlToPrint.Arrange(new Rect(10, 10, pageSize.Width - 10, pageSize.Height - 10));
 
                myPrintDialog.PrintVisual(ControlToPrint, Title);
 
                ControlToPrint.LayoutTransform = transOld;

 

Lancelot
Top achievements
Rank 1
 answered on 23 May 2012
0 answers
99 views
Hi,

When I drag/drop an item from one listbox to a second, I want to put up a confirmation that the item has been saved to the second.

However, when I put up a dialog on DropComplete (done in the code-behind) to indicate that the item has been saved, I can still see the dropped item hovering over the second listbox.

Do I need to explicitly change the item's Visibility to Hidden (based on a custom event trigger... I'm using MVVM Light) so that it 'disappears' on DropComplete, or is there something I'm missing?

Thanks
Scott
Top achievements
Rank 1
 asked on 23 May 2012
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?