Telerik Forums
UI for WPF Forum
4 answers
139 views
Do you have an sample for applying a transition when loading  a diagram.  For example, if I have an existing diagram and want to fade or zoom to a new diagram when I issue the Load() command?
The Cowboy
Top achievements
Rank 1
 answered on 09 May 2012
3 answers
186 views
Hi,

I'm using a RadTileView and it contains some Textblocks. I have a Combobox above the RadTileView that contains int values for font sizes so that when a combobox selection is made the font size of the Textblocks are updated. When I adjust the window size of the RadTileView (with the mouse) it'll update the views so the new font size fits right. I'd like to update the views whenever the combobox is refreshed so I don't have to resize the window manually to achieve this. Preferably in xaml as the RadTileView is within a DataTemplate and difficult to get to.

If it's any help, the binding the Textblocks use is {Binding Source={StaticResource TVFieldSetsVM}, Path=CommonFontSize}.

Thanks
Zarko
Telerik team
 answered on 09 May 2012
2 answers
67 views
I want to move the "add new Record button" to the bottom becase
a) it's more intutive that way and
b) it sometimes dosn't update and then the new record still appears to be the first record instead of the last which is what it really is.

There is a soltion that changes the control template using something called "<VisualStateManager.VisualStateGroups>" which I can't use because I'm still using visual studio 3.5 not 4.0.  I am by no means an expert with wpf yet so I don't even know how to do a control template.  Can someone point me in the right direction.
Alex
Top achievements
Rank 1
 answered on 09 May 2012
2 answers
86 views
I can't figure out how to get rid of the vertical line on the X Axis at zero on my scatter chart.  I have some scatter charts that it appears in and others that it does not, but I am unable to find an axis property that control this.  Does anyone know how to control this? 

Thanks!
Nicholas
Top achievements
Rank 2
 answered on 09 May 2012
2 answers
133 views
Hi Telerik Team,

the telerik example Programatically selecting visual items with the new interactivity api in radchart
helped me a lot, because i needed exactly this behaviour, but i have a problem to style the points.

I tried this (with different colors to see what is applied)
telerik:SeriesAppearanceSettings x:Key="BenchmarkAppearance"
                                                  Stroke="Wheat"
                                                  StrokeThickness="2"
                                          Fill="DarkBlue">
            <telerik:SeriesAppearanceSettings.PointMark>
                <telerik:PointMarkAppearanceSettings Shape="Circle" Stroke="White" StrokeThickness="1"
                                                     Fill="Gray"/>
            </telerik:SeriesAppearanceSettings.PointMark>
        </telerik:SeriesAppearanceSettings>

and this
<Style x:Key="BenchmarkPointStyle" TargetType="telerik:PointMark">
        <Setter Property="Shape"
                Value="Circle" />
        <Setter Property="Stroke"
                Value="White" />
        <Setter Property="StrokeThickness"
                Value="1" />
        <Setter Property="Fill"
                Value="Yellow" />
    </Style>

and this one from the help file RadControls Wpf
LineSeriesDefinition l = new LineSeriesDefinition();
l.Appearance.PointMark.Stroke = new SolidColorBrush( Colors.Blue );
l.Appearance.PointMark.StrokeThickness = 1;
l.Appearance.PointMark.Fill = new SolidColorBrush( Colors.Transparent );
l.Appearance.PointMark.Shape = MarkerShape.Diamond;
this.radChart.DefaultSeriesDefinition = l;

but none of them worked really out.
The first example works until the selected points are deselected. After deselection the style is the default
style and not my applied one. (My next attempt is to set the style again, after the points are deselected.)

Do you have any idea?

kind regards
Hubert
Yavor
Telerik team
 answered on 09 May 2012
1 answer
80 views
hi,

How can i write report title which is exported from Gridview in excel format?

Thanks in advance...

Regards,
Yasser
Pavel Pavlov
Telerik team
 answered on 09 May 2012
3 answers
102 views
Gap between content image & its text is not correctly shown in html...
Mihail
Telerik team
 answered on 09 May 2012
9 answers
566 views

Hello Telerik,

This is probably a silly question with an obvious answer - but I am having issues with my CellTemplate content binding...
<telerik:RadGridView x:Name="GridViewDetailAC"
                AutoGenerateColumns="False"
                AlternateRowBackground="White"
                AlternationCount="2"
                AllowDrop="True"
                CanUserSelect="True"
                CanUserDeleteRows="False"
                CanUserInsertRows="False"
                CanUserResizeColumns="True"
                EditTriggers="None"
                Grid.Row="1"
                Grid.Column="0"
                Grid.ColumnSpan="4"
                HorizontalGridLinesBrush="SlateGray"
                ItemsSource="{Binding XXXX}"
                RowIndicatorVisibility="Collapsed"
                RowHeight="26"
                SelectedItem="{Binding Path=SelectedXXXX,
                                NotifyOnSourceUpdated=True
                                UpdateSourceTrigger=PropertyChanged}"
                SelectionMode="Single"
                SelectionUnit="FullRow"                                                                    
                ShowColumnFooters="False"
                ShowGroupPanel="False"
                ShowColumnHeaders="True"
                VerticalGridLinesBrush="Transparent">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="Vendor"
                            Width="Auto"
                            TextAlignment="Left"
                            IsVisible="{Binding ElementName=ckbVendorVisi,
                                          Path=IsChecked,
                                          FallbackValue=0}">
            <telerik:GridViewDataColumn.CellTemplate>
                <DataTemplate>
                    <DockPanel>
                        <Label Content="{Binding Path=LV_Name, FallbackValue=''}"
                             Visibility="{Binding Path=NotNewRecord,
                                            FallbackValue=0,
                                            Converter={StaticResource BoolVisiRevConv2}}"/>
                        <TextBox  Text="{Binding Path=LV_Name, FallbackValue=''}"
                              Visibility="{Binding Path=NotNewRecord,
                                             FallbackValue=0,
                                             Converter={StaticResource BoolVisiConv2}}"/>
            </DockPanel>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>

