Telerik Forums
UI for WPF Forum
0 answers
126 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
142 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
157 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
74 views
to delete (double post)
Software
Top achievements
Rank 1
 asked on 03 Nov 2011
3 answers
139 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
120 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
408 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
123 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
95 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
240 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
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?