Telerik Forums
UI for WPF Forum
9 answers
215 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
153 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
961 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
108 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
356 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
109 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
195 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
3 answers
125 views

Windows8TouchTheme doesn't show any noticeable change in the control if you disable or enable the control only that the clearcommand x will actually highlight.  I tried another theme and well they work.  Windows8TouchTheme seems sort of broken with MaskedInputNumeric.  This wasn't the case with the previous version of the assembly,  presently using 1204.45

Petar Mladenov
Telerik team
 answered on 18 Dec 2013
0 answers
95 views
Hi, firstly I'm using Telerik products more than 4 years and I've the latest version of products.

As you mentioned in Asp.Net demos, radgrid has edititemtemplate/insertitemtemplate properties. But I cannot make it work in WPF. Is there any way to enhance WPF gridview with ItemTemplates like you do in Asp.Net demos?

http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/edit-form-types/defaultcs.aspx

Hıncal
Top achievements
Rank 1
 asked on 18 Dec 2013
1 answer
78 views
Hello!

I have made sample project for you.
Look, ColumnGroupHeader "Price3" doesn't appear, when you resize window, but if you set (in code) window's width to 300, everything works fine.

http://www.2shared.com/file/tW5o4hF9/TestGridViewProject.html
Yordanka
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
FileDialogs
Book
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?