Telerik Forums
UI for WPF Forum
3 answers
189 views
Today I stumbled on a strange behavior using the the telerik GridView. While editing  some cells of a column using the keyboard, suddenly the current cell ignores keyboard input. The effect is repeatable. Always after editing 5-10 celles using every time the same keyboard sequence, the cell ignores normal keyboard input. Only command keys like Del, Backspace or  Home are working. This behavior applies for all cells in the grid. Other input fields are working normally. After closing and re-opening the input window, it starts from scratch until the next occurence of the effect.

A short look with Spy++ shows that the WM_CHAR message will not be sent to the control while the effect occurs. WM_KEYDOWN and WM_KEYUP are sent normally.all the time.

The grid column is defined as:
    <telerik:GridViewDataColumn Header="Translation" DataMemberBinding="{Binding Path=OriginalTranslation}" Width="150*" MinWidth="100" TextWrapping="Wrap" Background="#1EFFFFFF" ShowDistinctFilters="False">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Path=Translation}" TextWrapping="Wrap" Background="#1EFFFFFF" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate>
                            <TextBox Text="{Binding Path=Translation}" TextWrapping="Wrap" BorderThickness="0" GotFocus="TextBox_GotFocus" Background="#1EFFFFFF" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>


Any idea what ist going wrong?

Regards Reimund
Yordanka
Telerik team
 answered on 12 May 2011
1 answer
134 views
When I use SelectionMode="Extended" and select rows (it doesn't seem to matter whether selecting a range or one at a time via Ctrl+click) and then copy/paste, the last row is always omitted.  Has anyone else had this issue, and has anyone come up with a solution?  Thanks!
Yordanka
Telerik team
 answered on 12 May 2011
5 answers
136 views
Hi
I need to place next radtabmenu partially on top of the previous one
May I ask what needs to be done to achieve this effect? thanks

 <telerik:RadTabItem Padding="4 3" x:Name="test" HeaderTemplate="{DynamicResource radTabItemTemplate}" Height="70" />

    <DataTemplate x:Key="radTabItemTemplate">
        <Grid>
            <Image Grid.Column="0" Source="pack://application:,,,/Images;component/images/greenarrow.gif"/>   
            <TextBlock Text="Security" Width="60" VerticalAlignment="Center" />
        </Grid>
    </DataTemplate>

thanks
george
Top achievements
Rank 1
 answered on 12 May 2011
1 answer
380 views
Hello. I was wondering if it was possible to override a single property of the telerik themes.

For instance, if I use Telerik:StyleManager.Theme to apply the Office_Black theme to all textbox controls can I override the VerticalAlignment property to make it "Top"? I tried to override just that one property both in a resource and locally in the xaml on the control itself and neither one worked.

I've read a few things that say that you cannot override just one property in a theme applied to controls.

Any help would be greatly appreciated.

Thanks,

John
Vanya Pavlova
Telerik team
 answered on 11 May 2011
0 answers
77 views
Hi
I'm Using the Entity framework 4 as my data access and i binding the grid data context to an ranks entity-set
but but when it's make database select to count the records every time i update the grid-view

InitializeComponent();
RanksGridView.ItemsSource = _crewing.Ranks.OrderBy(r=>r.Name);
Mahmoud
Top achievements
Rank 1
 asked on 11 May 2011
1 answer
109 views

I'm creating a MVVM application (WPF Browser Application) which uses RadWindow to show images. Every time I open image with the RadWindow and close it, the memory usage continues increased and never fall back, at the end, it will throw Out of Memory exception. Is there anyone know why RadWindow can not free the memory it used.

George
Telerik team
 answered on 11 May 2011
4 answers
317 views
Hello,

I have implemented a custom Menu similar to the one shown in the demos [http://demos.telerik.com/wpf/Telerik.Windows.Examples.xbap] using WPF. I am using the "Integration Example" which combines an Image, a Title and a Summary. The problem I am facing is that I can't figure out how I can attach the MenuItem_Click event when a user click on different menu. I tried the following but it does not work:
<telerik:RadMenu Grid.Row="1"
Style
="{StaticResource MenuStyle}"
ItemsSource
="{StaticResource MenuItemsSource}"
ItemContainerStyleSelector
="{StaticResource MenuItemStyleSelector}"
ItemContainerStyle
="{x:Null}"
MenuItem.Click="MenuItem_Click"/>


Any idea how I can attach the MenuItem_Click event ?

Thanks.
Yas
Top achievements
Rank 1
 answered on 11 May 2011
1 answer
61 views
 Hi,,
I am using 2D scattered point series. On X axis, i made  PlotAreaAxisLabelsVisibility="Visible" to show the numbering on center of graph. My min x value is -1.5 and max is 1.5. When I zoom, the numbering on the bottom x-axis line is changing but Center x-axis line numbering stays -1.5-1.5. Any suggestion. 
Evgenia
Telerik team
 answered on 11 May 2011
3 answers
162 views
In short, if a control template uses triggers with enter/leave actions affecting a UIElement which is collapsed, WPF will leak that UIElement (complete specifics can be found here: http://blog.ramondeklein.nl/index.php/2009/02/20/memory-leak-with-wpf-animations/). Briefly, what happens is that if the item is collapsed, the enter/exit actions will not actually occur, but will be placed in a "DeferredActions" table in the template itself. If the UIElement is never shown, then these deferred actions won't be evaluated, and they'll remain as strong references to the the still collapsed UIElement.

In our case, this happens with the template for the RadBusyIndicator, which amongst other things, sets a ControlTemplate for the RadProgressBar it contains. The "IndeterminateDonut" UIElement in the RadProgressBar is initially Collapsed, even though there are Enter/Exit actions for animating it to continually go in a circle. Now this doesn't seem to be a problem when the BusyIndicator actually shows up at some point. However, when the RadBusyIndicator doesn't show up at any point during a Window's lifetime, and then the window is closed, we manifest the same exact problem as described above.

The fix was to grab the default ControlTemplate for the RadBusyIndicator, and change the initial visibility of the RadProgressBar to Hidden instead of Collapsed, so those actions can be evaluated. I haven't tested if this affects animation performance, however. As the link describes, this is fixed in WPF 4 using the ConditionalWeakTable to keep weak references to the elements which deferred actions will affect.
Pana
Telerik team
 answered on 11 May 2011
7 answers
437 views
When I set the command to an ApplicationCommand or an EditingCommand for a button within a standard
ToolBar as follows:
<ToolBar>
   <Button Command="ApplicationCommands.Cut" ToolTip="Cut">
      <Image Source="/Project;component/Images/editcut.png"/>
   </Button>
   <Button Command="EditingCommands.ToggleBold" ToolTip="Bold">
      <TextBlock FontWeight="Bold"><Run Text="B"/></TextBlock>
   </Button>
</ToolBar>
these commands fire correctly for text contained within a RichTextBox.

However if I change the ToolBar to a RadToolBar, the buttons are disabled.

What do I need to do to allow these commands to fire as expected?





Rayne
Top achievements
Rank 1
 answered on 11 May 2011
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
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?