Telerik Forums
UI for WPF Forum
3 answers
210 views
We have been using RadGridView for over a year, quite successfully. We had an old project that implemented the Persistence Framework (using PersistenceManager) and successfully saved/loaded layouts. Now, however, in a new project using the latest DLLs (2013.2.724) the save works fine (supposedly) but the load fails. The error message in the output window is "A first chance exception of type 'System.NullReferenceException' occurred in Telerik.Windows.PersistenceFramework.dll".

We compared streams after saving and after loading and they are identical - so insofar as the save is working correctly, it is persisting the layout to the stream and then loading it back.

We have downloaded samples from these forums and they do indeed work (in the sample) so no one is sure what is going on. The grid we're trying to save is fairly trivial, nothing special. No custom properties, no custom filters. In fact, we copied the Proxies.cs and RadGridViewCustomPropertyProvider.cs from the sample application and it still fails with the same error.

Any assistance would be greatly appreciated. Opened a support ticket on this as well, but have not heard back yet.

Steve
Dimitrina
Telerik team
 answered on 18 Dec 2013
3 answers
132 views

Windows8TouchTheme doesn't show any noticeable change in the control if you disable or enable the control only that the clearcommand x will actually highlight.  I tried another theme and well they work.  Windows8TouchTheme seems sort of broken with MaskedInputNumeric.  This wasn't the case with the previous version of the assembly,  presently using 1204.45

Petar Mladenov
Telerik team
 answered on 18 Dec 2013
0 answers
106 views
Hi, firstly I'm using Telerik products more than 4 years and I've the latest version of products.

As you mentioned in Asp.Net demos, radgrid has edititemtemplate/insertitemtemplate properties. But I cannot make it work in WPF. Is there any way to enhance WPF gridview with ItemTemplates like you do in Asp.Net demos?

http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/edit-form-types/defaultcs.aspx

Hıncal
Top achievements
Rank 1
 asked on 18 Dec 2013
1 answer
87 views
Hello!

I have made sample project for you.
Look, ColumnGroupHeader "Price3" doesn't appear, when you resize window, but if you set (in code) window's width to 300, everything works fine.

http://www.2shared.com/file/tW5o4hF9/TestGridViewProject.html
Yordanka
Telerik team
 answered on 18 Dec 2013
0 answers
150 views


Posted 1 day ago (permalink)

Hi,

Currently we are using Telerik version (2013.2.724.40) .We are not getting ShortCut Key (Ctrl+S) in Telerik RadGridView Cells  in PreviewKeyUp event of the particulatr Cells .For e.Key we are getting as LeftCtrl itself.

Can you please help me to sort this issue.

Regards,
SimiHi,
Hi
CurrentlyHi,

Currently we are using Telerik version (2013.2.724.40) .We are not getting ShortCut Key (Ctrl+S) in Telerik RadGridView Cells  in PreviewKeyUp event of the particulatr Cells .For e.Key we are getting as LeftCtrl itself.

Can you please help me to sort this issue.

Regards,
Simi
we are using Telerik version (
2013.2.724.40) .We are not getting ShortCut Key (Ctrl+S) in Telerik RadGridView Cells  in PreviewKeyUp event of the particulatr Cells .For e.Key we are getting as LeftCtrl itself.

Can you please help me to sort this issue.

Regards,
Simi
Hi,

Currently we are using Telerik version (2013.2.724.40) .We are not getting ShortCut Key (Ctrl+S) in Telerik RadGridView Cells  in PreviewKeyUp event of the particulatr Cells .For e.Key we are getting as LeftCtrl itself.

Can you please help me to sort this issue.

Regards,
Simi
Simi
Top achievements
Rank 1
 asked on 18 Dec 2013
4 answers
516 views
Hi
I'm using RadWindow as message box, I want to hide window border how can I do that?

Thanks in advance
Mehri
Dan
Top achievements
Rank 1
 answered on 18 Dec 2013
2 answers
237 views
Hello,

I have a radgridview where one column is an edit button which redirects the page and the rest of the columns are databound from my source.

My problem is that to be able to press the edit button on a specific row for the first time the user basically has to press it twice because the first click for some reason focuses the entire gridview first into view.

**small edit**
This only happens when the entire gridview does not fit into the view so I am guessing it tries to automatically fit itself as best as it can before it lets me press the edit button - it does not happen if i press on any of the static uneditable fields - only on the edit button

   <telerik:RadGridView Name="radGridView"  VerticalAlignment="Top" AutoGenerateColumns="False" Grid.Row="2" ValidatesOnDataErrors="None" IsReadOnly="True" ShowColumnSortIndexes="True" CanUserFreezeColumns="False" ItemsSource="{Binding PagedSource, ElementName=radDataPager}" >
                <telerik:RadGridView.Columns><br>
                    <telerik:GridViewColumn Header="Edit"><br>
                        <telerik:GridViewColumn.CellTemplate><br>
                            <DataTemplate><br>
                                <Button Content="Edit" Style="{StaticResource HyperLinkButtonStyle}"<br>
                                            Click="EditButton_Click" /><br>
                            </DataTemplate><br>
                        </telerik:GridViewColumn.CellTemplate><br>
                    </telerik:GridViewColumn><br>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Organization}" Header="Organization"/><br>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding VisitDate, StringFormat=d}" Header="Visit Date"/><br>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Location}" Header="Location"/><br>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Address}" Header="Address"/><br>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ContactPersonName}" Header="Contact Name"/><br>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ContactPersonEmail}" Header="Contact E-mail"/><br>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ContactMobileNumberConcatenate}" Header="Contact Mobile Number"/><br>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ContactHomeNumberConcatenate}" Header="Contact Home Number"/><br>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ContactOfficeNumberConcatenate}" Header="Contact Office Number"/><br>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ContactFaxNumberConcatenate}" Header="Contact Fax Number"/><br>
                </telerik:RadGridView.Columns><br>
            </telerik:RadGridView>

