Telerik Forums
UI for WPF Forum
1 answer
182 views
Hello,
our company uses your controls in your project.
We have the following question:
Could Component Spreadsheet be fed with data from a xml file or a stream of data from xml file?
Tanya
Telerik team
 answered on 22 Feb 2019
1 answer
116 views

Dear support,

how can I implement date-dependencies in GanttView. That means

1. task2 depends on task1 (defined in "Dependencies")

2. if end-date of task1 changes for example from 31st of January to the 28th of February also the begin-date from task2 "automatically" has to change from 31st to 28th



Thanks in advance

Marcus

Vladimir Stoyanov
Telerik team
 answered on 22 Feb 2019
7 answers
1.8K+ views
Hello,

I'd like to add a button to the left of Minimize Button of the RadWindow for WPF. I want to create a custom control based on RadWindow. I'm not very familiar with creating custom controls. I got the control template of the RadWindow by using Blend, but I don't want to redo the whole template; I want to be able to use the RadWindow as it comes and just add that button to the title bar. What is the best way to do so?

Thanks,
LauraH
Dinko | Tech Support Engineer
Telerik team
 answered on 22 Feb 2019
2 answers
313 views

I have an RadAutoCompleteBox with a dynamic ItemSource that works some places and not others.  In the setter for the SearchText I run a search and populate the ItemSource.  In the box I'm working on now, the ItemSource's ObservableCollection is giving me "Exception thrown: 'System.ArgumentException' in System.Core.dll" when i try and add item to it. This method works many places elsewhere, and If i manually set the SearchText elsewhere the offending code runs without error. Any help would be greatly appreciated.

Here's the XAML:

<telerik:RadAutoCompleteBox 

    Grid.Column="2" Grid.Row="3"
    x:Name="AutoCompleteBoxMakeModel"
    ItemsSource="{Binding MakeModelCollection}"
    SearchText="{Binding MakeModelTerm, Mode=TwoWay}"
    SelectedItem="{Binding SelectedMakeModel, Mode=TwoWay}"
    SelectionMode="Single"
    HorizontalAlignment="Left" 
    TextSearchPath="Display"
    TextSearchMode="Contains"
    AutoCompleteMode="Suggest"
    IsDropDownOpen="{Binding IsMakeModelDropDownOpen, Mode=TwoWay}"
    DropDownItemTemplate="{StaticResource MakeModelSearchTemplate}"
    DropDownWidth="300"
    VerticalAlignment="Top" Width="275"  Height="25" Margin="0,3,0,0" >
    <telerik:StyleManager.Theme>
        <telerik:VisualStudio2013Theme/>
    </telerik:StyleManager.Theme>
</telerik:RadAutoCompleteBox>

 

And here's the offending code:

private string makeModelTerm;
public string MakeModelTerm
{
    get { return makeModelTerm; }
    set
    {
        if (makeModelTerm == value)
        {
            return;
        }
        makeModelTerm = value;
        RaisePropertyChanged("MakeModelTerm");
        if (value.Length > 2)
        {
            SearchMakeModel(value);
        }
    }
}

private void SearchMakeModel(string value)
{
    LookUpRepository er = new LookUpRepository();
    var list = er.SearchMakeModel(value);
    MakeModelCollection.Clear();
    list.ForEach(MakeModelCollection.Add); // This triggers the System.ArgumentException on each value in list
    this.IsMakeModelDropDownOpen = true;
}

Gordon
Top achievements
Rank 1
 answered on 21 Feb 2019
5 answers
575 views
We recently upgraded to the 2016 Q1 Telerik control library to address some bugs in previous versions.  However, the new full text search in the RadGridView has broken an existing feature within our product.  I need to be able to either turn this off completely, or change the keyboard mapping to something other than Ctrl+F.  How can this be done?  Thanks.
Dilyan Traykov
Telerik team
 answered on 21 Feb 2019
1 answer
131 views

I have a celledittemplate with a button inside that template, bound with command and command parameter.

When i enter the cell in edit mode it initializes the command but it is missing it's datacontext.
I found out that when i retrigger my command's RaiseCanExecuteChanged on the PreparedCellForEdit the datacontext is known.

So i was wondering if the datacontext is being set to late on the celledittemplate.
I would find it rather stupid to have to use the PreparedCellForEdit event everytime i need this behaviour

Martin Ivanov
Telerik team
 answered on 21 Feb 2019
2 answers
415 views

Is there any way to bind a command to the built-in Previous/Next/Cancel buttons in the RadWizard?

I'd like to handle it in my viewmodel and not the xaml code behind.

 

Thanks,

Mahdieh,

Mahdieh
Top achievements
Rank 1
 answered on 20 Feb 2019
