Telerik Forums
UI for WPF Forum
6 answers
372 views

Hi,

I'm using ScheduleView to load custom appointments with the Load on demand features. The appointments load fine, but whenever I scroll backward or forward in time (e.g. previous/next week or month) the calendar scrolls back to the top, instead of staying at the time it was scrolled to before navigation.

This also occurs in the RadControls demo; just navigate to Controls -> Data -> Schedule View -> Features -> Load On Demand. Now click Week view. Scroll down to 18:00. Now click the right arrow to navigate to next week. The view scrolls back to the top at 0:00.

Any ideas on how to fix this? I found no method to manually get and set the scrolling position either.

Rosi
Telerik team
 answered on 05 May 2011
4 answers
320 views
I have been looking and trying for hours to print a telerik gridview. I succeeded in printing, in about the same way as described at http://blogs.telerik.com/vladimirenchev/posts/09-12-28/how_to_easy_print_and_print_preview_with_radgridview_for_wpf.aspx, but this causes the last row on each page to be splitted in half. The upper part of the row is at the end of page 1 and the lower part of that row is at the beginning of page 2. This is unacceptable.

How can I print the gridview in a decent way, without rows being splitted over two pages?
Ludwig
Top achievements
Rank 1
 answered on 05 May 2011
5 answers
122 views
 

Hello,


I don't speak English very well, but I have a question about the API WPF Telerik.


I would like to know if it's possible to draw on charts?


The user must be able to draw a rectangle on a scatter series using the mouse.


This rectangle will be modified in width. The height will be automatically adjusted based on the average of selected points in the rectangle.


We would like to know if this is feasible or not via the API WPF Telerik and if so using what events?


Best regards,

Mickael
Top achievements
Rank 1
 answered on 05 May 2011
1 answer
61 views
Sorry guys, as it turns out someone had forgotten to put Mode=TwoWay in our control wrapper's consumer code.
Maya
Telerik team
 answered on 05 May 2011
1 answer
165 views
Hi!
We're testing telerik maps trying to know if we can develop our requirements with them. We have found an error / incompatibility that we can not understand. We installed Dbf Viewer 2000 (trial) because we need to modify DBF files.
Dbf Viewer 2000 creates an association to Dbf Files that causes telerik maps (the ones that use data source files) to crash. The exception is this:

No se controló System.ArgumentException
  Message=Un símbolo (token) no es válido. Consulte RFC 2616 para corregir el tipo de gramática o contenido.
  Source=WindowsBase
  StackTrace:
StackTrace:
       en MS.Internal.ContentType.ValidateToken(String token)
       en MS.Internal.ContentType.ParseTypeAndSubType(String typeAndSubType)
       en MS.Internal.ContentType..ctor(String contentType)
       en MS.Internal.MimeTypeMapper.GetMimeTypeFromUrlMon(Uri uriSource)
       en MS.Internal.MimeTypeMapper.GetMimeTypeFromUri(Uri uriSource)
       en MS.Internal.AppModel.ResourcePart.GetContentTypeCore()
       en System.IO.Packaging.PackagePart.get_ContentType()
       en MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
       en System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
       en System.IO.Packaging.PackagePart.GetStream()
       en System.Windows.Application.GetResourceStream(Uri uriResource)
       en Telerik.Windows.Controls.Map.MapShapeReader.ReadData(Uri dataUri, ShapeReaderStatus userState)
       en Telerik.Windows.Controls.Map.MapShapeReader.Read(Uri uri, Uri dataUri)
       en Telerik.Windows.Controls.Map.MapShapeReader.Read()
       en Telerik.Windows.Controls.Map.MapShapeReader.StartRead()
       en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       en MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       en System.Windows.Threading.DispatcherOperation.InvokeImpl()
       en System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       en System.Threading.ExecutionContext.runTryCode(Object userData)
       en System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       en System.Windows.Threading.DispatcherOperation.Invoke()
       en System.Windows.Threading.Dispatcher.ProcessQueue()
       en System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       en MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       en System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       en MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       en System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       en System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       en System.Windows.Threading.Dispatcher.Run()
       en System.Windows.Application.RunDispatcher(Object ignore)
       en System.Windows.Application.RunInternal(Window window)
       en System.Windows.Application.Run(Window window)
       en System.Windows.Application.Run()
       en XXXXXXXXXXXXXXXXXXXXXX.App.Main() en XXXXXXXXXXXXXXXXXXXXXX\obj\x86\Debug\App.g.cs:línea 0
       en System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       en System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       en Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       en System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       en System.Threading.ThreadHelper.ThreadStart()

