Telerik Forums
UI for WPF Forum
4 answers
211 views
Hi, 

I am using Q1 2012 wpf controls in my project.
The filter popup shows the list of distinct values that are not scrollable and thus the popup is way too long to fit on the form. all the buttons and other controls are located below the screens bottom edge and not accessible by user.

Is there a way to limit size of the listbox, to let say 10 rows and have a scrolling added? Otherwise the filtering is absolutely useless.

Please see attached image of the filter popup
Christian
Top achievements
Rank 1
 answered on 27 Nov 2015
1 answer
145 views

Hi!

The DocxFormatProvider resets any Color informations of any Styles to the default light blue when I export with it.

 I export like this:

DocumentFormatProviderBase format = null;
 
format = new DocxFormatProvider();
 
format.Export(radRichTextBox.Document, File.Open(filename, FileMode.Create));

I used versions 2015.3.1104.45, 2015.3.1104.40 and 2015.3.930.40

Did i miss some setting or, if not, is there any workaround?

It works fine with the htmlformatprovider, but i need the header and footer, which is cut off by it.

 

 


 
 
 
 
 
 
Tanya
Telerik team
 answered on 26 Nov 2015
1 answer
510 views

Hello.

I am experiencing a problem with RadDatePicker

In my application, the user chooses Start date and End date and according to that, the grid is updated.

I would like to avoid using Refresh button, i.e. letting the user pick both dates and then click refresh to get the data.

On the other hand, I don't want to update the data each time one of the Pickers is changed, before the second one is also picked.

I would like to do it this way: when user picks one of the dates, the second DatePicker expands for him so he can immediately choose a second date, and no need to click a refresh button. What happens is that DatePicker.IsDropDownOpen property seems not working from code behind.

In DatePicker1 SelectionChanged event handler, I am doing DatePicker2.IsDropDownOpen=true, but this doesn't work. The DatePicker2 stays closed.

 

Maybe there is another control, like doubleDatePicker which makes it possible to choose a range of dates? Like in CheckIn-Checkout pages on the internet, the datepicker control consists of 2 calendars.

 

Thanks in advance for your help.

Alexander

Nasko
Telerik team
 answered on 26 Nov 2015
7 answers
643 views

Hello,

 

I have a telerik radGridView that itemsSource binding to my list observableCollection<Class1>

i have a button that on her click event i i add a new item to my list, i want focus the new item  first cell,

so i want do it with the event AddingNewDataItem  but it not camming to this event.

 

heer is my xaml code:

<Grid>
<telerik:RadGridView x:Name="PricingGrid" ItemsSource="{Binding}"
CanUserInsertRows="True" ShowInsertRow="True"
AddingNewDataItem="PricingGrid_AddingNewDataItem"
RowEditEnded="PricingGrid_RowEditEnded" >
</telerik:RadGridView>
<Button Content="Button" HorizontalAlignment="Left" Height="61" Margin="269,237,0,0" VerticalAlignment="Top" Width="176" Click="Button_Click"/>
</Grid>

 

heer is my C# code:

