Telerik Forums
UI for WPF Forum
1 answer
746 views
I'm trying to use the RadListBox control because of it's drag and drop features, but am running into a problem that only shows up when smooth scrolling is enabled.  I've enabled smooth scrolling using the method posted elsewhere on the forums by setting the CanContentScroll property to False.

However, when this is enabled, and I click on an item in the list, the whole list scrolls up so that the clicked item is at the bottom of the viewable area.  The resulting effect is that over several clicks, I've scrolled to the top of the list.  This behavior doesn't happen when the ListBox scrolls by item (when CanContentScroll is not set to false).

I do not need the selection functionality of the ListBox, and I'm using it just for the built-in drag and drop features.  If there's another way to do the drag and drop without a Listbox, that's fine.

I need the ListBox to not scroll when an item is clicked, or another solution to the problem.  Without a resolution, I cannot use smooth scrolling, as this will be a deal-breaker for any user.

Here's a link to a project that will show the behavior: https://dl.dropboxusercontent.com/u/3583840/ProgrammingSolutions/TelerikDragAndDropTest2.zip

The project is for the Q1 2014 release, but I've tried the most recent one and I get the same results.
Kalin
Telerik team
 answered on 17 Oct 2014
7 answers
395 views
Can someone please comment on the satus of this bug.
I see a silverlight issue regarding this still open in PITS but do not know if this is already being tracked for WPF.
 
When using RadRibbonWindow maximized with Windows Taskbar set to Auto hide, when I move the mouse to the bottom of the screen, the task bar does not popup.
If I use a standards WPF window it does.

 
This works OK
<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" >
Blah...   
  </Window>
but not this

<telerik:RadRibbonWindow x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
                         
                         
Blah...       
  
</telerik:RadRibbonWindow>
Martin Ivanov
Telerik team
 answered on 17 Oct 2014
1 answer
198 views
Hi,

how to set theme for predefined dialog when window from which dialog called is within the dll that is called from WinForms?
Currently the window is not displayed.

<Window.Resources>
       <ResourceDictionary>
           <ResourceDictionary.MergedDictionaries>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml"/
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
           </ResourceDictionary.MergedDictionaries>

bool? dialogResult = null;
                   RadWindow.Confirm(new DialogParameters()
                   {
                       Owner = this,
                       Closed = (w, x) =>
                       {
                           dialogResult = x.DialogResult;
                       }
                   });
Kalin
Telerik team
 answered on 17 Oct 2014
1 answer
232 views
Hello everyone!  

Im drawing a chart with RadCartesianCharts, and i have to display another value (age) instead custom x value datetime 

the structure for each point series is:

HeightPerson
{
  DateTime DateMeasure { get: set; }
  decimal    Height  { get: set; }
  decimal    Age  { get: set; }
}


and i'm using the following  horizontalAxis configuration:

<telerik:RadCartesianChart.HorizontalAxis>
  <chartView:DateTimeContinuousAxis LabelFitMode="Rotate"
                      LabelFormat="{Binding AxisXformat}"
                      Visibility="{Binding VisibilityAxis}"
                      Title="{Binding TitleX}" />
</telerik:RadCartesianChart.HorizontalAxis>



 and the code where i'm making series


var edadSeries = new LineSeries(){
              ItemsSource = vm.PersonAge,
              Visibility = System.Windows.Visibility.Visible,
             //here is where i'm binding the date, but i would like to bind the "Age" property
             //AnotherCategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "Age" },
             CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "DateMeasure" },
             ValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Height" },
             BorderBrush = System.Windows.Media.Brushes.Black,
             BorderThickness = new Thickness(1),
};

another solution, could be show only x (datetime) values for datapoint in x axis for try to cheat in another way

regards
Martin Ivanov
Telerik team
 answered on 17 Oct 2014
1 answer
256 views
There is an UI inconsistency of the RadDiagram between version 2013.1.220.45 and 2014.2.729.45.

The visual hierarchy of my application is roughly that RadDiagram has a ContentControl which contains a ListBox. And the ListBox has some Items as to show descriptions on it. (The ListBoxItem is just has a TextBlock to show the description.)

The problem is that in case of the old version (2013.1.220.45) the TextBlock doesn’t automatically wrap the text (a description) when it gets longer.
But it does with the new version (2014.2.729.45).