We have found that this is happening only when relative uri to resource is used. If we remove folder .dbf in HKEY_CLASSES_ROOT of registry maps don't crash.

We can not use absolute paths and we can not control the software installed on client's computers so there is a risk that maps crashes with any software doing the same with data source files.

You can try this with telerik demos.
Andrey
Telerik team
 answered on 05 May 2011
1 answer
184 views
Hi,

I have a grid like:

<telerik:RadGridView Name="patientsGridView" SelectionMode="Extended" ItemsSource="{Binding Patients}" SelectedItem="{Binding SelectedPatient}" AutoGenerateColumns="False" IsReadOnly="True" MouseDoubleClick="patientsGridView_MouseDoubleClick" RowIndicatorVisibility="Collapsed" SelectionChanged="patientsGridView_SelectionChanged" GroupPanelStyle="{DynamicResource GridViewGroupPanelStyle1}" >                      
    <telerik:RadGridView.Columns>

<!-- IsActiveGroup -->
<telerik:GridViewDataColumn DataMemberBinding="{Binding IsActiveGroup}" >
<telerik:GridViewDataColumn.FilteringControl>
<GridView:FilteringControl Style="{DynamicResource FilteringControlStyle}"/>
</telerik:GridViewDataColumn.FilteringControl>
<telerik:GridViewDataColumn.Header>
<TextBlock Text=" " ToolTip="{lex:LocText S3.ParametersUE.PatientManagement:UIStrings:PatientListView_PatientGridColumnIsActiveToolTip}"/>
</telerik:GridViewDataColumn.Header>
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<Image Source="{Binding Path=IsActiveImageSource, Converter={StaticResource imgConverter}}" Stretch="UniformToFill" RenderOptions.BitmapScalingMode="HighQuality" Width="20" Height="20" ToolTip="{Binding IsActiveGroup}" />
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
 <!-- HasWarningGroup -->
<telerik:GridViewDataColumn DataMemberBinding="{Binding HasWarningGroup}" >
<telerik:GridViewDataColumn.FilteringControl>
<GridView:FilteringControl Style="{DynamicResource FilteringControlStyle}"/>
</telerik:GridViewDataColumn.FilteringControl>
<telerik:GridViewDataColumn.Header>
<TextBlock Text=" " ToolTip="{lex:LocText S3.ParametersUE.PatientManagement:UIStrings:PatientListView_PatientGridColumnHasWarningToolTip}"/>
</telerik:GridViewDataColumn.Header>
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<Image Source="{Binding Path=HasWarningImageSource, Converter={StaticResource imgConverter}}" Stretch="UniformToFill" RenderOptions.BitmapScalingMode="HighQuality" Width="20" Height="20" ToolTip="{Binding HasWarningGroup}" />
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>

etc...

I need the width of the grid - but ActualWidth is always 0. How can I get the width of the grid?





Ivan Ivanov
Telerik team
 answered on 05 May 2011
1 answer
49 views
Hello everybody,

is there a way to identify the RadPaneGroup which is positioned in the lower left corner of the docking area? In my application this is the place where dynamically added pane should be shown.

I already read in another thread that the method RadDocking.GetDockState does not work properly.

Kind regards

Uli
George
Telerik team
 answered on 05 May 2011
1 answer
103 views
Hi there,
    I am looking for a way to bind a collection of objects inside a TreeListView Grid column. I am able to bind to all of the objects in my hierarchy and have them displayed correctly in the TreeListView Grid. My Object model is something like this

NoteObject
        Text
        DateCreated
        DateModified
        Collection of Sub Notes ( of type Note )
        Collection of Flag Objects

Flag Object
       text
        type
    

The TreeListView Grid correctly displays the object hierarchy but I do not seem to be able to bind to the collection of Flag Objects. I would also like to use a converter on the Flag objects to change the background color of the cell based on the Flag Type. Could you send me an example of how to do this?

Thanks
Ivan Ivanov
Telerik team
 answered on 05 May 2011
2 answers
654 views
Hello,

I have pretty much the same problem describe in that post : http://www.telerik.com/community/forums/wpf/gridview/rowdetailstemplate-and-text-wrapping.aspx .

Inside my RowDetails I have a control with some textblocs (set to warp). I dont want the horizontal scrollbar, to make my textblock warp.

