Telerik Forums
UI for WPF Forum
49 answers
978 views

Hi guys!

I installed the new Visual Studio 2015, and created a new Telerik WPF project with reference to Telerik.Windows.Controls, Telerik.Windows.Controls.GridView, Telerik.Windows.Controls.Navaigation etc.

I'm using implicit styles.

Now I want add some Telerik control, but the IntelliSense is not working!

<Window x:Class="TestWithNavigation.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="350" Width="525">
        <Grid>
                <telerik:        ***** The IntelliSense NOT WORKING ********
        </Grid>
</Window>
 

If I drop the reference to Telerik.Windows.Controls.Navigation, it's working well.

Is it a bug? is there a way to resolve it?

Thanks , Yehudah

Petar Mladenov
Telerik team
 answered on 09 Dec 2015
3 answers
167 views

How can we make the NumericButtonCount adjust based on the width of the data pager? Using a constant value for the button count makes the control very awkward for use as most everything else is sized dynamically in a WPF application.

Maya
Telerik team
 answered on 08 Dec 2015
1 answer
185 views

In the wizard demo the side header goes from top to bottom. Is it possible to have the header go across the top of the modal and side header under it?

Like it's displayed in the WPF doc Overview, http://docs.telerik.com/devtools/wpf/controls/radwizard/overview.

 

Thanks,
Rich 

 

Yoan
Telerik team
 answered on 08 Dec 2015
2 answers
307 views

Hello,

 I need to get the visible rows. I've seen how to do this by way of: theGrid.ChildrenOfType<GridViewRow>();

But this seems to have a flaw. If I expand a group and then collapse that group, the rows in the group are now returned as visible.

Is there a way to get only the currently visible rows?

 Thanks,

Scott

Scott
Top achievements
Rank 1
 answered on 08 Dec 2015
1 answer
354 views
I currently have a column that binds to a collection of enums. I'm trying to change it so that it will display the display attribute name instead of the enum name. I was able to the the CellTemplate to display the correct attribute name but I wasn't able to get the CellEditTemplate to display the the dropdown correct. It doesn't show anything when clicked. 

My original code that works but doesn't use display name

    <telerik:GridViewComboBoxColumn Header="Event Type" ItemsSource="{Binding ScriptEvents}" DataMemberBinding="{Binding SelectedEvent}"  IsReadOnly="False" />

What I tried


    <telerik:GridViewComboBoxColumn ItemsSource="{Binding ScriptEvents}" DataMemberBinding="{Binding SelectedEvent}" IsReadOnly="False">
        <telerik:GridViewComboBoxColumn.CellTemplate >
            <DataTemplate>
                <TextBlock Text="{Binding SelectedEvent, Converter={StaticResource EnumToDisplayAttribConverter}}"/>
            </DataTemplate>
        </telerik:GridViewComboBoxColumn.CellTemplate>
        <telerik:GridViewComboBoxColumn.CellEditTemplate >
            <DataTemplate>
                <telerik:RadComboBox ItemsSource="{Binding ScriptEvents, RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl}}">
                    <telerik:RadComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding SelectedEvent, Converter={StaticResource EnumToDisplayAttribConverter}}" DataContext="{Binding}"/>
                        </DataTemplate>
                     </telerik:RadComboBox.ItemTemplate>
                 </telerik:RadComboBox>
             </DataTemplate>
        </telerik:GridViewComboBoxColumn.CellEditTemplate>
    </telerik:GridViewComboBoxColumn>

Code for enum converter can be found here http://formatexception.com/2014/07/bind-a-combobox-to-an-enum-while-using-display-attribute/ 
Stefan
Telerik team
 answered on 08 Dec 2015
1 answer
209 views

my requirement as below:

1:  Don't display the underline and thousand-separator when the text box is focused

2: If the number typed is bigger than one thousand, it will fill  thousand-separator automatically (the text box is still being focused).For example, if I type in 123,then it displays as 123.00;then I input the fourth  number 7,I want it displays as 1,237.00 immediately(not only after the text box lost focused). it's important that keeping  then cursor position be after the number 7.

3:when the entire content is selected and I delete it,the value of the the text box should be zero and displays as 0.00

 many thanks


Peshito
Telerik team
 answered on 08 Dec 2015
9 answers
869 views

 

 

 

Hi,

I want to define a tooltip that will shown, when mouse is over the title of the column.

