Telerik Forums
UI for WPF Forum
1 answer
227 views
How to disable row edit mode? Leave only insert and delete.
Yoan
Telerik team
 answered on 27 Nov 2012
1 answer
242 views
Hi,

If the vertical scrollbar is used to scroll the list of dropdown items and then whilst the drop down is still displayed the applications main window is moved, the dropdown panel remains at it's former position and does not follow the location of the autocomplete edit box.

Is there a way to control this so that it either moves with the form or closes before the form is moved in the same way that a combobox would?

Attached screenshot illustrates the problem when using the WPF demo controls application.

Rgds
Graeme
Alek
Telerik team
 answered on 27 Nov 2012
0 answers
71 views
HI ,

i am using trail version of Test studio and i want to display the value of a variable. To display the value in C# we will use "MessageBox.Show("Value of the variable")". when i use this method i am getting one error message as namespace is not added as a hedder files, but i am not able to see in the list namesapces because i have not added repective *.dll files. can any one please let me know about adding of *.dll files.

Thanks
satyanarayana
S
Top achievements
Rank 1
 asked on 27 Nov 2012
2 answers
237 views
Hello,

We are using version 2012.2.607.40 of your WPF controls.  Our application supports several font sizes so we updated many Telerik styles and templates for the PropertyGrid to use the dynamic font size. Our changes worked for the property names (they all show the correct size now), but some of the values do not.  We do not see where the value templates are so that we can change them.

How can we get to the right templates for the PropertyGrid values so we can change them to use our dynamic size -for all the value types used in the property grid? Or, is there another way to accomplish this?  I've attached a picture so you can visualize the problem.  You can see some of the values have the larger size but others do not. 

Thanks!
-Mark
mark
Top achievements
Rank 1
 answered on 27 Nov 2012
2 answers
151 views
When I run my program with debug then everything works normal, but whenever I run without debug or from the exe it dosn't display anything.  Actually it tells me it is empty when I have already added the controls in xaml, they are static not dynamic at all.  It still says all my controls exist and I can use them but they not displayed at all.  This used to work but I made not changes that would break it.  I do however toggle it's visibility but even when I have it always visible it dosn't work.  It's like it is not seeing anything under the RadDocking tag.

<telerik:RadDocking Background="#edf3fa"  x:Name="dmManager" Grid.Row="1" Margin="0,0,0,33" Padding="0,0,0,0">
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                    (Assume controls)
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
 
            <telerik:RadSplitContainer InitialPosition="DockedLeft">
                <telerik:RadPaneGroup>
                    (Assume controls)
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 
            <telerik:RadSplitContainer InitialPosition="DockedRight">
                <telerik:RadPaneGroup>
                    (Assume controls)
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
 
            <telerik:RadSplitContainer x:Name="Bottom"  InitialPosition="DockedBottom">
                <telerik:RadPaneGroup>
                    (Assume controls)
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
Alex
Top achievements
Rank 1
 answered on 26 Nov 2012
1 answer
254 views
What is the proper way of coding standard to bind the ObservableCollection to ItemSource?
The case i'm facing is i have multiple lineseries, therefore, i created an ObservableCollection<IEnumberable><T>> that contains array of ObservableCollection<T>. i make the ObservableCollection<IEnumberable><T>> binded to the itemsource of lineSeries with INotifyPropertyChanged.

Code Snippet:
XAML:
<chartView:LineSeries x:Name="Item1" ItemsSource="{Binding Item[0]}" ValueBinding="Value" CategoryBinding="Counter" />
<chartView:LineSeries x:Name="Item2" ItemsSource="{Binding Item[1]}" ValueBinding="Value" CategoryBinding="Counter" />
<chartView:LineSeries x:Name="Item3" ItemsSource="{Binding Item[2]}" ValueBinding="Value" CategoryBinding="Counter" />
<chartView:LineSeries x:Name="Item4" ItemsSource="{Binding Item[3]}" ValueBinding="Value" CategoryBinding="Counter" />
<chartView:LineSeries x:Name="Item5" ItemsSource="{Binding Item[4]}" ValueBinding="Value" CategoryBinding="Counter" />

C#
public ObservableCollection<IEnumerable<GraphPlot>> Item
{
      get { return m_item; }
      set
      {
           m_item = value;
           OnPropertyChanged("Item");
      }
}

i have an error "observablecollection collection was modified enumeration operation may not execute" using the code above.
is this the right way to bind it to multiple itemsource with only 1 Properties at real-time? any recommendation?

Petar Kirov
Telerik team
 answered on 26 Nov 2012
1 answer
233 views
<Rectangle Stroke="Black" StrokeThickness="1" Fill="#DADADA" Height="8" Width="8">
     <Rectangle.Triggers>
       <EventTrigger RoutedEvent="MouseLeftButtonDown">
         <BeginStoryboard>
           <Storyboard>
             <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen" Storyboard.Target="{x:Reference ContextMenu}">
               <DiscreteObjectKeyFrame>
                 <DiscreteObjectKeyFrame.Value>
                   <sys:Boolean>True</sys:Boolean>
                 </DiscreteObjectKeyFrame.Value>
               </DiscreteObjectKeyFrame>
             </ObjectAnimationUsingKeyFrames>
           </Storyboard>
         </BeginStoryboard>
       </EventTrigger>
     </Rectangle.Triggers>
     <telerik:RadContextMenu.ContextMenu>
       <telerik:RadContextMenu x:Name="ContextMenu" ShowDelay="0">
         <telerik:RadMenuItem Header="Reset value" />
         <telerik:RadMenuItem Header="Set binding" />
       </telerik:RadContextMenu>
     </telerik:RadContextMenu.ContextMenu>
   </Rectangle>

Click on the rectangle, then click somewhere else and radcontextmenu stays opened.  This way you can open multiple contexmenus simultaneously