public partial class MainWindow : Window
{
public CollectionViewSource Source { get; set; }
public ObservableCollection<MyClass> list = new ObservableCollection<MyClass>();
public MainWindow()
{
InitializeComponent();
this.Source = new CollectionViewSource();
//var list = new ObservableCollection<MyClass>();
for (int i = 0; i < 10; i++)
{
var item = new MyClass { MyProp2 = i, MyProperty = i * 10 };
list.Add(item);
}
Source.Source = list;
this.DataContext = Source.View;
}
private void PricingGrid_RowEditEnded(object sender, Telerik.Windows.Controls.GridViewRowEditEndedEventArgs e)
{
if (e.EditOperationType == Telerik.Windows.Controls.GridView.GridViewEditOperationType.Insert)
{
this.DataContext = Source.View.OfType<MyClass>().OrderBy(c => c.MyProperty);
Source.Source = this.DataContext;
PricingGrid.SelectedItem = e.NewData;
PricingGrid.ScrollIntoView(e.NewData);
}
}
private void Button_Click(object sender, RoutedEventArgs e)
{
list.Add(new MyClass { MyProp2 = 4, MyProperty = 40 });
}
private void PricingGrid_AddingNewDataItem(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
{
}
}
public class MyClass
{
public int MyProperty { get; set; }
public int MyProp2 { get; set; }
}

 

thank for help!

miri.

Dilyan Traykov
Telerik team
 answered on 26 Nov 2015
1 answer
67 views

Hello,
I'm using the RadImageEditor control in a WPF application using the Office2013 theme.

With ScaleFactor at 0, there is a margin around the image and it is not aligned with the orther controls.

With another scale factor, the scroll bars are out by one pixel: the top of the image is one pixel lower than the vertical scroll bar and the left of the image is one pixel at the right of the horizontal scroll bar.

Masha
Telerik team
 answered on 26 Nov 2015
3 answers
150 views
Hello,

I recently tried to make my RadCartesionChart w/ bar series horizontal.  It took be more than an hour trying to duplicate the demo you provide before I found the right documentation.  The demo has attaches an "orientation" property from a telerik.examples namespace.  In order words, hard to copy.  The radchartview/radchark deocumentation does not tell you either.  If was only the xamlflix that said:

Note that RadChartView does not have Bar and HorizontalBar series types; it has only one Bar type and the orientation is set by properly initializing RadCartesianChart.HorixontalAxis and the RadCartesianChart.VerticalAxis properties.

Please update your examples/documentation to make this more obvious.

Thanks,
Eric
Evgenia
Telerik team
 answered on 26 Nov 2015
7 answers
158 views
I need to implement "ChangeCase" keyboard shortcut (like Shift+F3 in MS Word) for RadRichTextBox, which changes the text either selected by mouse, or the last word before caret's position. So i can't find best way how to do this. May be i should use the way with selections like:

DocumentPosition pos = new DocumentPosition(this.radRichTextBox.Document.CaretPosition);
  
pos.MoveToCurrentWordStart();
this.radRichTextBox.Document.Selection.SetSelectionStart(pos);
  
pos.MoveToCurrentWordEnd();
this.radRichTextBox.Document.Selection.AddSelectionEnd(pos);

And then work with selected word. Or just replace word in position. 

The result should be (3 consecutive Shift+F3):
word --(Shift+F3)-> Word --(Shift+F3)-> WORD --(Shift+F3)-> word
Boby
Telerik team
 answered on 26 Nov 2015
5 answers
53 views

hello,

i want to add a button on the end of the rows how can i make it?

i attach a picture that i made in photoshop,I want to make it look the same as the picture

thank. 

miri.

Stefan Nenchev
Telerik team
 answered on 25 Nov 2015
9 answers
507 views
I'm seeing the following messages appear in the output window of visual studio (2012).

I'm not sure why or how to resolve them, can anyone explain how?

The XAML is defined as follows, we use a behaviour to expand the rows when first loaded.

                                       <telerik:RadTreeView Margin="5"
                                                         controls3:StyleManager.Theme="Windows7"
                                                         IsExpandOnSingleClickEnabled="True"
                                                         SelectionMode="Single"
                                                         IsEditable="False"
                                                         IsRootLinesEnabled="True"
                                                         DisplayMemberPath="Title"
                                                         ItemsSource="{Binding Filters, Mode=OneWay}">

                                        <i:Interaction.Behaviors>
                                            <behaviors:ExpandFiltersBehavior ParentBinding="{Binding}" />
                                        </i:Interaction.Behaviors>
                                        
                                        <telerik:RadTreeView.ItemTemplate>
                                            <HierarchicalDataTemplate ItemsSource="{Binding SubFilters, Mode=OneWay}">
                                                
