Telerik Forums
UI for WPF Forum
7 answers
155 views
when the outlook bar's splitter is dragged to resize, it occupies the entire area of the main region. Here is a simplified layout within the Shell.
In Outlook, the main region would have a minimum width set. Even if i set the min width to the border or within the content control inside it is not working as expected
<DockPanel x:Name="LayoutRoot">
 
        <ContentControl x:Name="RibbonPanel" />
        <ContentControl x:Name="StatusBarPanel" />
        <ContentControl x:Name="ControlPanelRegion"  />
        <ContentControl x:Name="OutlookBarPanel"  />
        <Border  BorderThickness="2" Padding="0" >           
            <Grid >
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <ContentControl x:Name="MainRegion" />
                <ContentControl x:Name="AnotherRegion"  />
            </Grid>
        </Border>
</DockPanel>
Tina Stancheva
Telerik team
 answered on 19 Dec 2013
0 answers
93 views
Hello,

I'm using the Gridview version 2013.3.1016.40.

I can't seem to find a way to use an itemspaneltemplate for each GridViewRow.

What I'm actually trying to do is add a behavior on a row.

Is it possible to do this without replacing the Template as a whole?

Best regards,

Stefaan.
Stefaan
Top achievements
Rank 1
 asked on 19 Dec 2013
2 answers
238 views
Is there an MVVM way of using the RadPdfViewer to silently print a document? We currently are using the following line in the DocumentChanged event handler to do the silent printing.

((RadPdfViewer)sender).Print(new PrintSettings("Document 1", true));


Thank you,
Mark
Mark
Top achievements
Rank 1
 answered on 19 Dec 2013
9 answers
210 views
hello, how i can change style of navigation view button after adding 
                <telerik:DayViewDefinition />
                <telerik:WeekViewDefinition />
                <telerik:MonthViewDefinition />   ?
Kalin
Telerik team
 answered on 19 Dec 2013
1 answer
148 views
I am programmatically filtering my gridview.  The gridview has about 2000 rows, with a column called "Tag" of type uint that has a unique value for each row.  In another control, my application user can select or unselect the Tags he wants to see in the gridview.

I'm using DistinctFilter as shown below.  I'm seeing very poor performance and even a stackoverflow apparently coming from ResumeNotifications (no stack trace is available for that).
When the user wants to show all 2000 rows, no filtering is needed so that works fine.  But when a single row is to be filtered out, I would AddDistinctValue 1999 times.
Is there some better way I should be doing this?   

GridViewColumn tagColumn = this.gridView.Columns["Tag"];
IColumnFilterDescriptor tagFilter = tagColumn.ColumnFilterDescriptor;
 
// Suspend the notifications to avoid multiple data engine updates
tagFilter.SuspendNotifications();
                 
tagFilter.DistinctFilter.Clear();
 
foreach (var pair in myDictionary)
{
    if (pair.Value.IsShown)
    {
        tagFilter.DistinctFilter.AddDistinctValue(pair.Key);
    }
}
 
// Resume the notifications to force the data engine to update the filter.
tagFilter.ResumeNotifications();
Dimitrina
Telerik team
 answered on 19 Dec 2013
1 answer
901 views
Hi!

When I use this code, to create an empty PDF file (2013Q3SP1):

var filename = "C:\\temp\\test.pdf";
var doc = new Telerik.Windows.Documents.Model.RadDocument();
var stream = new FileStream(filename, FileMode.Create);
var pdfExp = new Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider();
 
pdfExp.Export(doc, stream);
stream.Close();

and look at test.pdf I get

/MediaBox [0 0 612 792]

This is OK for letter format, which is the default.

But when I set the size to A4:

doc.SectionDefaultPageSize = Telerik.Windows.Documents.Model.PaperTypeConverter.ToSize(Telerik.Windows.Documents.Model.PaperTypes.A4);
pdfExp.Export(doc, stream);
stream.Close();

the Mediabox looks like this

/MediaBox [0 0 594.75 842.25]

I cannot find an official reference which is the correct size, but when I do a google search with https://www.google.de/search?q="%2FMediaBox+%5B0+0+594.75+842.25%5D" I just get one page of results.But if I use https://www.google.de/search?q=%2FMediaBox+%5B0+0+595+842%5D to search, I get hundreds of pages with this result.

