Telerik Forums
UI for WPF Forum
1 answer
348 views
Hello!

We are using MVVM pattern to build our application. One of our views uses number of NumericUpDown controls. If text of some NumericUpDown is set to empty string by user control displays red frame (see screenshot "validation error"). Property definition you can find in screenshot named "amount property".

The problem is that view model is not updated when text is empty and red frame is displayed. E.g. model still contains previous value.

What is correct way to notify View Model about missing data? Keep in mind that we have significant number of views and each contains set of numeric controls.
Georgi
Telerik team
 answered on 18 May 2012
0 answers
186 views
We have a WPF app which uses RadGrid. As part of the app functionality, we want the grid selection unit to always be of type "row". In addition to this, we also want to expose a mechanism where the user can select a cell value for copy/paste to clipboard. Is there a way to do this? For example, double clicking a cell copies the cell value where as single click always selects the row. Or right click on cell exposes the option to "Copy cell" value? 

Thanks!

H
Top achievements
Rank 1
 asked on 18 May 2012
1 answer
79 views
Does the wpf GridView support direct binding to SqlCeResultSet?
Vlad
Telerik team
 answered on 18 May 2012
1 answer
227 views
Hi,

I'm using RadControls for WPF (version 2012.1.326.40), and my question is about the RadTreeView.
Is it possible to show an overlay image over the RadTreeViewItem's DefaultImageSrc ?

Best regards,
Petar Mladenov
Telerik team
 answered on 18 May 2012
3 answers
329 views
Hi All,

Edit: The title should state that the issue is with ListView items and not ListBox items. Cannot change it now - sorry about the confusion.

I am trying to put a context menu on items in a ListView when that ListView is contained within a RadPanelBarItem that has a context menu. I hope the code example below illustrates what I am trying to do. If I don't add the following then the list items show the expected menu.

<telerik:RadContextMenu.ContextMenu>
     <telerik:RadContextMenu x:Name="_macroActionContextMenu" />
 </telerik:RadContextMenu.ContextMenu>

When I add it (as shown in the snippet below) then I always get the context menu associated with the RadPanelBarItem when I right click on the ListView elements rather than the context menu specified for the ListView.ItemContainerStyle.

Any help would be appreciated. My code snippet is below.

        <telerik:RadPanelBarItem Name="_rpbiMacros" Header="Macros" IsDropAllowed="False" Foreground="#FF4D4D4D" BorderBrush="#FFBCB596" >
            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu x:Name="_macroActionContextMenu" />
            </telerik:RadContextMenu.ContextMenu>
            <!--Constrain the size of the wrap panel so it can do its thing-->
            <Grid Width="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadPanelBar}}, Path=ActualWidth, Converter={StaticResource mathConverter}, ConverterParameter=@VALUE-12;0}">
 
                <!-- View as icons -->
 
                <WrapPanel Name="_wrpMacroActions"
                    Visibility="{Binding ViewMacroActionListAsIcons, Converter={StaticResource boolToVisibilityConverter}, ConverterParameter=Visibility.Collapsed}">
                    <ItemsControl ItemsSource="{Binding MacroActionViewModelList}" >
 
... omitted for clarity
 
                    </ItemsControl>
                </WrapPanel>
 
                <!-- View as list -->
 
                <ListView x:Name="_lviewMacroActions" ItemsSource="{Binding MacroActionViewModelList}" ButtonBase.Click="OnClick_ListViewHeader"
                    Visibility="{Binding ViewMacroActionListAsIcons, Converter={StaticResource invertBoolToVisibilityConverter}, ConverterParameter=Visibility.Collapsed}" >
                    <ListView.Resources>
                        <ContextMenu x:Key="itemContextMenu">
                            <MenuItem Header="Open" Click="OnClick_EditMacroAction">
                            </MenuItem>
                            <MenuItem Header="Delete" Click="OnClick_DeleteMacroAction" >
                                <MenuItem.Icon>
                                    <ContentControl Template="{StaticResource _rscDeleteImage}" />
                                </MenuItem.Icon>
                            </MenuItem>
                        </ContextMenu>
                    </ListView.Resources>
                    <ListView.ItemContainerStyle>
                        <Style TargetType="{x:Type ListViewItem}">
                            <Setter Property="telerik:RadContextMenu.ContextMenu" Value="{StaticResource itemContextMenu}" />
                            <EventSetter Event="MouseDoubleClick" Handler="OnDoubleClick_MacroAction" />
                        </Style>
                    </ListView.ItemContainerStyle>
                    <ListView.View>
                        <GridView>
                            <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Model.MacroName}"/>
                            <GridViewColumn Header="Description" DisplayMemberBinding="{Binding Model.MacroDescription}" />
                        </GridView>
                    </ListView.View>
                </ListView>
 
            </Grid>
        </telerik:RadPanelBarItem>