                                                <StackPanel Orientation="Horizontal">
                                                    <CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" />
                                                    <TextBlock VerticalAlignment="Center" 
                                                               Margin="5,0,0,0"
                                                               Text="{Binding Title, Mode=OneWay}" />
                                                </StackPanel>
                                                
                                            </HierarchicalDataTemplate>
                                        </telerik:RadTreeView.ItemTemplate>
                                        
                                    </telerik:RadTreeView>





System.Windows.Data Error: 25 : Both 'ItemTemplate' and 'ItemTemplateSelector' are set;  'ItemTemplateSelector' will be ignored. RadTreeViewItem:'RadTreeViewItem' (Name='')
System.Windows.Data Error: 25 : Both 'HeaderTemplate' and 'HeaderTemplateSelector' are set;  'HeaderTemplateSelector' will be ignored. RadTreeViewItem:'RadTreeViewItem' (Name='')
System.Windows.Data Error: 25 : Both 'ItemTemplate' and 'ItemTemplateSelector' are set;  'ItemTemplateSelector' will be ignored. RadTreeViewItem:'RadTreeViewItem' (Name='')
System.Windows.Data Error: 25 : Both 'HeaderTemplate' and 'HeaderTemplateSelector' are set;  'HeaderTemplateSelector' will be ignored. RadTreeViewItem:'RadTreeViewItem' (Name='')
System.Windows.Data Error: 25 : Both 'ItemTemplate' and 'ItemTemplateSelector' are set;  'ItemTemplateSelector' will be ignored. RadTreeViewItem:'RadTreeViewItem' (Name='')
System.Windows.Data Error: 25 : Both 'HeaderTemplate' and 'HeaderTemplateSelector' are set;  'HeaderTemplateSelector' will be ignored. RadTreeViewItem:'RadTreeViewItem' (Name='')
System.Windows.Data Error: 25 : Both 'ItemTemplate' and 'ItemTemplateSelector' are set;  'ItemTemplateSelector' will be ignored. RadTreeViewItem:'RadTreeViewItem' (Name='')
System.Windows.Data Error: 25 : Both 'HeaderTemplate' and 'HeaderTemplateSelector' are set;  'HeaderTemplateSelector' will be ignored. RadTreeViewItem:'RadTreeViewItem' (Name='')
System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='8322828'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='System.Windows.Media.Animation.Storyboard'; TargetElement.HashCode='8322828'; TargetElement.Type='System.Windows.Media.Animation.Storyboard'
System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='3060505'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='System.Windows.Media.Animation.Storyboard'; TargetElement.HashCode='3060505'; TargetElement.Type='System.Windows.Media.Animation.Storyboard'
System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='27544548'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='System.Windows.Media.Animation.Storyboard'; TargetElement.HashCode='27544548'; TargetElement.Type='System.Windows.Media.Animation.Storyboard'

Peshito
Telerik team
 answered on 25 Nov 2015
1 answer
138 views

Hi guys, my project is C# language, and WPF architecture.

I am having the issue of loading the page of the Richtextbox which take around 15 seconds to completely load the page. So, I insert the code as follow(picture is attached in this post): RadCompositionInitializer.Catalog = new TypeCatalog(typeof(HtmlFormatProvider), typeof(TxtFormatProvider),typeof()Hyperlink),typeof(IInsertHyperlinkDialog));

The page taken around 4 seconds to load and eventually solve my problem, but whenever I click the hyperlink button, the hyperlink dialog didnt show up. While the other function like font size, insert picture dialog, bold..italy... all is working well except the hyperlink dialog.

If I erase the new added code , the hyperlink dialog will prompt up but it took about 15 seconds again to load the entire page(background main page as the picture attached).

Quality Assurance reject my work as it took too long to load the page.
May I know how to prompt up the hyperlink dialog and also used less time to load the entire page?

Thanks.

Tanya
Telerik team
 answered on 25 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?