Telerik Forums
UI for WPF Forum
4 answers
179 views
Hi,

I have problems to use print-method in RadRichTextBox control. E.g when I dynamically load RadRichTextBox to the visual tree and then set the document. This throws an null exception when I call the Print-method.

RadRichTextBox textBox = new RadRichTextBox();
grid.Children.Add(textBox);
textBox.ApplyTemplate();
textBox.UpdateEditorLayout();
textBox.Document = this.CreateDocument();
textBox.Print("MyDoc", PrintMode.Native);  // It crash in here!

CreateDocument returns a valid document, I have tested it by loading it to radRichtextbox without printing.

Hopefully you can see directly what is wrong in my code... if you can provide sample project, that would also help.

 I'm using WPF version of Telerik controls (ver. 2011.2.712.40)

Regards,
Auvo



Iva Toteva
Telerik team
 answered on 01 Mar 2012
1 answer
192 views
Hi,

We want to remove certain words from the dictionary (any words that would be embarrassing for customers...  including some that may be proper anatomy words, but wouldn't be used in our application).  Is the best way to do this to download the dictionary from  http://www.telerik.com/community/forums/aspnet-ajax/spell/147971-radspell-dictionaries.aspx#576503, and edit the dictionary?  If not, what is the best way to go about that?

If we are going to edit the dictionary, can we add our own custom words directly to it rather than creating an IWordCustomDictionary?  If that's okay, what do the last two items on a line in a TDF file represent?  For example, what do the JNNL and KNNL represent in the following line:

genuinely:JNNL:KNNL

Thanks!
Ivailo Karamanolev
Telerik team
 answered on 01 Mar 2012
5 answers
175 views
I'm following the GridView demo called "Search as you type". I am using the exact code from the example (CustomFilterBehavior.cs and CustomFilterDescriptor.cs). I have found that the filter does not work if your data has a column of doubles all with a value of 0. If the doubles are given values > 0 then suddenly the filtering works but at 0 no filtering is applied. Very odd.

Can you verify this problem and suggest a work around, possibly a change to CustomFilterDescriptor.cs?

thanks.
Maya
Telerik team
 answered on 01 Mar 2012
4 answers
248 views
Hi,

We are using WPF RadGridview control inside the RadExpander. We like to know how to display the RadGridview's selected (only one) row  in the header section of the RadExpander while collpsing it.

Please refer the attached image for clear understanding of our need.

It would be great if you could provide us the sample project in WPF.

Thanks.
Maya
Telerik team
 answered on 01 Mar 2012
3 answers
116 views
I'm working with a gridview that has a CellTemplate with a CheckBox column and I'm able to set the IsEnabled value using the following code.

    IList<CheckBox> cbks = myGridView.ChildrenOfType<CheckBox>().ToList<CheckBox>();
    MyObject selectedProject = myGridView.SelectedItem as MyObject;
    int SelectedIndex = myGridView.Items.IndexOf(selectedProject);
    cbks[SelectedIndex].IsEnabled = True;
 

This works great, but except ChildrenOfType<>() only provides the rows for visible rows. I can not set EnableRowVirtualization to False.



How do I get the index of the visible row that is within the List of checkboxes (chks)?


Thanks in advance.
Maya
Telerik team
 answered on 01 Mar 2012
3 answers
221 views
For the sake of the others, please update your custom sorting guide to include IsCustomSortingEnabled on the columns. I spent almost a day figuring out why the sorting didn't work anymore (It sorts once but the NewSortingState property doesn't stick). This is very frustrating and is nowhere mentioned as a requirement.
Vlad
Telerik team
 answered on 01 Mar 2012
2 answers
143 views

Hello,

We are using the search as you type feature described in your blog:

http://blogs.telerik.com/stefandobrev/posts/10-01-18/highlighting-inline-search-for-radgridview-for-silverlight.aspx 

However, we noticed that once the HighlightingTextBlock was applied to the cell, the TextWrapping attribute was lost.  Can you please provide an example of the correct way to support TextWrapping with the search feature?  Thanks for any help.
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
 answered on 29 Feb 2012
1 answer
105 views

I have a chart with 11 series: 9 range series that together make topo map of standard deviations from the mean; 1 scatter series above the topo map of their standard deviations from the mean; 1 annotation series with MarkedZones in gray for every X axis value (sequential integers) that has been parameterized (have manually adjusted variance used in estimation) and with a red CustomLine to mark each X axis value with a 0 trend estimation.  My problem is that I would like to have the annotations (MarkedZones and CustomLines) display with transparency over the 9 range series but under the scatter series.  By default, everything overlays the annotations and so I have to make my 9 range series transparent to see the annotations.  This makes the range series appear washed out.  I can't seem to find a way to set a level of the annotations to display at the 10th level rather than the 1st.   All eamples and forum entries show annotations as alway in the background of the chart area with all series over them, so I am dreaming in technicolor here.  Do any of you generous and more experience folks have any suggestions.

Note I also observed that my scatter series is at the right level, but if I try to set the CollectionIndex it does not appear.  I guess I am lucky it is were I need it.

Regards

 

Sia
Telerik team
 answered on 29 Feb 2012
5 answers
250 views
When I plot a line series with negative values, the negative points do not get plotted. XAML is below.

<telerik:RadCartesianChart Palette="Metro"  HorizontalAlignment="Stretch"  >
  <telerik:LineSeries CategoryBinding="X" ValueBinding="Y" ItemsSource="{Binding Data}" />
  <telerik:RadCartesianChart.HorizontalAxis>
    <telerik:DateTimeContinuousAxis ShowLabels="False" />
  </telerik:RadCartesianChart.HorizontalAxis>
  <telerik:RadCartesianChart.VerticalAxis>
      <telerik:LinearAxis ShowLabels="False"  />
    </telerik:RadCartesianChart.VerticalAxis>
</telerik:RadCartesianChart>

For one of my data series, there are no positive Y values, which results in a blank chart.  

Problem with the auto setting of ranges I suspect?

Can any one at Telerik suggest a usable workaround?
Gareth McNicol
Top achievements
Rank 1
 answered on 29 Feb 2012
0 answers
142 views


 

 

 

Hello,
My need is very simple : in a GridViewColumn, I just want to display a small icon (accept.png) when Islocked=True.
And the code below is not working....
<
telerik:GridViewDataColumn IsReadOnly="True">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <Image Name="ImgVerrou" Source="/WpfApplication1;component/Resources/accept.png" Visibility="Collapsed"/>
                            <DataTemplate.Triggers>
                                <DataTrigger Binding="{Binding IsLocked}" Value="True">
                                    <Setter Property="Visibility" Value="Visible" TargetName="ImgVerrou"/>
                                </DataTrigger>
                            </DataTemplate.Triggers>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>


Thank you for your advice.
Xavier

Xavier
Top achievements
Rank 1
 asked on 29 Feb 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?