Telerik Forums
UI for WPF Forum
1 answer
116 views

I have many merged cells (ex:B12:B17).

When I fill it a wrap text and it will resize the height to every rows in meged cell.

It will make many blank in cell.

May I ask how solve this problem?

thank you.

東祐
Top achievements
Rank 1
 answered on 06 Mar 2018
3 answers
175 views

This can be seen in the examples, if you have a GridViewToggleRowDetailsColumn then you have a column with plus or minus in it for expanding/collapsing the row. The issue I'm having is that often the click is being missed as it seems you have to click exactly on the text, not just anywhere in the cell. I've seen you can make the details expand on selection, but I don't really want to do this, I'd rather the user clicks on the expansion cell. 

Is there any way to make the whole of the cell clickable?

Interestingly enough I've noticed that the expansion for hierarchical grids is clickable anywhere, but because I've got multiple child details I wanted to have tabs.

Yoan
Telerik team
 answered on 05 Mar 2018
4 answers
746 views
Hello,
I'm trying to get the NumericUpDown to tab to the next control when the user presses Enter.  Handling the KeyUp or KeyDown event with the following code does not work: 
(sender as RadNumericUpDown).MoveFocus(new TraversalRequest(System.Windows.Input.FocusNavigationDirection.Next));
e.Handled = true;

Any suggestions?

 

 



Dinko | Tech Support Engineer
Telerik team
 answered on 05 Mar 2018
2 answers
92 views

DateTimePicker ClockItemsSource doesn't show the time span 23:59:59 the Time popup shows upto 22:00:00

 

 RadDateTimePickerObj.ClockItemsSource = new List<TimeSpan> {
                new TimeSpan(0,0,0),              new TimeSpan(1, 0, 0),                new TimeSpan(2, 0, 0),            new TimeSpan(3,0,0),                new TimeSpan(4,0,0)
                ,new TimeSpan(5,0,0),new TimeSpan(6,0,0),new TimeSpan(7,0,0),new TimeSpan(8,0,0),new TimeSpan(9,0,0),new TimeSpan(10,0,0)
            ,new TimeSpan(11,0,0)
            ,new TimeSpan(12,0,0),new TimeSpan(13,0,0),new TimeSpan(14,0,0),new TimeSpan(15,0,0),new TimeSpan(16,0,0),new TimeSpan(17,0,0),new TimeSpan(18,0,0),new TimeSpan(19,0,0),
            new TimeSpan(20,0,0),new TimeSpan(21,0,0),new TimeSpan(22,0,0),new TimeSpan(23,59,59)
            };

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Mar 2018
0 answers
91 views

Hi,

I am working on a large-scale WPF application using Telerik Controls and seeing a problem that my TextBox input is not being saved when I click my RadButton to save.  The problem is tied to the fact that the TextBox never looses focus and I'm typing in an input and just clicking Save afterwards.  Since the Textbox doesn't loose focus the property is never updated.  I know that a possible fix is to add UpdateSourcetrigger=PropertyChanged to my TextBox's Binding but since I have this occurring all over the application, it would be hard to accomplish.   I want a generic solution that allows me to save the content of my input even without having to tab out of the control.

Please advise possible solutions.

Thanks.

 

Here is wpf c# code on my MenuButton:

namespace Stream.WPF.Infrastructure.Controls
{
    using System.Windows;
    using System.Windows.Media;

    using Telerik.Windows.Controls;

    public class MenuButton : RadButton
    {
        public static readonly DependencyProperty ImageSourceProperty = DependencyProperty.Register(
            "ImageSource",
            typeof(ImageSource),
            typeof(MenuButton),
            new UIPropertyMetadata(default(ImageSource)));

        public static readonly DependencyProperty LabelProperty = DependencyProperty.Register(
            "Label",
            typeof(string),
            typeof(MenuButton));

        public ImageSource ImageSource
        {
            get
            {
                return (ImageSource)this.GetValue(ImageSourceProperty);
            }

            set
            {
                this.SetValue(ImageSourceProperty, value);
            }
        }