Used the below code xaml for tooltip, but it is not showing tooltip.

<
telerik:GridViewDataColumn Header="First Name"

 

 

 

DataMemberBinding="{Binding FirstName}" ToolTip="First Name Tooltip" />

I am missing any thing.

Thanks,
-Narendra

 

Sunil
Top achievements
Rank 1
 answered on 07 Dec 2015
11 answers
250 views

I have a RadObservableCollection which is populated with 2560 DataPoint Objects every 800ms.  Each DataPoint object has a Time and Value property (DateTime and Double).

I only want to store 10 seconds worth of data, so every time I add a value, I check whether the collection contains 10 seconds of data or not already.  If it does, I remove the first item in the collection.

1.foreach (RawDataPoint rdp in ldp)
2.{
3.    _Real.Add(new DataPoint(rdp.Time, rdp.Value));
4.    if((rdp.Time.Add(-dataTimeSpan) > _Real[0].Time))
5.    {
6.        _Real.RemoveAt(0); // This is an Order(n) operation.
7.    }
8.}

Unfortunately the RemoveAt(0) function on RadObservableCollection is an O(n) operation and this is causing my application to slowdown as my collection grows to it's "full" capacity, which is many thousands of entries.  Because my data is coming in so fast, I need everything to happen in less than 1 second.

I've created an ObservableQueue<T> class which implements INotifyCollectionChanged and has a ConcurrentQueue as the underlying data type, whose TryDequeue operation is O(1).  Like the following:

 

public class ObservableQueue<T> : INotifyCollectionChanged, IEnumerable<T>
   {
       public event NotifyCollectionChangedEventHandler CollectionChanged;
       private readonly ConcurrentQueue<T> queue = new ConcurrentQueue<T>();
 
       public void Enqueue(T item)
       {
           queue.Enqueue(item);
           if (CollectionChanged != null)
               CollectionChanged(this,
                   new NotifyCollectionChangedEventArgs(
                       NotifyCollectionChangedAction.Add, item, queue.Count - 1));
       }
 
       public T Dequeue()
       {
           T result;
           bool dequeued = (queue.TryDequeue(out result));
           if (CollectionChanged != null && dequeued)
           {
               CollectionChanged(this,
                   new NotifyCollectionChangedEventArgs(
                       NotifyCollectionChangedAction.Remove, result, 0));
           }
           return result;
       }
 
       public T First()
       {
           T item;
           queue.TryPeek(out item);
           return item;
       }
 
       public IEnumerator<T> GetEnumerator()
       {
           return queue.GetEnumerator();
       }
 
       IEnumerator IEnumerable.GetEnumerator()
       {
           return GetEnumerator();
       }
   }

My new implementation of the code to update the collection is as follows:

public void Add(List<RawDataPoint> ldp)
{
    foreach (RawDataPoint dp in ldp)
    {
        _Real.Enqueue(new DataPoint(dp.Time, dp.Value));
        if ((dp.Time.Add(-dataTimeSpan) > _Real.First().Time))
        {
                _Real.Dequeue();  // this is an Order(1) operation.
        }
    }
}

However I can't get the solution to work.  Either it locks up my UI or I get a "Collection was modified during enumeration" exception.

Is there any way to better implement a limited size collection where I can remove the first value in O(1) time?

Peshito
Telerik team
 answered on 07 Dec 2015
1 answer
189 views

Hi,

 

I'm trying to use the RadRichTextBow to perform some printings but after lots of tries, the richtextbowx is still always blank....

I even try to create a new project with only a span with no success....

 

<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApplication1"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadRichTextBox x:Name="test">
            <telerik:RadDocument>
                <telerik:Section>
                    <telerik:Paragraph>
                        <telerik:Span Text="Span declared in XAML" />
                    </telerik:Paragraph>
                </telerik:Section>
            </telerik:RadDocument>
        </telerik:RadRichTextBox>
    </Grid>
</Window>

Am I doing something really wrong ? Maybe a missing reference...

Lilian
Top achievements
Rank 1
 answered on 07 Dec 2015
2 answers
63 views

Good afternoon,

As the title says, I am looking for a way to add a new pane without navigation to it / having it selected.

I've searched around google and even in the forums and documentation but I haven't found an example or answer (maybe I'm searching for the wrong terms).

Any help will be appreciated.

 

Thanks in advance,

Diogo

Diogo
Top achievements
Rank 1
 answered on 07 Dec 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
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
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?