The above piece of code, using MVVM, produces a 'System.Windows.Data Information XX' errors - Three to be exact: 41, 20, 21 for each ViewModel property binding.
System.Windows.Data Information: 41 : BindingExpression path error: 'LV_Name' property not found for 'object' because data item is null.  This could happen because the data provider has not produced any data yet. BindingExpression:Path=LV_Name; DataItem=null; target element is 'Label' (Name=''); target property is 'Content' (type 'Object')
System.Windows.Data Information: 20 : BindingExpression cannot retrieve value due to missing information. BindingExpression:Path=LV_Name; DataItem=null; target element is 'Label' (Name=''); target property is 'Content' (type 'Object')
System.Windows.Data Information: 21 : BindingExpression cannot retrieve value from null data item. This could happen when binding is detached or when binding to a Nullable type that has no value. BindingExpression:Path=LV_Name; DataItem=null; target element is 'Label' (Name=''); target property is 'Content' (type 'Object')
System.Windows.Data Information: 41 : BindingExpression path error: 'NotNewRecord' property not found for 'object' because data item is null.  This could happen because the data provider has not produced any data yet. BindingExpression:Path=NotNewRecord; DataItem=null; target element is 'Label' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Information: 20 : BindingExpression cannot retrieve value due to missing information. BindingExpression:Path=NotNewRecord; DataItem=null; target element is 'Label' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Information: 21 : BindingExpression cannot retrieve value from null data item. This could happen when binding is detached or when binding to a Nullable type that has no value. BindingExpression:Path=NotNewRecord; DataItem=null; target element is 'Label' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Information: 41 : BindingExpression path error: 'LV_Name' property not found for 'object' because data item is null.  This could happen because the data provider has not produced any data yet. BindingExpression:Path=LV_Name; DataItem=null; target element is 'TextBox' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Information: 20 : BindingExpression cannot retrieve value due to missing information. BindingExpression:Path=LV_Name; DataItem=null; target element is 'TextBox' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Information: 21 : BindingExpression cannot retrieve value from null data item. This could happen when binding is detached or when binding to a Nullable type that has no value. BindingExpression:Path=LV_Name; DataItem=null; target element is 'TextBox' (Name=''); target property is 'Text' (type 'String')
System.Windows.Data Information: 41 : BindingExpression path error: 'NotNewRecord' property not found for 'object' because data item is null.  This could happen because the data provider has not produced any data yet. BindingExpression:Path=NotNewRecord; DataItem=null; target element is 'TextBox' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Information: 20 : BindingExpression cannot retrieve value due to missing information. BindingExpression:Path=NotNewRecord; DataItem=null; target element is 'TextBox' (Name=''); target property is 'Visibility' (type 'Visibility')
System.Windows.Data Information: 21 : BindingExpression cannot retrieve value from null data item. This could happen when binding is detached or when binding to a Nullable type that has no value. BindingExpression:Path=NotNewRecord; DataItem=null; target element is 'TextBox' (Name=''); target property is 'Visibility' (type 'Visibility')

If I swap the CellTemplate out and use the DataMemberBidning property on the GridViewDataColumn then no binding error(s) occur - BUT I require the dual content hide/show feature.

I have also attempted to use the other types of GridViewColumn available but that seemed to make little difference in the outcome.

Can you help me determin why my non-null ItemsSource and its non-null properties are not being friendly with your RadGridView's columns?


Cheers,
Dimitrina
Telerik team
 answered on 09 May 2012
5 answers
155 views
Hi,
Another question,
we are working with wcf data services and the dataservicedatasource (the mvvm way - QueryableDataServiceCollectionView) with the datapager.
On certain scenarios, after adding a new item for example, we would like to set the current item in the datagrid to an item 
which may or may not be on the presented page in the pager.
 the MoveCurrentTo() method does not work if it is not on the collection of the page retrieved.

Is there an easy way to do so?
 
Thanks
Rossen Hristov
Telerik team
 answered on 09 May 2012
4 answers
127 views
Hi 
In our application which is based on wcf data services and Entity Framework, we are using the dataservicedatasource in the mvvm pattern(with the QueryableDataServiceCollectionView object) togeher with the RadDataFilter.
the filter works great in all scenarios but when trying to retrieve data based on the "equal filter" of the property which is the primary key of the table we get this exception:
 "Error translating Linq expression to URI: Cannot specify query options (orderby, where, take, skip) on single resource" (which is also the query on the loadingeventargs of the LoadingData event of the QueryableDataServiceCollectionView).
i.e. only when fetching a single data.
the Query.expression which is generated is:
Convert([10000].Where(item => (item.Company_No == 54)).Take(14)).IncludeTotalCount()

Thanks

nuritk
Top achievements
Rank 1
 answered on 09 May 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?