The difference with the previous link is that I dont want to set the RadGridView width to a constant value. (to follow the window size)

I want the RowDetails width to be the same as the RadGridView width. I've set the ScrollViewer.HorizontalScrollBarVisibility= to "Disabled"

So I tried to bind the MaxWidth of my control inside the RowDetails value with RadGridView but it doesnt work (textblocs don't warp and horizontal scrollbar is still on)

this is my code :

<telerikGrid:RadGridView x:Name="MRUList" 
            ItemsSource="{Binding MRUSupplierItems, Mode=TwoWay}"  
            SelectedItem="{Binding CurrentSelectedSupplierItem, Mode=TwoWay}"
            Grid.Row="1" d:LayoutOverrides="Width" VerticalAlignment="Top"
            IsSynchronizedWithCurrentItem="True" 
            RowIndicatorVisibility="Collapsed" ShowGroupPanel="False" IsFilteringAllowed="False"
            AutoGenerateColumns="False" CanUserInsertRows="False" RowDetailsVisibilityMode="Collapsed"
            IsReadOnly="True" CanUserDeleteRows="True"
            CanUserFreezeColumns="False" Margin="2,2,2,0" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
         >
            <telerikGrid:RadGridView.Columns>
                <telerikGrid:GridViewDataColumn Header="{Binding Resource.GridTitleBrandName, Source={StaticResource Resource}}" UniqueName="PriceList_Name" DataMemberBinding="{Binding PriceList_Name}" IsSortable="True"/>
                <telerikGrid:GridViewDataColumn Header="{Binding Resource.GridTitleProductRef, Source={StaticResource Resource}}" UniqueName="Reference" DataMemberBinding="{Binding Reference}" IsSortable="True"/>
                <telerikGrid:GridViewDataColumn Header="{Binding Resource.GridTitleProductName, Source={StaticResource Resource}}" Width="*" UniqueName="Name" DataMemberBinding="{Binding Name}" IsSortable="True" />
                <telerikGrid:GridViewDataColumn Header="{Binding Resource.GridTitleProductPrice, Source={StaticResource Resource}}" UniqueName="Price" DataMemberBinding="{Binding PublicPrice}" IsSortable="True" />
            </telerikGrid:RadGridView.Columns>
              
            <telerikGrid:RadGridView.RowDetailsTemplate>
                <DataTemplate x:Name="RowDetailsProvider">
                    <local:SupplierItemUserControl 
                        MaxWidth="{Binding Width, ElementName=MRUList}"
                        AddItemToQuotationCommand="{Binding ElementName=ElytecMRUUC, Path=DataContext.AddItemToQuotationCommand, Mode=TwoWay}"
                        AddItemToCartCommand="{Binding ElementName=ElytecMRUUC, Path=DataContext.AddItemToCartCommand, Mode=TwoWay}"
                        DisplayAddToCart="True"
                        DisplayAddToQuotation="{Binding IsCurrentQuotationAvailable, Mode=OneWay}"
                        DisplayRemoveFromCart="False"
                    />
                </DataTemplate>
            </telerikGrid:RadGridView.RowDetailsTemplate>
              
        </telerikGrid:RadGridView>

Thanks for your help!

Regards.
Jean
Top achievements
Rank 1
 answered on 05 May 2011
1 answer
128 views
Hello Telerik Team,

I have a RadOutlookBar, in which is currently one view that inherits from RadOutlookBarItem. In that view I overrided the OnIsSelectedChanged-Method from RadOutlookBarItem.
In the view, that contains the RadOutlookBar-Control, I added an eventhandler to the event PreviewSelectionChanged. So when I started the Application with the View, following methods are called:

1. OnIsSelectedChanged of the RadOutlookBarItem (oldvalue=false, newvalue=true)
2. The event PreviewSelectionChanged of the RadOutlookBar is fired (and certainly my eventhandler is called)

And if SelectionChangedEventArgs.Handled is set to true
3. OnIsSelectedChanged of the RadOutlookBarItem(oldvalue=true, newvalue=false)

Why is OnIsSelectedChanged called before the PreviewSelectionChanged-Event is fired?

Further Question:
If I click on the unselected OutlookBarItem, at first PreviewSelectionChanged from OutlookBar ist fired, if the Handled-Property is set to true, the OnIsSelectedChanged-Method of the Item ist called twice (first time with newValue = false, the second time with newValue = true)

Why is the OnIsSelectedChanged-Method called twice?
Hristo
Telerik team
 answered on 05 May 2011
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?