For the UI consistency of my application, it should not be allowed to wrap the text automatically.

The Snoop tool shows me that the TextWrapping property of the TextBlock is set to “Wrap” with Local as Value Source in case of the new version.
But the old one sets it to “NoWrap” with DefaultStyle as Value Source.

Any help would be appreciated.
Martin Ivanov
Telerik team
 answered on 17 Oct 2014
1 answer
93 views
Hi,

I would like to use sparklines in a gridview. The control closer to my needs seem to be the RadScatterSparkline.
I need exactly a points chart but I would like to be able to draw one to two additional lines on demand.
Those line need to be horizontal straight line and reprensent target number or min or max, etc.
1. I need to add one to two straight lines.
2. I need to get bigger dots.
3. I need to get separate color for each dot.

Here's a picture of what I'm talking about.

Is it possible to achieve that with a RadScatterSparkline or other controls?

Thank you for your help!
Petar Marchev
Telerik team
 answered on 17 Oct 2014
1 answer
198 views
Hi,

I would like to know if it's possible to not have a SelectedItem when the dropdown appear?!? What I'm trying to do is when the dropdown appear, if the user press the down key, I want the first to become selected not automatically when the dropdown appear...

Thank's
Alain
Nasko
Telerik team
 answered on 17 Oct 2014
8 answers
965 views
Hi,

Existing behavior:
I have a RadAutoCompleteBox with multiple selection in my WPF view.

I have added the code to open the drop down values when mouse clicked for the first time or got focus on AutoCompeleteBox. After selecting the single item, I am not able to open the drop down values again by using mouse click. I have to focus on another element in the view and focus back to auto complete box, it opens the drop down values on mouse click.

Problem:
I want to open the drop down values on mouse click after selecting the item (not by typing).

Reference:
I have checked "Demo - Telerik UI for WPF", it also has the same behavior.

Let me know if you have any questions.

Kind Regards,
NP.
Nirav
Top achievements
Rank 1
 answered on 17 Oct 2014
2 answers
664 views
I have the following RadGridView defined:                    

<telerik:RadGridView Grid.Row="1" x:Name="gvUnits" ItemsSource="{Binding UnitsOfMeasure}" ColumnWidth="*" 
                                         AutoGenerateColumns="False"
                                         RowEditEnded="Entity_EditEnded"
                                         Deleted="Entity_Deleted"
                                         Margin="5">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" IsReadOnly="False"/>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>

From what I've read there should be a default cell edit template, but when I click on an item I only get a blank box. I have also tried adding a custom celledittmplate as follows:

                    <telerik:RadGridView Grid.Row="1" x:Name="gvUnits" ItemsSource="{Binding UnitsOfMeasure, Mode=TwoWay}" ColumnWidth="*" 
                                         AutoGenerateColumns="False"
                                         RowEditEnded="Entity_EditEnded"
                                         Deleted="Entity_Deleted"
                                         Margin="5">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" IsReadOnly="False">
                                <telerik:GridViewDataColumn.CellEditTemplate>
                                    <DataTemplate>
                                        <TextBox Text="{Binding Name}"/>
                                    </DataTemplate>
                                </telerik:GridViewDataColumn.CellEditTemplate>
                            </telerik:GridViewDataColumn>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
 Is there something else I need to do to make the text editable? Is it one-way binding by default?

I'm sure this is an easy question, I'm just new to your controls.
Eric
Top achievements
Rank 1
 answered on 16 Oct 2014
4 answers
392 views
Hi

I have a RadGridView with its ItemsSource bound to a RadObservableCollection. I have applied both custom filtering and grouping to the GridView.

The problem is that not all items are shown after the RadObservableCollection have been cleared and updated. It could be that I only see one row out of twelwe. There is space for the rest of the items but the area only shows the background color. Hovering the area does not do any difference. Only when I touch the scrollbar all rows appear.

Here is how I update the RadObservableCollection:

   VideoLossItems.SuspendNotifications();
   VideoLossItems.Clear();
   VideoLossItems.AddRange(items);
   VideoLossItems.ResumeNotifications();

I am attaching two files that show the difference.

Do you know what might be causing this issue? Is there a decent workaround for it?
Ola
Top achievements
Rank 1
 answered on 16 Oct 2014
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
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?