Could you check, which is the correct value and If /MediaBox [0 0 595 842] is the correct one, how to fix it?

Thanks 

Mike



Alexander
Telerik team
 answered on 18 Dec 2013
1 answer
104 views
Dear support,
in our code we have paragraphs consisting of two PermissionRangeStart and a PermissionRangeEnd tags (header and text), each of them encapsulating a span. (see example below).
When the user tries to position the caret at the beginning of the "text" span he is facing a strange behaviour concerning the positioning of the caret at the beginning of the line. When hitting "Pos1" key the caret comes out to be in the previous span (in the header). Pressing the "Arrow right" key does not move the caret (visibly) but then the user can type in the correct span.
When positioning the caret at the beginning of the line via mouse we are having an unpredictable situation whether the user is in the header span or the text span.

How can we solve this? 
Thanks in advance!

Jo

<t:Paragraph FirstLineIndent="0" LeftIndent="0" 
xmlns:t="clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents"><BR>      
<t:Paragraph.ParagraphSymbolPropertiesStyle><BR>        
<s:SpanProperties FontFamily="Arial" FontWeight="Bold" 
/><BR>      
</t:Paragraph.ParagraphSymbolPropertiesStyle><BR>      
<custom1:NamedPermissionRangeStart AnnotationID="11" 
InternalKey="CLINICALQUESTION" 
Name="TEMPLATE_FRAGMENT_TITLENAME_CLINICALQUESTION_1" 
Type="Header"><BR>        
<t:PermissionRangeInfo Name="EditorTemplateAdmin" Type="Individual" 
/><BR>      
</custom1:NamedPermissionRangeStart><BR>      
<t:Span FontFamily="Arial" FontWeight="Bold" Text="Fragestellung¬" 
/><BR>      <custom1:NamedPermissionRangeEnd 
AnnotationID="11" /><BR>      
<custom1:NamedPermissionRangeStart AnnotationID="12" 
InternalKey="CLINICALQUESTION" 
Name="TEMPLATE_FRAGMENT_TEXTNAME_CLINICALQUESTION_1" 
Type="Text"><BR>        
<t:PermissionRangeInfo Name="ReportAuthor" Type="Group" 
/><BR>      
</custom1:NamedPermissionRangeStart><BR>      
<t:Span FontFamily="Arial" FontWeight="Bold" Text=" ¬" 
/><BR>      <custom1:NamedPermissionRangeEnd 
AnnotationID="12" /><BR>    </t:Paragraph>
Petya
Telerik team
 answered on 18 Dec 2013
7 answers
339 views
Hi,

I am developing a WPF application for a Windows 7 tablet, and I am wondering if there is a way to allow a RadTileView to be scrolled by using touch / finger gestures?

Thanks!
Nick
Telerik team
 answered on 18 Dec 2013
3 answers
104 views
Hi, 
   If I select a row, and set the grid in read only mode, the gray color is over the orange color .

  How to fix this style ?

Thanks
Dimitrina
Telerik team
 answered on 18 Dec 2013
3 answers
184 views
We have been using RadGridView for over a year, quite successfully. We had an old project that implemented the Persistence Framework (using PersistenceManager) and successfully saved/loaded layouts. Now, however, in a new project using the latest DLLs (2013.2.724) the save works fine (supposedly) but the load fails. The error message in the output window is "A first chance exception of type 'System.NullReferenceException' occurred in Telerik.Windows.PersistenceFramework.dll".

We compared streams after saving and after loading and they are identical - so insofar as the save is working correctly, it is persisting the layout to the stream and then loading it back.

We have downloaded samples from these forums and they do indeed work (in the sample) so no one is sure what is going on. The grid we're trying to save is fairly trivial, nothing special. No custom properties, no custom filters. In fact, we copied the Proxies.cs and RadGridViewCustomPropertyProvider.cs from the sample application and it still fails with the same error.

Any assistance would be greatly appreciated. Opened a support ticket on this as well, but have not heard back yet.

Steve
Dimitrina
Telerik team
 answered on 18 Dec 2013
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
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?