Telerik Forums
UI for WPF Forum
0 answers
148 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
163 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
182 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
81 views
to delete (double post)
Software
Top achievements
Rank 1
 asked on 03 Nov 2011
3 answers
165 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
144 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
441 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
147 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
120 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
5 answers
274 views
I've noticed a strange performance issue with QueryableCollectionView (which it seems is being used as the default CollectionView for the RadGridView). If I add just a single item to the list, QueryableCollectionView ends up calling PopulateListInternal, which will iterate through ALL of the items in the in my ObservableCollection. Why is this the case?
Vlad
Telerik team
 answered 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
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?