Telerik Forums
UI for WPF Forum
3 answers
155 views
Hi,

I've just downloaded the trial copy of the software and am having a play ATM.  I've done some searching but havent found the answer to my questions.  I hope someone can help!!

1. Is it possible to remove the toolbar (ref. radschedulateviewtoolbar attachment) from the RadScheduleView control?

2. I want to create a custom view which would consist of a month view (on the left) which would populate a day view (on the right) each time a specfic day is selected in the month view.  Is this possible?

3. When creating/editing appointments, is there a DelegateCommand I can use to bring up my own windows (popups), or event better is there a way I can use the telerik dialogs in my own views?

Thanks
Abs

Lancelot
Top achievements
Rank 1
 answered on 07 Jun 2012
4 answers
317 views
Version: Q1 2012, .NET40

We have encountered some issues regarding column (re)sizing in the RadGridView. Our scenario is as follows:

We have a minimal definition of the grid in XAML code, while the main constructing part is handled by procedural code. The following three issues occur when the grid columns have mixed GridViewLength unit types of "Star" and "Auto":

  1. A bizarre behavior takes place when resizing a column with the mouse. The behavior is reproduced by following the two steps bellow:
    a. Initially enlarge a column up to some point
    b. Then try to shorten the column. After a certain point, the column will be reduced automatically to a minimum width, having been overtaken by its preceding one.
  2. Columns do not size correctly when a sequence of maximize - restore is performed. Instead, after restoring the maximized container, all columns (and thus the GridView as a whole) maintain the size they had obtained at maximization. (which naturally results to the appearance of a vertical scrollbar)
  3. The grid seems unable to display column sizes correctly, when it is rendered within a non-visible panel (for instance, within a non selected TabItem of a TabControl). To be more specific, all columns seem to be rendered with a minimum width, thus leading to an unacceptable visual effect. That effect gets rectified either by resizing columns through user interaction (which however will lead to issue #1), or after the grid has been visually refreshed (usually by refreshing both its column definition and data source by procedural code)

We have managed to reproduce issues #1 & #2 in a test project, consisting of the following code:

MainWindow.xaml:

<Window x:Class="MainWindow"
        xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
        Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
  <Grid>
    <!--<TabControl>
      <TabItem Header="Blank Tab"></TabItem>
      <TabItem Header="RadGridView Tab">
         
      </TabItem>
    </TabControl>-->
 
    <telerik:RadGridView Name="grid" telerik:StyleManager.Theme="Windows7"
                             ShowGroupPanel="False" CanUserResizeColumns="True" CanUserFreezeColumns="False"
                             IsReadOnly="True" AutoGenerateColumns="False"  CanUserDeleteRows="False"
                             CanUserInsertRows="False" IsFilteringAllowed="False" RowIndicatorVisibility="Collapsed"
                             CanUserReorderColumns="True" ReorderColumnsMode="ReorderColumns">
      <telerik:RadGridView.HeaderRowStyle>
        <Style>
          <Setter Property="telerikGrid:GridViewHeaderCell.FontWeight" Value="Bold"/>
        </Style>
      </telerik:RadGridView.HeaderRowStyle>
    </telerik:RadGridView>
  </Grid>
</Window>

MainWindow.xaml.vb

Imports Telerik.Windows.Controls
Imports Telerik.Windows.Controls.GridView
Imports Telerik.Windows.Data
 
Class MainWindow
 
  Private Sub Window_Loaded(sender As System.Object, e As System.Windows.RoutedEventArgs)
    Me.grid.Columns.AddRange(GridColumns)
    Me.grid.ItemsSource = TestData()
  End Sub
 
  Private Shared Function GridColumns() As IEnumerable(Of GridViewBoundColumnBase)
    Return {
      New GridViewDataColumn With {.UniqueName = "String1", .Header = "Topic", .Width = New GridViewLength(1, GridViewLengthUnitType.Star)},
      New GridViewDataColumn With {.UniqueName = "String2", .Header = "Company", .Width = New GridViewLength(1, GridViewLengthUnitType.Star)},
      New GridViewDataColumn With {.UniqueName = "String3", .Header = "Phase", .Width = New GridViewLength(1, GridViewLengthUnitType.Auto)},
      New GridViewDataColumn With {.UniqueName = "Decimal1", .Header = "Revenue", .Width = New GridViewLength(1, GridViewLengthUnitType.Auto)},
      New GridViewDataColumn With {.UniqueName = "Decimal2", .Header = "Sales Cycle", .Width = New GridViewLength(1, GridViewLengthUnitType.Auto)}
    }
  End Function
 
  Private Shared Function TestData() As IEnumerable(Of DataModelObject)
    Return {
      New DataModelObject With {.String1 = "100 CRM licenses", .String2 = "SENSO PER LAY", .String3 = "SALE SUCCESSFULL", .Decimal1 = 8000, .Decimal2 = 0},
      New DataModelObject With {.String1 = "e-com...", .String2 = "CONTROL SYSTEMS", .String3 = "SALE SUCCESSFULL", .Decimal1 = 22800, .Decimal2 = 0},
      New DataModelObject With {.String1 = "LEAD-00004", .String2 = "KLEEMAN HELLAS", .String3 = "SALE SUCCESSFULL", .Decimal1 = 80, .Decimal2 = 122},
      New DataModelObject With {.String1 = "Telemarketing services", .String2 = "CITYBANK", .String3 = "SALE SUCCESSFULL", .Decimal1 = 4200, .Decimal2 = 1435}
    }
  End Function
 
End Class

DataModelObject.vb

Public Class DataModelObject
 
  Public Property String1 As String
 
  Public Property String2 As String
 
  Public Property String3 As String
 
  Public Property Decimal1 As Decimal
 
  Public Property Decimal2 As Decimal
 
End Class

Unfortunately, we have not managed to reproduce issue #3. We have strong reason to believe that it is related somehow to the other two issues though, since we found out that setting all column size types to GridViewLengthUnitType.Star resolves the problem. However, that is not a valid workaround for us, since automatic column sizing is an essential requirement in many of our usage scenarios. I have attached the following two screenshots that may give you a better (visual) understanding of this issue.

Yours faithfully,
Nikos Nakas
Entersoft SA Development Department
Vera
Telerik team
 answered on 07 Jun 2012
2 answers
156 views
I have a hierarchical grid with a single horizontal scroll bar that scrolls both the parent and child grids.  I would like to have two horizontal scrollbars: one for the parent grid and one for the child.  How can I accomplish this.  I have done some reading online and I found what I thought should solve the problem:  UseScrollbarsInHierarchy property but this only seems to be available on Winform and not WPF.

I'd appreciate any assistance.
Edwin
Top achievements
Rank 1
 answered on 07 Jun 2012
1 answer
208 views
Hello,

I am not able to bind the PDFViewer Command for setting the Scale Factor with a regular ComboBox like so:

<Button
  Command="{Binding ZoomInCommand}">
  <Image Source="/Telerik.Windows.Controls.FixedDocumentViewers;component/Images/zoom-in.png" Stretch="None" />
</Button>

<Button
  Command="{Binding ZoomOutCommand}">
  <Image Source="/Telerik.Windows.Controls.FixedDocumentViewers;component/Images/zoom-out.png"
              Stretch="None" />
</Button>

<ComboBox
  Margin="2"
  Height="Auto"
  SelectedIndex="4"
  Text="{ Binding Path=FixedDocumentViewer.ScaleFactor,
              Converter={StaticResource doubleToStringPercentConverter},
              Mode=TwoWay}">
              <ComboBoxItem Content="25%" />
               <ComboBoxItem Content="50%" />
               <ComboBoxItem Content="100%" />
               <ComboBoxItem Content="150%" />
               <ComboBoxItem Content="200%" />
               <ComboBoxItem Content="500%" />