Is there a way to prevent this focus from happening when I press on an edit button inside the grid? or am I missing something else
Yoan
Telerik team
 answered on 17 Dec 2013
3 answers
112 views
I can only see Text Editing commands and Clipboard commands in the default context menu, and i don't want to customize another context menu, is there any possibility that i can show Table Editing commands by just setting somethings.
Petya
Telerik team
 answered on 17 Dec 2013
5 answers
1.3K+ views
I have a number of WPF RadComboBox controls in a WPF window and am handling the LostFocus event for each one so that I know which field has just been left. However, when a RadComboBox control gets focus via a mouse click it seems to fire a LostFocus event before its GotFocus event, which is causing my code to think it's left a field before it's even got there! This appears to be different behaviour from the other Rad input controls I'm using (e.g. RadWatermarkTextBox, RadDateTimePicker, etc).

Note that this problem only occurs when changing focus between the fields using mouse clicks. It doesn't appear to occur when navigating between the fields using the Tab key.

Is this a known bug or am I doing something wrong? Either way, is there a fix or workaround available.

The following is the xaml and code behind from a sample WPF window I created to highlight the problem...

<Window x:Class="MainWindow"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
         
        <StackPanel Grid.Row="0"  Height="Auto" HorizontalAlignment="Stretch" Name="StackPanel1" VerticalAlignment="Stretch" Width="Auto">
            <telerik:RadComboBox Name="Combo1" Text="One"
                                 Margin="2" IsEditable="True"
                                 GotFocus="RadComboBox_GotFocus"
                                 LostFocus="RadComboBox_LostFocus">
                <telerik:RadComboBox.Items>
                    <telerik:RadComboBoxItem>One</telerik:RadComboBoxItem>
                    <telerik:RadComboBoxItem>Two</telerik:RadComboBoxItem>
                    <telerik:RadComboBoxItem>Three</telerik:RadComboBoxItem>
                    <telerik:RadComboBoxItem>Four</telerik:RadComboBoxItem>
                </telerik:RadComboBox.Items>
            </telerik:RadComboBox>
            <telerik:RadComboBox Name="Combo2" Text="Six"
                                 Margin="2" IsEditable="True"
                                 GotFocus="RadComboBox_GotFocus"
                                 LostFocus="RadComboBox_LostFocus">
                <telerik:RadComboBox.Items>
                    <telerik:RadComboBoxItem>Five</telerik:RadComboBoxItem>
                    <telerik:RadComboBoxItem>Six</telerik:RadComboBoxItem>
                    <telerik:RadComboBoxItem>Seven</telerik:RadComboBoxItem>
                    <telerik:RadComboBoxItem>Eight</telerik:RadComboBoxItem>
                </telerik:RadComboBox.Items>
            </telerik:RadComboBox>
            <telerik:RadComboBox Name="Combo3" Text="Eleven"
                                 Margin="2" IsEditable="True"
                                 GotFocus="RadComboBox_GotFocus"
                                 LostFocus="RadComboBox_LostFocus">
                <telerik:RadComboBox.Items>
                    <telerik:RadComboBoxItem>Nine</telerik:RadComboBoxItem>
                    <telerik:RadComboBoxItem>Ten</telerik:RadComboBoxItem>
                    <telerik:RadComboBoxItem>Eleven</telerik:RadComboBoxItem>
                    <telerik:RadComboBoxItem>Twelve</telerik:RadComboBoxItem>
                </telerik:RadComboBox.Items>
            </telerik:RadComboBox>
        </StackPanel>
         
        <ListBox Grid.Row="1" Height="Auto" HorizontalAlignment="Stretch" Name="EventList" VerticalAlignment="Stretch" Width="Auto" />
    </Grid>
</Window>

Imports Telerik.Windows.Controls
 
Class MainWindow
 
    Private Sub RadComboBox_GotFocus(sender As System.Object, e As System.Windows.RoutedEventArgs)
        Dim cbo = CType(sender, RadComboBox)
        AddEventToList(cbo.Name, "GotFocus")
    End Sub
 
    Private Sub RadComboBox_LostFocus(sender As System.Object, e As System.Windows.RoutedEventArgs)
        Dim cbo = CType(sender, RadComboBox)
        AddEventToList(cbo.Name, "LostFocus")
    End Sub
 
    Private Sub AddEventToList(ByVal ctrlName As String, ByVal eventName As String)
        EventList.Items.Add(String.Format("{0} : {1} : {2}", EventList.Items.Count, ctrlName, eventName))
        EventList.ScrollIntoView(EventList.Items(EventList.Items.Count - 1))
    End Sub
 
End Class
Petya
Telerik team
 answered on 17 Dec 2013
0 answers
126 views
Hi.,

How to increase the size of the data pager button ie, Height And Width of button tin data pager.... And i want to show the data pager if number of items in the datagrid exceeds the limit.
 
Prakash
Top achievements
Rank 1
 asked on 17 Dec 2013
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?