Telerik Forums
UI for WPF Forum
3 answers
187 views

Hi,

How to change the visibility of DocumentRuler in RadRichTextBox. and How to change ruler in different scale like inches, centimetre ?


Regards

Sopan Vaidya
Iva Toteva
Telerik team
 answered on 31 Jul 2013
5 answers
327 views
I have a simple RadPdfViewer declared in my UserControl:

    <t:RadPdfViewer Grid.Row="1" x:Name="PdfViewer" DocumentSource="{Binding Uri}" 
                    PreviewKeyDown="PdfViewer_OnPreviewKeyDown"
                    DocumentChanged="PdfViewer_OnDocumentChanged"/>

Randomly (although it appears that this exception does not occur if I wait for the current document to be fully rendered and the progress indicator to be removed by the RadPdfViewer) when "Uri" property in my VM (which is a simple string property) is changed to new Uri of some pdf file I get ObjectDisposedException with "Cannot access a closed file." message.

StackTrace:

   at System.IO.__Error.FileNotOpen()
   at System.IO.FileStream.get_Position()
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfReader.Readers.PdfReaderBase.ReadInternal() in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\Core\FormatProviders\Pdf\PdfReader\Readers\PdfReaderBase.cs:line 174

Exception Detail:
System.ObjectDisposedException occurred
  HResult=-2146232798
  Message=Cannot access a closed file.
  Source=mscorlib
  ObjectName=""
  StackTrace:
       at System.IO.__Error.FileNotOpen()
       at System.IO.FileStream.get_Position()
       at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfReader.Readers.PdfReaderBase.get_Position() in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Documents\Fixed\Core\FormatProviders\Pdf\PdfReader\Readers\PdfReaderBase.cs:line 55
  InnerException:

Could you please take a look?
Iva Toteva
Telerik team
 answered on 31 Jul 2013
2 answers
457 views
Hi all,

i have got an issue in using drag and drop functionality in combination with autoscrolling in GridView.
I must be able to select a cell in gridview and the target cell can only be made visible with scrolling up (may be the target cell is on the upper side of grid and source cell is contained in last row).
So, if I try to pick up the source cell drag and drop may be initialized and if i move mouse cursor up gridview does not autoscroll up if i come closer and closer to the also visible column headers.

Is there any way to implement it? If yes it would be very very cool if someone can post a solution for it. :)

We use RadGridview in combination with the  DragDropManage (without "and").

Regards
Martin
Mark
Top achievements
Rank 1
 answered on 31 Jul 2013
1 answer
121 views
I have a gridview where the users select which columns are visible or hidden.  Is there a simple way to save the user's column choices locally and reload them the next time they access the application?

Thank you.
Dimitrina
Telerik team
 answered on 31 Jul 2013
1 answer
640 views
When using RadGridView, I load the ItemsSource, but the Items are empty. Meaning that when I try to read foreach( item in radgridview.Items) it will not pick any item.

If I load the radGridView item by item using x.Items.add(), the ItemsSource is null

It was my expectation that Items and ItemSource should be linked. How can I load a bulk using ItemsSource but then use the items, or load item per item, but extract all the content using ItemSource.
Dimitrina
Telerik team
 answered on 31 Jul 2013
1 answer
83 views
Using the WPF RadRichTextBox with the built in spell-checker and am running into issues where possessives are marked as misspelled.

For example
  • supervisor is marked correct as a singular
  • supervisors is marked correct as a plural
  • supervisor's is marked incorrect
  • supervisors' is marked correct

My thought on the last item is that the spell checker is seeing the plural and not the plural possessive but I don't understand why the stray apostrophe would be considered okay.

So I'm confused as to the rules of possessives within the dictionary.

If anyone can offer clarity and possibly a way to allow possessives I would be most appreciative.

Many thanks!
Iva Toteva
Telerik team
 answered on 31 Jul 2013
2 answers
170 views
Hi,

I have a RadDocking control, DragDropMode="Deferred".
Attempts to dock a pane to the root compass fail if the cursor is still within the dragged pane.

<tt:RadDocking DragDropMode="Deferred" HasDocumentHost="False">
    <tt:RadSplitContainer>
        <tt:RadPaneGroup>
            <tt:RadPane Header="Pane 1" />
        </tt:RadPaneGroup>
    </tt:RadSplitContainer>
    <tt:RadSplitContainer Orientation="Vertical">
        <tt:RadPaneGroup>
            <tt:RadPane Header="Pane 2" />
        </tt:RadPaneGroup>
        <tt:RadPaneGroup tt:ProportionalStackPanel.RelativeSize="100,25">
            <tt:RadPane Header="Pane 3" />
        </tt:RadPaneGroup>
    </tt:RadSplitContainer>
</tt:RadDocking>

Steps to replicate:

 1. Attempt to dock Pane 2 to the right of the Root Compass (see img2): Fail
 2. Attempt to dock Pane 3 to the bottom of the Root Compass (hover the mouse such that the compass for Pane 3 appears. see img3): Fail
3. Attempt to dock Pane 3 to the bottom of the Root Compass (hover the mouse such that the compass for Pane 1 appears): Success

Any ideas? Thanks!

Josh
Vladi
Telerik team
 answered on 31 Jul 2013
1 answer
123 views
Hi,

I'm new to WPF development, and am wanting to see if it is possible to bind properties of the RadGridView (such as CanUserSortColumns) to application settings?  i.e. I have defined a set of application settings such as AllowSorting, AllowGrouping etc, and it seems I should be able to bind the relevant properties on RadGridView to these settings, but I don't know how.

Any help appreciated,
Neil.
Dimitrina
Telerik team
 answered on 31 Jul 2013
5 answers
1.0K+ views
Hi,

I like to use the button for a Hyperlink Button. Everything looks fine if I´m setting the IsBackgroundVisible Property to false. 

But it´s not possible for me to change the mouse if the user has the mouse over the button. At this moment I like to show a Hand mouse courser.

Thanks for your help.


Pavel R. Pavlov
Telerik team
 answered on 31 Jul 2013
3 answers
102 views
Hi,

I have class with 2 properties: - Display name
                                                - Value
I create some instances from this class and I should that all instance will be row in my property grid.

How can I do it?

thanks!
Dimitrina
Telerik team
 answered on 30 Jul 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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?