</ComboBox>

When I click on one of the Buttons the document change it size but the new scale factor is not shown in the ComboBox - except 100.

I am using the PDF Viewer Control inside a WPF User Control - if I am using the Control directly inside the WPF window it works like int the WPF demo.

May be I am missing a reference in the main project?

Regards,
Peter

 
Kammen
Telerik team
 answered on 07 Jun 2012
2 answers
154 views
Hello,
I am attempting to use the CandleStick control to display a Box Plox that includes the median value. The example found at the link below indicates this should be possible but I am seeing the same behavior as the comment indicates, the custom line is drawn correctly but all of the CandleStick elements are not visible. The PART_CenterRectangle is the correct size but has an opacity of 0 while the Upper and Lower line elements simply do not seem to be sized correctly.

http://blogs.telerik.com/blogs/posts/11-04-21/how-to-create-scatter-error-bars-and-box-plot-series-with-radchart-for-sl-wpf.aspx

I have successfully created a custom 'Series' type that works as long as CreateChartItem() returns a CandleStick object, but as soon as CreateChartItem() creates any type that extends CandleStick (even if that class is completely empty) the CandleStick visuals do not appear. Thanks,
Jason
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 07 Jun 2012
6 answers
448 views
How can I be sure that PDFViewer has finished loading a document when using the ReadOnDemand mode?

I've setup a small sample app and the OnDocumendLoaded event does not fire.

Is this event already part of the documentation and/or is there some sample code available?

Kind regards,
Victor
Kammen
Telerik team
 answered on 07 Jun 2012
0 answers
125 views
RadPanes be default always appear on top of the RadDocking window.
Is it possible to send them to the back after the RadDocking window?
Pieter
Top achievements
Rank 2
 asked on 07 Jun 2012
3 answers
113 views
Hi,

I have a problem with navigating through TreeListView. TLV is binded to a flat collection, that contains at least 3 columns. Focusing cells using mouse is no problem. However, using keyboard arrows I am able to navigate to cells in first column only, I cannot get at all to cells in other columns..

Why is this happening?

Regards,
Goran
Ivan Ivanov
Telerik team
 answered on 07 Jun 2012
6 answers
352 views
Hi,
how can I style the Scrollbar, which appears when I zoom into the chart?
I wanna change it to be more touch friendly.

Cheers,
Enrico
Evgenia
Telerik team
 answered on 07 Jun 2012
1 answer
124 views
Hello,

I am evaluating the Telerik diagramming component for WPF and am getting a run time error from the basic example in the documentation, http://www.telerik.com/help/wpf/raddiagram-data-code-behind.html.  In my project I have referenced the following libraries from the RadControls for WPF Q1 2012 SP1\Binaries\WPF40 directory:
Windows.Controls
Windows.Controls.Diagrams
Windows.Diagrams.Core

Am I missing needed references?

Thank you for your help.

Stack trace:
    at Telerik.Windows.Controls.RadDiagramConnection.Update(Boolean isManipulating) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Diagrams\Visuals\Connections\RadDiagramConnection.cs:line 563
   at Telerik.Windows.Controls.RadDiagramConnection.OnApplyTemplate() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Diagrams\Visuals\Connections\RadDiagramConnection.cs:line 490
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Canvas.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Canvas.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
   at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Interop.HwndSource.SetLayoutSize()
   at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   at System.Windows.Forms.Integration.ElementHost.OnHandleCreated(EventArgs e)
   at System.Windows.Forms.Control.WmCreate(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Integration.ElementHost.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Petar Mladenov
Telerik team
 answered on 07 Jun 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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
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
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?