Telerik Forums
UI for WPF Forum
1 answer
541 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
727 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
103 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
178 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
186 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
73 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
595 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
174 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
1 answer
97 views

Hello there,

I got a little problem Binding MinHeight and Height of DragResizeSlotHighlightContainer to a Property of a GanttTask.

So for the EventContainer everything works fine, I solved it this way:

<Style TargetType="telerik:EventContainer" BasedOn="{StaticResource EventContainerStyle}">
   <Setter Property="Background" Value="{Binding OriginalEvent.Background}"/>
   <Setter Property="MinHeight" Value="{Binding OriginalEvent.Height}"/>
   <Setter Property="Height" Value="{Binding OriginalEvent.Height}"/>
</Style>

But for DragResizeSlotHighlightContainer it doesn't work getting OriginalEvent.Height to set MinHeight...

<Style TargetType="telerik:DragResizeSlotHighlightContainer"
   BasedOn="{StaticResource  DragResizeSlotHighlightContainerStyle}">
   <Setter Property="MinHeight" Value="{Binding OriginalEvent.Height}"/>
</Style>

 

Polya
Telerik team
 answered on 24 Nov 2015
1 answer
75 views

Hi,

I add some ribbon tabs to my project and give them access text.

the key tool tips aren't in right place.

note :

my radribbonview has right to left flow direction.

i attach a picture and a project to show my problem.

thanks.

Kiril Vandov
Telerik team
 answered on 24 Nov 2015
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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?