Telerik Forums
UI for WPF Forum
3 answers
117 views
Hi,

Using JustTrace I've determined that a window that is loaded is most time-consuming in the AddDictionary method of the RichTextBox SpellChecker. I would like to call this method in a background thread so that it doesn't hang the application. Obviously I can't use BackgroundWorker because making modifications to a UI control. So I'm after other options for preventing the window from hanging? Perhaps this question is more general than the SpellChecker forum subfolder, but the problem has started from here :)

Thanks
Andrew
Telerik team
 answered on 01 Nov 2012
1 answer
157 views
Is there any way to detect that Select All has been checked when persisting a filter on the gridview? I would like to ignore the distinct value list if Select All has been chosen by a user.
Thanks,

Rossen Hristov
Telerik team
 answered on 01 Nov 2012
2 answers
313 views
Hey there, I am running Windows 7 64 bit and I have both VS 2012 and VS 2012 installed.

When I try to run the installer for WPF controls, I get an error saying it could not find a dll needed to run. I reran the installer with logging turned on and after looking through it, the problem seems to be that the Telerik installer cannot find the dll needed to check that VS is open and needs to close. Any ideas how I get around this? I am thinking that I need to tell the installer NOT to install the VS extensions for 2010 and 2012, then install them manually within studio via the Extension Manager?

Sorry, I forgot to mention that I am trying to install Telerik controls for WPF, version 2012 Q3.. it may also be helpful to mention that I did not run into this issue for 2012 Q2.

Please help!
John
Top achievements
Rank 1
 answered on 01 Nov 2012
2 answers
107 views
In my application I apply the Windows7 theme by setting
StyleManager.ApplicationTheme = new Windows7Theme();
in the creation of the main window.

Unfortunately it is not clear to the end-user which columns have filters on them, so I thought about styling it. I found this thread on the forum where some things are explained.

I set to work and copied DistinctFilterControl.xaml and GridViewHeaderCell.xaml from the Windows7 theme source directory and adjusted them to my satisfaction. I can apply the GridViewHeaderCellStyle to the column by using
<telerik:GridViewDataColumn HeaderCellStyle="{StaticResource CustomGridViewHeaderCellStyle}"/>

So far so good. Now I want, of course, the style automatically applied to all data columns in my application. Is it possible to tweak this into the used theme? Or would it mean I have to create a complete new theme (e.g., Windows7bis)? Or is there a way to make a custom datacolumn that has this header style automatically applied? Or...

I don't want to end up with an application with half of the columns having my new style of funnel and the rest with the original themed funnel (because I forgot to set some property).

Thanks in advance.
Boardy
Top achievements
Rank 2
Veteran
Iron
 answered on 01 Nov 2012
1 answer
181 views
I've downloaded and opened the example project provided by Kaloyan in reference in this link:
Page Animation in a WPF Application

I am new to WPF and Animation. I'm able to follow through the code and understand it quite a bit but I wanted the animation to do the opposite, which I got stuck on. Although Albert from the thread posted code to reverse the animation, there wasn't the same effect as the animation included in the project. The animation provided had the effect of moving right to left. Can anyone please provide me with the animation to do the opposite, please? Here again is the sample animation (right to left) taken from the code.

public void BeginRight(FrameworkElement mockItem1, Grid container, FrameworkElement newPage)
  {
   this.Container = container;
   this.PageWidth = container.ActualWidth;
   this.item1 = mockItem1;
   this.item2 = newPage;
 
   this.Container.Children.Add(this.item1);
 
   var width = PageWidth;
 
   var scaleFactor = 0.8;
   var halfSrink = (1.0 - scaleFactor) / 2;
 
   this.Container.Children.Add(this.mask1);
   this.Container.Children.Add(this.mask2);
 
   var scaleDownSpline = new Spline(0.504000008106232, 0.256000012159348, 0.458999991416931, 1);
   var moveSpline = new Spline(0.247999995946884, 0, 1, 1);
   var scaleUpSpline = new Spline(0.321000009775162, 0, 0.45100000500679, 1);
   var spacing = 15.0;
 
   this.animation = this.item1
    .Animate()
    .With(this.mask1)
     .EnsureDefaultTransforms()
     .Origin(0, 0.5)
     .Scale(0, 1, 0.2, 1, 0.7, scaleFactor)
      .Splines(2, scaleDownSpline)
     .MoveX(0.7, 0, 1.365, (-width * (scaleFactor - halfSrink)) - spacing, 1.9, (-width * scaleFactor) - spacing)
      .Splines(1, moveSpline)
      .Splines(2, scaleUpSpline)
    .Without(this.item1)
     .Opacity(0, 0, 0.2, 0, 0.7, 1)
      .Splines(1, scaleDownSpline)
    .Animate(this.mask2)
     .Opacity(1.35, 1, 1.9, 0)
      .Splines(scaleUpSpline)
    .With(this.item2)
     .EnsureDefaultTransforms()
     .Origin(0.5, 0.5)
     .Scale(0, scaleFactor, 1.365, scaleFactor, 1.9, 1)
      .Splines(1, moveSpline)
      .Splines(2, scaleUpSpline)
     .MoveX(0.0, ((scaleFactor + halfSrink) * width) + spacing, 0.2, ((scaleFactor + halfSrink) * width) + spacing, 0.7, ((scaleFactor - halfSrink) * width) + spacing, 1.365, 0)
      .Splines(2, scaleDownSpline)
      .Splines(3, moveSpline)
    .Instance;
 
   this.animation.SpeedRatio = 755.0 / width * 1.5;
 
   this.isRunning = true;
 
   this.animation.Completed += (sender, e) =>
   {
                this.TransitionAnimationCompleted(this, new TransitionEventArgs(item2));
 
    Container.Children.Remove(mask1);
    Container.Children.Remove(mask2);
    RemoveVisualBrush();
    Container.Children.Remove(item1);
    item1 = null;
    item2 = null;
   };
 
   this.animation.Begin();
  }
 

