Telerik Forums
UI for WPF Forum
1 answer
94 views
Hi,

It seems that the watermark is not present when exporting to pdf file. It's there when printing, exporting in docx or rtf format but, no chance, not in pdf. Is it a known issue?

thanks,

Patrick
Martin Ivanov
Telerik team
 answered on 08 Jun 2012
1 answer
107 views
How can I reduce the height of the hour rows in the scheduleview ?

In attach what I means
Thanks

Luca
Yana
Telerik team
 answered on 08 Jun 2012
2 answers
225 views
Hi

i.m trying to check my "GridViewDataColumn". I can't find a KeyPress Event to check the input. How do i check, if
the input string is a number?

Allowed is just 0-9!

Thanks
regads
rene

ITA
Top achievements
Rank 1
 answered on 08 Jun 2012
1 answer
130 views
Hello,

i use a print method in my program to print every usercontrol the user want to. this method transforms the usercontrols to the printer-size before the real printing starts.
it seems that the radchart has a problem with rezising. you can see the problem in the attachment.
Everything resizes correctly, exept the ChartArea (ChartArea starts at 2k instead of 0). I've tried to call UpdateLayout or Invalidate... on the Chart and/or ChartArea, but nothing seems to work.
Could anyone please help me?

Best Regards,
Thomas
Rosko
Telerik team
 answered on 08 Jun 2012
0 answers
109 views
This is my fault. I forgot to set column width , code working fine -___----!!

////////////////////////////

Hi telerik ,

Can anyone explain me how to add multiple controls into a cell ?
 
I need to add Label and RadButton into Cell (in-line editing mode) something like sniplet below

<telerik:GridViewDataColumn Header="Original" SortMemberPath="OriginalName" HeaderTextAlignment="Center" TextAlignment="Left" Width="80" DataMemberBinding="{Binding OriginalName}">
   <telerik:GridViewDataColumn.CellEditTemplate>
      <DataTemplate>
         <StackPanel Orientation="Horizontal">
             <Label Content="{Binding OriginalName,Mode=OneWay}"/> 
             <telerik:RadButton Name="Lookup" Click="Lookup_Click"/> 
                
<!-- this click event will popup lookup window then bind selected data to OriginalName -->
          </StackPanel>
      </DataTemplate>
   </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>

looking for your response

Regards,
SweNz
SweNz
Top achievements
Rank 1
 asked on 07 Jun 2012
3 answers
168 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
327 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
161 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
216 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
174 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
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?