4 answers
481 views

Whenever the user selects the time before the date on the RadDateTimePicker DropDown, the date gets defaulted to today's date (even though today's date is outside of the specified selectabledates). I'm looking for a way to default the date to SelectableDateStart or have the RadDateTimePicker wait for the user to select a date.

 

I included two pictures:

1. What the user sees when he clicks on the DepartureDateTime RadDateTimePicker

2. What gets selected when the user clicks on the time first (and hasn't selected any dates)

 

My XAML code looks like this:

<telerik:RadDateTimePicker x:Name="ItineraryDepartureDateTimePicker"
SelectedValue="{Binding Itinerary.DepartureTime}"
SelectableDateStart="{Binding Itinerary.TravelRequestFromDate}"
SelectableDateEnd="{Binding Itinerary.TravelRequestToDate
IsInputRestrictedToSelectableDates="True"

DisplayDate="{Binding Request.FromDate}"
DisplayDateStart="{Binding Itinerary.TravelRequestFromDate}"
DisplayDateEnd="{Binding Itinerary.TravelRequestToDate}"

CalendarStyle="{StaticResource CalendarStyle}" HorizontalAlignment="Left" DateTimeWatermarkContent="{DynamicResource LocalTime}" Width="140"/>

 

Where:

  • Itinerary.DepartureTime is of type DateTime and is currently null
  • Itinerary.TravelRequestFromDate is of type DateTime and is currently "July 25, 2018 00:00:00"
  • Itinerary.TravelRequestToDate is of type DateTime and is currently "July 27, 2018 00:00:00"

What am I missing? Why is the date being defaulted to today's date whenever the user selects a time before a date on the Dropdown?

 

Chloe
Top achievements
Rank 2
 answered on 20 Feb 2019
5 answers
565 views

Hi,

Press Clear All button and do: 

DatagridResults.FilterDescriptors.SuspendNotifications();
foreach (var col in DatagridResults.Columns)
{
    if (col.ColumnFilterDescriptor.IsActive)
    {
        col.ClearFilters();
    }
}
DatagridResults.FilterDescriptors.ResumeNotifications();

 

Filter icon is still black (indicating we are still filtering). Note that this actually shows a false information to the user, because the Filter has been removed, but it is not reflected.

Only occurs with columns I load default filters (which had saved). To load the saved filters:

public IColumnFilterDescriptor LoadColumnFilter(IColumnFilterDescriptor columnFilterDescriptor)
{
    if (FilterSettings != null && FilterSettings.Count > 0)
    {
        foreach (FilterSetting setting in FilterSettings)
        {
            if (setting.ColumnUniqueName.Equals(columnFilterDescriptor.Column.UniqueName))
            {
                if (setting.Filter1 != null)
                {
                    columnFilterDescriptor.FieldFilter.Filter1.Operator = setting.Filter1.Operator;
                    columnFilterDescriptor.FieldFilter.Filter1.Value = setting.Filter1.Value;
                    columnFilterDescriptor.FieldFilter.Filter1.IsCaseSensitive = setting.Filter1.IsCaseSensitive;
                }
 
                columnFilterDescriptor.FieldFilter.LogicalOperator = setting.FieldFilterLogicalOperator;
 
                if (setting.Filter2 != null)
                {
                    columnFilterDescriptor.FieldFilter.Filter2.Operator = setting.Filter2.Operator;
                    columnFilterDescriptor.FieldFilter.Filter2.Value = setting.Filter2.Value;
                    columnFilterDescriptor.FieldFilter.Filter2.IsCaseSensitive = setting.Filter2.IsCaseSensitive;
                }                
                return columnFilterDescriptor;
            }
        }
     }
     return columnFilterDescriptor;
}

 

As I have to remove a load default filter to the filter icon actualize correctly?

Thanks, Gerard.

 

 

 

 

 

As I have to remove a loaded default filter to the filter icon actualize correctly?
As I have to remove a loaded default filter to the filter icon actualize correctly?
As I have to remove a loaded default filter to the filter icon actualize correctly?
As I have to remove a loaded default filter to the filter icon actualize correctly?
Lou
Top achievements
Rank 1
 answered on 20 Feb 2019
1 answer
174 views

Hi!

I would like to implement step by step routing not shape to shape like that:

- click on shape's connector

- click some points on diagram

- finally click another shape's connector

Clicks are marked as red circle in attechement 0.png. Is it possible and where should I start?

Another short question is about moving connection. Is there a way to avoid displacement of rigth angle between shape's connector and the first connection point? See illustration in attachement 1.png.

 

Petar Mladenov
Telerik team
 answered on 20 Feb 2019
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?