Telerik Forums
UI for WPF Forum
0 answers
131 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
491 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
224 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
107 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
118 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
1 answer
417 views

I have a RadCartesianChart chart with a dynamic number of date/double series.  So, I'm using a ChartSeriesProvider and programmatically generating the CategoricalSeriesDescriptor instances for the series.  The x values for the data are of type DateTime, but the query results are actually grouped by the actual query already so that they are per year, month, etc.  So, if the query was grouped by month, I would have a single point to plot where the Datetime value is on the first of the month.  For most groupings, I can use the axis.LabelFormat property to provide an x axis label that is appropriate to the grouping.  Ex. for month, I'd provide something like "MMM, yyyy". However, there is no format specifier for week number (of the year) or quarter number for me to generate labels like "Week 12, 2013".  Is there a way for me to generate that kind of label? Maybe some other method besides using Axis.LabelFormat?


Thanks - Mitch

Peshito
Telerik team
 answered on 17 Dec 2013
12 answers
733 views

I think I've seen this problem before, but none had a documented resolution.  I have a list of objects from the database that I want to display in a property grid.  The tables and view have been built to provide all that I need for the property grid.  Here is the poco def:

public class Setting

{

public string ParameterName { get; set; }

public string ParameterValue { get; set; }

public string DataTypeName { get; set; }

public string ParameterTypeName { get; set; }

public string Description { get; set; }

}

I am trying it in code behind first, so my xaml is simple:

<telerik:RadPropertyGrid x:Name="_propertyGrid" AutoGeneratePropertyDefinitions="False" />

and the code-behind gets the list of Setting instances from the view model and wraps a PropertyDefinition around it.  It adds that PropertyDefinition to the property grid, then binds the property grid to the entire list:

List<Setting> settings = viewModel.Settings;

foreach (Setting setting in settings)

{

_propertyGrid.PropertyDefinitions.Add(new PropertyDefinition(/*new ItemPropertyInfo(setting.ParameterName, Type.GetType(setting.DataTypeName), setting.Description)*/)

{

 Binding = new Binding("ParameterValue") { Mode = BindingMode.TwoWay /*, Path = new PropertyPath("ParameterValue")*/ },

 

 Description = setting.Description,

 DisplayName = setting.ParameterName,

 GroupName = setting.ParameterTypeName,

});

}

_propertyGrid.Item = settings;

 

This works perfectly in some ways: every instance gets a row in the grid; and the DisplayName, Description, and GroupName all match the poco from whence it came.

However, I cannot get the ParameterValue to display.  I know it is set because I can set DisplayName or Description to setting.ParameterValue and the actual value shows in the name or description, but never in the bound data.

I look at my output window and get no binding errors.  However I get no errors even if I intentionally misspell the ParameterValue property's name, so I don't think that is conclusive.

 

The commented out code is stuff I've tried that either generates a runtime error (new ItemPropertyInfo), or has no effect (new PropertyPath). Both seem interesting though, so I left them in for exploration.

So my question is, can I bind the value of a property grid to a specific property of a poco in a list of them, as I can bind things like Description, DisplayName and GroupName?

Thank you very much for your time on this.

 
Edit: Somebody else commented in another post that it works if PropertySetMode is set to None, so I added this:

_propertyGrid.PropertySetMode = PropertySetOperation.None;

with no effect.  However, if I set to to Union or Intersection, the *GroupName* (not the value, but the category) shows up in the data.  How is that possible?

Dimitrina
Telerik team
 answered on 17 Dec 2013
5 answers
218 views
Hallo,
we have a new issue with RadTabControl - when we use style selector to use RadTabControl in MVVM concept, after we create more than one TabItems, after each active tab control item change, the View's constructor is everytime called.. - why RadTabControl is creating everytime new instance??? (-> Click on the button to add any tab items, create breakpoint into constructor UserControl1() and switch between the tabs...)
When we change RadTabControl into TabControl (remove all Telerik's stuff from MainWindow.xaml), the problem is solved... Thank you for your help...
Joel
Top achievements
Rank 1
Iron
 answered on 17 Dec 2013
3 answers
180 views
I have a DataTable bound to a RadGridView. I wish to display data errors for all rows on load.

When I create my DataTable I validate it, and if a cell has an error I call the following:

row.SetColumnError(1, "This cell has an error");

I can't get this to show up in the grid. How can I do this with a DataTable?

Thanks
Yoan
Telerik team
 answered on 16 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
PersistenceFramework
DataPager
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?