x
Scott
Top achievements
Rank 1
 answered on 17 May 2012
1 answer
115 views
HI,

i'm using RadControls for WPF Q1 2012 SP1 + c# to create my application. The problem i have:

I use two listboxes wich are bind to an observableCollection. Now i want to drag an item from listbox A to listbox B
what is quiet simple. But on Drop in listbox B i want to save changes in my database. how do i get the information
isdropped, which item is dropped,...?

I tried the Drop (drop="myDropEvent") Event from the listbox, but that was not helpfull.

Thanks
regards
Rene
Nick
Telerik team
 answered on 17 May 2012
3 answers
119 views
Hello,

I am trying to display 3 columns in one.
The result must be like this http://imageshack.us/photo/my-images/560/headergbiv.png/
Because the number of columns to display is variable the TreeListView is completly created in C#.
Is it possible to create such headers in this case?

Thank you
Nick
Telerik team
 answered on 17 May 2012
1 answer
126 views
I know how to implement a SnapBehavior for a ViewDefinition. But is there a way to implement different SnapBehaviors for different resources in the same view?
Yana
Telerik team
 answered on 17 May 2012
3 answers
214 views
I am using the radTileview that has lots of child controls in each tileitem . The itemsource of the tileview can be potentially very large ( in millions).  If I try to load all the tiles, the ui hangs and it takes too long. So what I want to do is read the first 10 data items for the first 10 tileitems from my datasource and show it on the screen and then in the background keep populating the datasource model ( which is an observable collection ). As the datasource gets populated, the tileview should refresh and show the new items.
I tried the following
1. Creating the data source on a background thread, but this does not refresh the ui
2. Using the dispatcherTimer, but the behaviour is quite random. It refreshes the first lot of data and then the screen blanks out

I have set the following properties on the tileview

IsAutoScrollingEnabled

 

="True" IsVirtualizing="True"

 


Please can you suggest some best practises and I would be very obliged if you can send me some sample / example code. The tile view

Many thanks,
Subarna
Zarko
Telerik team
 answered on 17 May 2012
1 answer
161 views
Hi,

I got following exception when I drop the the RadChartesianChart to the empty WPF project, move it and then resizing the chart size in design time?!

System.InvalidOperationException

Cannot set a property on object 'System.Windows.Media.TranslateTransform' because it is in a read-only state.

at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value) at Telerik.Windows.Controls.ChartView.CartesianAxis.UpdateAxisLine(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\CartesianAxis.cs:line 78 at Telerik.Windows.Controls.ChartView.LineAxis.UpdateUICore(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\LineAxis.cs:line 64 at Telerik.Windows.Controls.ChartView.PresenterBase.UpdateUI(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\PresenterBase.cs:line 204 at Telerik.Windows.Controls.ChartView.RadChartBase.UpdateUICore(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\RadChartBase.cs:line 461 at Telerik.Windows.Controls.ChartView.PresenterBase.UpdateUI(ChartLayoutContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\Common\PresenterBase.cs:line 204 at Telerik.Windows.Controls.ChartView.RadChartBase.CallUpdateUI() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\RadChartBase.cs:line 1001 at Telerik.Windows.Controls.ChartView.RadChartBase.ArrangeOverride(Size finalSize) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\RadChartBase.cs:line 708

....

XAML:

 

 

 

<Grid>

 

 

 

 

<telerik:RadCartesianChart HorizontalAlignment="Left" Margin="12,12,0,0" Name="radCartesianChart1" VerticalAlignment="Top" Height="265" Width="453">

 

 

 

 

<telerik:RadCartesianChart.HorizontalAxis>

 

 

 

 

<telerik:CategoricalAxis />

 

 

 

 

</telerik:RadCartesianChart.HorizontalAxis>

 

 

 

 

<telerik:RadCartesianChart.VerticalAxis>

 

 

 

 

<telerik:LinearAxis />

 

 

 

 

</telerik:RadCartesianChart.VerticalAxis>

 

 

 

 

<telerik:BarSeries>

 

 

 

 

<telerik:BarSeries.DataPoints>

 

 

 

 

<telerik:CategoricalDataPoint Label="10" Value="10" />

 

 

 

 

<telerik:CategoricalDataPoint Label="20" Value="20" />

 

 

 

 

<telerik:CategoricalDataPoint Label="30" Value="30" />

 

 

 

 

</telerik:BarSeries.DataPoints>

 

 

 

 

</telerik:BarSeries>

 

 

 

 

</telerik:RadCartesianChart>

 

 

 

 

</Grid>

 



I'm using 2012.1.326.40 version of radControls

What could be the reason?

Regards,
Auvo
Nikolay
Telerik team
 answered on 17 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?