Telerik Forums
UI for WPF Forum
1 answer
84 views
I have a grid bound to an Entity Framework-based CollectionViewSource.

For the sake of this example, my columns (left->right) are:
  • Name - in the database this is required, unique, and non-Null
  • Serial # - a string

I'm getting an exception when trying to escape editing a new line
  1. Press <click here to add new item>
  2. Type in a name
  3. press <TAB> to advance to serial # column and type in a serial number
  4. press <BACKTAB> to move focus to Name column
  5. delete everything in the Name field that you just entered
  6. Press <ESCAPE> once
My Entity Framework code throws an exception in the Device.Name property setter because it's been passed a Null.

I was under the impression that pressing <ESCAPE> was supposed to exit editing mode and pressing it twice on a new line was supposed to discard it.  That (the latter) does happen if I've entered no data in the columns or valid data.  If I continue (and ignore the exception), the new row is discarded, but I'm concerned because I don't understand what's happening.

When pressing <ESCAPE>, neither the row or cell validation methods are called, which makes sense.

Why is the RadGridView attempting to update the underlying data when it's about to be discarded?



Nedyalko Nikolov
Telerik team
 answered on 04 Nov 2011
0 answers
132 views
Hi,

I need to maintain scroll position (both horizontal and vertical) when moving across pages.
I tried the following code , but was unable to achieve the desired functionality.
Even after calling RestoreScrollPosition() the scrollviewer didn't change its position.


 

private void btnNext_Click(object sender, RoutedEventArgs e)

 

{

SetScrollPosition();
BindData();

RestoreScrollPosition();

 

 

 

}

 

 

private void SetScrollPosition()

 

{

 

GridViewScrollViewer svSummaryInfo = (GridViewScrollViewer)rtSummaryInfo.FindChildByType<GridViewScrollViewer>();

 

 

 

_dbVerticalOffset = svSummaryInfo.VerticalOffset;
_dbHorizontalOffset = svSummaryInfo.HorizontalOffset;
}

private

 

void RestoreScrollPosition()

 

{

GridViewScrollViewer

 

svSummaryInfo = (GridViewScrollViewer)rtSummaryInfo.FindChildByType<GridViewScrollViewer>();

 

 

if (svSummaryInfo != null)

 

  {

 

   svSummaryInfo.ScrollToHorizontalOffset(_dbHorizontalOffset);

   svSummaryInfo.ScrollToVerticalOffset(_dbVerticalOffset);

   }
}

Please provide a code snippet for the same.

 

Manishkumar
Top achievements
Rank 1
 asked on 04 Nov 2011
4 answers
154 views
I'm trying to use the simple example code here: http://www.telerik.com/help/wpf/raddatafilter-features-data-annotations.html

I can't get any of the data annotations to work. Here is the code I'm using:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
 
namespace namespace
{
    public class dummy
    {
        [Display(AutoGenerateFilter = false)]
        public string Name
        {
            get;
            set;
        }
        [Display(ShortName = "Company's Name")]
        public string CompanyName
        {
            get;
            set;
        }
        public string Title
        {
            get;
            set;
        }
    }
}

The XAML is simply <telerik:RadDataFilter Name="DataFilter" />
Austin
Top achievements
Rank 1
 answered on 03 Nov 2011
0 answers
172 views
Hello,
I would like to implement in my WPF application autoupdate functionality, like WPF online demos. Is it using click once??
My application will be separated in modules, and I want to each module check for newest version, download and install it automatically.
The application is goning to run in our intranet, not internet like demos.
I was seeing demos source but it's a bit complicated, I would like to see a simplest example, some links with more information!

Thanks in advance!
Alejandro
Dominios Molinos
Top achievements
Rank 1
 asked on 03 Nov 2011
0 answers
78 views
to delete (double post)
Software
Top achievements
Rank 1
 asked on 03 Nov 2011
3 answers
154 views
I am styling the RadTimePicker so that it looks and feels the same as the rest of my application.
I am trying to style the DateTimePickerClock that is displayed when you want to select a time.
I cannot figure out how to change the highlight color for the Items (the times) displayed in the clock.
Right now when I hover over an item it is highlighted as Yellow but since the application's colours are black, blue and grey, this doesn't fit in with the colour scheme at all.

Thank you for your help,

-Rebecca
Rebecca
Top achievements
Rank 1
 answered on 03 Nov 2011
2 answers
134 views

Hello,

the ToolTip text "Start dragging in order to change items' position" is not translated in german culture.

OutlookBar_style.xaml:

...
<ToolTipService.ToolTip>
    <TextBlock Text="Start dragging in order to change items' position"
           telerik:LocalizationManager.ResourceKey="OutlookBarHorizontalSplitter" />
</ToolTipService.ToolTip>
...


As workaround I tried to set the ToolTip-Text by setting the HorizontalSplitterStyle like this:

...
<UserControl.Resources>
    <Style x:Name="OutlookBarHorizontalSplitter" TargetType="Thumb">
        <Setter Property="ToolTip" Value="My localized Text"/>
    </Style>
</UserControl.Resources>
 
<Grid>
    <telerik:RadOutlookBar x:Name="MenuOutlookBar"
                   HorizontalSplitterStyle="{DynamicResource OutlookBarHorizontalSplitter}">
...

Unfortuately after this the whole Style of the HorizontalSplitter is lost and the Tooltip is still default.

Please let me know if there is a solution for this issue.

Regards
Rainer

Rainer
Top achievements
Rank 1
 answered on 03 Nov 2011
8 answers
424 views
Hi,

I have bar chart with  Y-Axis having range from 0 to 100. On the same chartarea I have one more Y-Axis(right hand side) having range from -100 to 100 in the step of 50. i want to make -100, -50 label values invisible so that 0 starts in the middle of the Y-axis.  I am using this Y-Axis for showing line chart. Please help me achieve this.
Peshito
Telerik team
 answered on 03 Nov 2011
1 answer
140 views

In the treelistview row loaded event , when I am trying to expand a tree node programatically,the scrollviewer resets.

 

private void rtSummaryInfo_RowLoaded(object sender, RowLoadedEventArgs e)

 

{    

 

        TreeListViewRow

 

lobjTreeListViewRow = (e.Row as Telerik.Windows.Controls.TreeListView.TreeListViewRow);

 

 

        SummaryData lobjSummaryData = (e.Row as Telerik.Windows.Controls.TreeListView.TreeListViewRow).DataContext as SummaryData;

 

 

        if (_lstExpandedNode.Contains(lobjSummaryData.NodeName))

 

        {

     

 

          lobjTreeListViewRow.IsExpanded =

true;  // at this point, scrollviewer gets resets 

 

        }

}

I need to maintain the scroll position while expanding a node. Your help is appreciated.

Sharada
Top achievements
Rank 1
 answered on 03 Nov 2011
0 answers
107 views
Hello,
I would like to implement in my WPF application autoupdate functionality, like WPF online demos. Is it using click once??
My application will be separated in modules, and I want to each module check for newest version, download and install it automatically.
The application is goning to run in our intranet, not internet like demos.
I was seeing demos source but it's a bit complicated, I would like to see a simplest example.

Thanks in advance
Alejandro
Dominios Molinos
Top achievements
Rank 1
 asked on 03 Nov 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?