This does not happen with regular contextmenu.
Rosen Vladimirov
Telerik team
 answered on 26 Nov 2012
3 answers
254 views
Hello,

I bind 2 Controls

<telerik:RadToggleButton x:Name="ShowLogButton"  Grid.Column="1" Grid.Row="1" Content="..."></telerik:RadToggleButton>
<telerik:RadListBox ItemsSource="{Binding Path=Log}" DisplayMemberPath="Description" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" Height="70" Visibility="{Binding ElementName=ShowLogButton, Path=IsChecked,  Converter={StaticResource ControlVisibilityConverter}}">
</telerik:RadListBox>

Follow Visible attribute, after saving and loading my window with Persistence Framework my toggle button is broken and dont works anymore

This code helps

<telerik:RadToggleButton x:Name="ShowLogButton"  Grid.Column="1" Grid.Row="1" Content="..."></telerik:RadToggleButton>
<telerik:RadListBox ItemsSource="{Binding Path=Log}" DisplayMemberPath="Description" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" Height="70" Visibility="{Binding ElementName=ShowLogButton, Path=IsChecked,  Converter={StaticResource ControlVisibilityConverter}}">
<telerik:PersistenceManager.SerializationOptions>
    <telerik:SerializationMetadataCollection>
        <telerik:PropertyNameMetadata Condition="Except" Expression="Visibility" SearchType="PropertyName" />
    </telerik:SerializationMetadataCollection>
</telerik:PersistenceManager.SerializationOptions>
</
telerik:RadListBox>

Should i use this for every binded Porperty? Can i exclude any binded properties from serialisation ?
Tina Stancheva
Telerik team
 answered on 26 Nov 2012
1 answer
213 views
Hi,

I've noticed that the panes and floating windows aren't focused when I right mouse click on each control.

What's the best way to focus a Pane/Floating Window on right mouse click?

Thank you for your time,

Rob
Georgi
Telerik team
 answered on 26 Nov 2012
5 answers
340 views
Hi,

I have a simple grid defined like this:

<telerik:RadGridView Name="OrdersGridView" SelectionMode="Single" ItemsSource="{Binding PagedSource, ElementName=OrdersPager}" AutoGenerateColumns="False" ShowInsertRow="True" UseLayoutRounding="False" CanUserDeleteRows="False" RowEditEnded="OrdersGridViewRowEditEnded" AddingNewDataItem="OrdersGridViewAddingNewDataItem">
    <telerik:RadGridView.SortDescriptors>
        <telerik:SortDescriptor Member="Id" SortDirection="Descending" />
    </telerik:RadGridView.SortDescriptors>
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Id}" Header="{x:Static properties:Resources.Id}" UniqueName="Id" IsReadOnly="True" />
        <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding status}" Header="{x:Static properties:Resources.Status}" UniqueName="Status" ItemsSource="{Binding Statuses}" SelectedValueMemberPath="Key" DisplayMemberPath="Value" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding SocialSecurityNumber}" Header="{x:Static properties:Resources.SocialSecurityNumber}" UniqueName="SocialSecurityNumber" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding VisitDate}" Header="{x:Static properties:Resources.VisitDate}" UniqueName="VisitDate" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Department}" Header="{x:Static properties:Resources.Department}" UniqueName="Department" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Information}" Header="{x:Static properties:Resources.Information}" UniqueName="Information" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding Recipient}" Header="{x:Static properties:Resources.Recipient}" UniqueName="Recipient" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding OrderDate}" Header="{x:Static properties:Resources.OrderDate}" UniqueName="OrderDate" DataFormatString="{} {0:yyyy-MM-dd}" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding OrderedBy}" Header="{x:Static properties:Resources.OrderedBy}" UniqueName="OrderedBy" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding ContactEmail}" Header="{x:Static properties:Resources.Email}" UniqueName="Email" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding ContactPhone}" Header="{x:Static properties:Resources.Phone}" UniqueName="Phone" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding DocumentId}" Header="{x:Static properties:Resources.DocumentId}" UniqueName="DocumentId" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding LoanDate}" Header="{x:Static properties:Resources.LoanDate}" UniqueName="LoanDate" DataFormatString="{} {0:yyyy-MM-dd}" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding LoanProcessedBy}" Header="{x:Static properties:Resources.LoanProcessedBy}" UniqueName="LoanProcessedBy" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding ReturnDate}" Header="{x:Static properties:Resources.ReturnDate}" UniqueName="ReturnDate" DataFormatString="{} {0:yyyy-MM-dd}" />
        <telerik:GridViewDataColumn DataMemberBinding="{Binding ReturnProcessedBy}" Header="{x:Static properties:Resources.ReturnProcessedBy}" UniqueName="ReturnProcessedBy" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>
 
<telerik:RadDataPager Grid.Row="1" Name="OrdersPager" Source="{Binding Path=Orders}" DisplayMode="First, Previous, Next, Last, Text" IsTotalItemCountFixed="True" />

The data is initiated like this:

Orders = new QueryableDataServiceCollectionView<Order>(ordersContext, ordersQuery) { PageSize = 20, AutoLoad = true };

When I add sorting to the grid (as seen in the xaml above) the grid on first load displays both the 20 orders that should be in the grid and the 20 orders that should have been in the grid if there was no initial sorting defined. When I step to the next page and then back again to the first page, only the 20 orders that should be in the grid remains.

So for instance, the orders in the grid on the first page might initialy be:
1, 2, 3, ..., 20, 100, 99, 98, ..., 81

But it should be:
100, 99, 98, ..., 81

Am I doing something wrong, or is this a bug?

Best regards
Linus
melkorman
Top achievements
Rank 1
 answered on 26 Nov 2012
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?