        public string Label
        {
            get
            {
                return (string)this.GetValue(LabelProperty);
            }

            set
            {
                this.SetValue(LabelProperty, value);
            }
        }
    }
}

And in my XAML I am using it like this:

 <customControls:MenuButton Grid.Column="1" Content="{x:Static resources:ProperNameResources.Overview}" Margin="30,2,30,2" Background="#005A8B"
                                   Command="{Binding Owner.SelectedTourSheetViewModel.ShowOverviewCommand}"
                                   Visibility="{Binding Owner.SelectedTourSheetViewModel.IsOverviewDisplayed, Converter={StaticResource InverseBoolToVisibilityConverter}}"/>

 

 

sam
Top achievements
Rank 1
 asked on 02 Mar 2018
1 answer
147 views

Hi all,

I've got a requirement to modify the styling of rich text that's pasted into my radrichtextbox. The following code works, but it hangs the UI when it's run on the main thread, and ClipboardEx.GetDocumentFromClipboard is unhappy when it's not run on the main thread ( something like this https://stackoverflow.com/questions/15913275/backgroundworker-and-clipboard )

Has anybody found a way around this?

 

        private void EditorTextBoxCommandExecuting(object sender, CommandExecutingEventArgs e)
        {
            if (e.Command is PasteCommand)
            {
                DocumentFragment fragment = ClipboardEx
                        .GetDocumentFromClipboard(
                            "RadDocumentGUID"); //copy pasting from a RadRichTextBox, keep the paragraphs as they are
                RemoveStylingFromFragment(fragment);
                Editor.InsertFragment(fragment);

       }

}

                


Tanya
Telerik team
 answered on 02 Mar 2018
1 answer
56 views

I am trying to show the calendar week of the selected week in the NavigationHeader. Until now i could not find any approach to do this.

Is there a possibility to show the calendar week in the NavigationHeader of a ScheduleView?

Dinko | Tech Support Engineer
Telerik team
 answered on 02 Mar 2018
2 answers
128 views
I'm using a AsyncSqlGeospatialDataReader to load some polylines. On the resulting PolylineData objects i set a ShapeFill. Is there a Template which is responsible for rendering the lines? I would like to have lines with an outline and would prefer to change the rendering instead of adding multiple layers/polylines on top of each other.
Dinko | Tech Support Engineer
Telerik team
 answered on 02 Mar 2018
4 answers
258 views

I'm trying to programatically remove a span element from a document like this:

span.Parent.Children.Remove(span);

 

This works, but it seems to mess with the formatting of the next span in the paragraph.

 

Has anybody come across this, or know of a workaround?

Tanya
Telerik team
 answered on 02 Mar 2018
5 answers
262 views

I have a RadGridView. One of column is an Expander(Not RadExpander, just a regular WPF Expander). For some reason I want to get all Expanders. So by this solution.

private List<T> GetVisualTreeObjects<T>(DependencyObject obj) where T : DependencyObject
    {
        List<T> objects = new List<T>();
        int count = VisualTreeHelper.GetChildrenCount(obj);
        for (int i = 0; i < count; i++)
        {
            DependencyObject child = VisualTreeHelper.GetChild(obj, i);
            if (child != null)
            {
                T requestedType = child as T;
                if (requestedType != null)
                    objects.Add(requestedType);
                objects.AddRange(this.GetVisualTreeObjects<T>(child));
            }
        }
        return objects;
    }

I can get all Expanders by

var all = GetVisualTreeObjects<Expander>(this.grv);

Now I have a RadDataPager for this GridView,

<telerik:RadDataPager x:Name="radDataPager"
                          Source="{Binding Items, ElementName=radGridView}"
                          PageSize="5" />

if I switch to another page, in the PageIndexChanged event. I want to get the all expanders for the current page. But the result is always wrong.

Not sure why?

 

 

gg

Dilyan Traykov
Telerik team
 answered on 02 Mar 2018
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?