Huas
Top achievements
Rank 1
 answered on 01 Nov 2012
16 answers
1.4K+ views
in my listboxes I use listbox.SelectedIndex++, I want to select the next row in my WPF GridView (I have paging arrows at the top that will navigate through the grid)
Dilum
Top achievements
Rank 1
 answered on 01 Nov 2012
1 answer
697 views
I have a RadComboBox bound to an ObservableCollection. The collection is modified and cleared pragmatically (via various user interactions).

I'm looking for a XAML friendly solution that will set the SelectedIndex to 0 when going from no items (no selection) to having items.

I've tried simply setting SelectedIndex=0 but that doesn't work. (I get no selection).

-Mike.




Vladi
Telerik team
 answered on 01 Nov 2012
3 answers
375 views
Hi,

The image editor seems to suit my needs, but I need certain functionality that isn't there. Is it possible to extend your RadImageEditor class? More specifically, I want to add the following:
  1. Zooming should use Nearest Neighbor instead of bilinear.
  2. Image overlay. E.g. Some text printed above the image.
  3. Additional input:
    • Mousewheel should zoom instead of scrolling.
    • Horizontal mousewheel scrolling.
    • Left/right mouse click handling.
    • Keyboard commands.

Also, I'm wondering if this control is hardware accelerated. Performance will be crucial in my case. Am I better off using some other image viewer?

Boby
Telerik team
 answered on 01 Nov 2012
5 answers
439 views
Hi,

I have a problem using "paste" in radgridView of 2012.2.607.40. (it Works well of 2011.3.1116.40).

I select 3 rows in Excel,copy them and I want to paste these in  my grid.  I click new row then click paste. I hope that the 3 rows will in the last 3 rows in my grid. it means that these 3 rows will be 3 new rows of my grid. BUT the result is , it will erase the first 3 rows of my current grid. Sometimes il will erasing the last few rows.

For exemple : I have 1,2,3,4 in my grid, each number in a different row (4 rows). Now, i want to paste 5,6,7 in the grid, I click add rows (now I have 1,2,3,4,0 in 5 rows), and click paste, the result that I want is 1,2,3,4,5,6,7, BUT the result is 5,6,7,4,0 .

Here is my grid :   
           <telerik:RadGridView
                SelectionMode="Extended" MaxHeight="150" x:Name="gridView"
                IsReadOnly="{Binding Path=ObjectBase.IsReadOnly, RelativeSource={RelativeSource FindAncestor, AncestorType=sc:GridDesigner}}"
                VerticalAlignment="Top" CanUserDeleteRows="True" RowIndicatorVisibility="Visible"
                CanUserFreezeColumns="False" CanUserInsertRows="True" ShowGroupPanel="False"
                AutoGenerateColumns="True" CanUserSelect="True" SelectionUnit="FullRow"
                ClipboardCopyMode="Cells" ClipboardPasteMode="Default" BorderThickness="0" EnableRowVirtualization="True">
            </telerik:RadGridView>

Then I have tried to use the control of Pasting like this :
private void gridView_Pasting(object sender, GridViewClipboardEventArgs e)
{
    var newItem = this.radGridView1.Items.AddNew();
    this.gridView.SelectedItem = newItem;
}

And also like this:

        private void gridView_Pasting(object sender, Telerik.Windows.Controls.GridViewClipboardEventArgs e)
        {
            this.gridView.Items.MoveCurrentToLast();
        }

but it doesn't work.

Thank you in advance for your help.

Ricardo Chorro.
Maya
Telerik team
 answered on 01 Nov 2012
1 answer
177 views
Hi,

I am using Q3 Version.
When i create GanttView as userControl and paste all OfficeBlue Theme to the resource of the userControl , i cant see the designer cause i get an exception like : " is not a valid value for the 'Telerik.Windows.Controls.Scheduling.ZIndexManager.ZIndex' property on a setter.
I dont understand what is the problem about the " in the telerik:ZIndexManager Tag.

Thanks
Masha
Telerik team
 answered on 01 Nov 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?