Telerik Forums
UI for WPF Forum
2 answers
138 views

Hi,

I am running the following xaml:

<Grid><br>        <telerik:RadRibbonView telerik:KeyTipService.IsKeyTipsEnabled="True"><br>            <telerik:RadRibbonView.ApplicationMenu><br>                <telerik:ApplicationMenu telerik:KeyTipService.AccessText="F"><br>                    <telerik:RadRibbonButton Content="New" telerik:KeyTipService.AltAccessText="N"/><br>                </telerik:ApplicationMenu><br>            </telerik:RadRibbonView.ApplicationMenu><br>        </telerik:RadRibbonView><br>    </Grid><br>

 

When I do "Alt+F", it opens the main menu like it should, but then if I press "N" alone, it clicks the button but does not close the application menu (and the access key disappears too). If I press "Alt+N", it closes the application menu promptly. My question is how do I close the application menu on just "N" alone?

Any ideas?

Best

Usman
Top achievements
Rank 1
 answered on 22 Apr 2016
3 answers
133 views

Hello,

When I click in an empty gridview a new row is automatically created. How can I disable this functionality?

Because I need to do some validation first before a new row can be created in my scenario.

 

Thanks in advance.

Marcel

Yoan
Telerik team
 answered on 22 Apr 2016
4 answers
330 views

Hello. 
I have boolean column in my grid with custom checkbox template:

<telerik:GridViewDataColumn Header="Custom Bool Column"
                   EditTriggers="CellClick"
                   DataMemberBinding="{Binding LabelReady, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                   HeaderTextAlignment="Center">
   <telerik:GridViewColumn.CellTemplate>
      <DataTemplate>
         <Image Height="20" Margin="2"  Stretch="Uniform">
            <Image.Style>
               <Style TargetType="{x:Type Image}">
                  <Setter Property="Source" Value="/red-cross.png"/>
                     <Style.Triggers>
                        <DataTrigger Binding="{Binding LabelReady}" Value="True">
                           <Setter Property="Source" Value="/green-tick.png"/>
                        </DataTrigger>
                     </Style.Triggers>
                  </Style>
               </Image.Style>
            </Image>
         </DataTemplate>
      </telerik:GridViewColumn.CellTemplate>
   </telerik:GridViewDataColumn>

And I need to add a confirmation dialog on cell edit using MVVM approach, i.e. now when user double clicks on the image, the value is changed to opposite, how can I add a dialog, which will ask user if he really wants to change the value, and change the value in cell only if he press "Yes" ? 

 

iahulg
Top achievements
Rank 1
 answered on 22 Apr 2016
1 answer
91 views

When installing RadPivotGrid references using your Nuget packages, I notice that the Nuget installer insists that my WPF project take a reference to System.Windows.Forms. 

Why does a WPF control require WinForms-specific binaries?

Polya
Telerik team
 answered on 22 Apr 2016
1 answer
147 views

I've just discovered that the RadPivotGrid does not support cell selection. After searching your forums, I can see that this feature has been promised since Q1 2013 but not delivered as of Q! 2015.

 

Is there a realistic timeframe for the delivery of this feature? Not being able to select individual cells/rows/columns is a deal-breaker and will result in my project being forced to use DevExpress.

Polya
Telerik team
 answered on 22 Apr 2016
1 answer
138 views
is there an easy way to make child and parent nodes visible after finding a node that meets filter criteria?
Ivan Ivanov
Telerik team
 answered on 22 Apr 2016
4 answers
288 views

I want to know how to add LabelDefinitions within this SeriesProvider.

​

<telerik:RadCartesianChart.SeriesProvider>
    <telerik:ChartSeriesProvider Source="{Binding PolygonFuncTable, Mode=OneWay}">
        <telerik:ChartSeriesProvider.SeriesDescriptors>
            <!-- Polygon -->
            <telerik:ScatterSeriesDescriptor ItemsSourcePath="ColorPoints" XValuePath="X" YValuePath="Y">
                <telerik:ScatterSeriesDescriptor.Style>
                    <Style TargetType="telerik:ScatterLineSeries">
                        <Setter Property="RenderOptions" Value="{StaticResource renderOptions}" />
                        <Setter Property="StrokeThickness" Value="2"/>
                        <Setter Property="Stroke" Value="Black"/>
                        <Setter Property="ShowLabels" Value="False"/>
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding ElementName=chkShowLabel, Path=IsChecked}" Value="True">
                                <Setter Property="ShowLabels" Value="True"/>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </telerik:ScatterSeriesDescriptor.Style>
                
            </telerik:ScatterSeriesDescriptor>
 
        </telerik:ChartSeriesProvider.SeriesDescriptors>
    </telerik:ChartSeriesProvider>
</telerik:RadCartesianChart.SeriesProvider>
Renier Pretorius
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 22 Apr 2016
1 answer
125 views

Hi,

We have specific themes project aligning to organisation branding. We have used Telerik Themes project as to create the same.

We have created few Dialog - for Login, About Windows in WPF. Example: Our About dialog is inherited from Window and have button. Now that we want to localise we see that Close button contents are not localised we have binding for Button Content from Resx file and I have localisation Resources DLL.

 

I checked even when the UI Thread Culture is German- the Close button content is still in English. I need your help to know if we need to use Localisation Manager to get this working. I have similar issues in Login Window that is developed similarly but has few more controls like Username text,Password text,Connect, Cancel button that needs to be localised.

 

Attached is sample project

 

 

Martin Ivanov
Telerik team
 answered on 22 Apr 2016
1 answer
299 views

I have a radSpiltButton with a simple search form in the drop down content. When the user hits enter I want a button on that form to be triggered (isDefault=true), however the enter is closing the drop down content.  How can I keep the content open when the user hits enter?

 

There doesn't seem to be a cancelable DropDownClosing event that I can cancel, so I tried checking for the pressed key in the DropDownClosed event. If the key is the enter key then I try to re-open the drop down. I received an error: "Cannot reopen a popup in the closed event handler."

private void splt_Customer_DropDownClosed(object sender, RoutedEventArgs e)
        {
            if (Keyboard.IsKeyDown(Key.Return))
            {
                splt_Customer.IsOpen = true;
              // Error: "Cannot reopen a popup in the closed event handler."
            }
        }

 

I can't re-open the drop down content once its been closed; so how do I prevent it from closing on enter in the first place?

 

 

 

Martin Ivanov
Telerik team
 answered on 22 Apr 2016
1 answer
1.2K+ views

I have a tab control with two tab items in it.It works perfectly in normal style .But when i applied some styles in XAML the tabs are not swtiching and i couldn't select an tab item too why its so?? Below is the style which i applied to tabcontrol

 

<Style TargetType="{x:Type telerik:RadTabItem}">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type telerik:RadTabItem}">
                <Grid>
                    <Border Name="Border" Margin="0,0,2,0" Background="#828282" BorderBrush="#828282" BorderThickness="1"  >
                        <ContentPresenter x:Name="ContentSite" VerticalAlignment="Center"
                            HorizontalAlignment="Center" ContentSource="Header"  RecognizesAccessKey="True"/>
                    </Border>
                </Grid>
                <ControlTemplate.Triggers>
                    <Trigger Property="IsSelected" Value="True">
                        <Setter Property="Panel.ZIndex" Value="100" />
                        <Setter TargetName="Border" Property="Background" Value="#CDCDCD" />
                        <Setter TargetName="Border" Property="BorderBrush" Value="#CDCDCD" />
                        <Setter TargetName="Border" Property="BorderThickness" Value="1,1,1,0" />
                    </Trigger>
                </ControlTemplate.Triggers>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

and here is the tabcontrol code

 

<Grid>
    <telerik:RadTabControl Margin="36,10,64,37">
        <telerik:RadTabItem x:Name="RadTabItem" Header="RadTab 1" Height="23" Width="59">
            <Grid Background="Transparent">
                <Label>RadTabItem1</Label>
            </Grid>
        </telerik:RadTabItem>
        <telerik:RadTabItem x:Name="RadTabItem2" Header="RadTab 2" Height="23" Width="59">
            <Grid Background="Transparent">
                <Label>RadTabItem2</Label>
            </Grid>
        </telerik:RadTabItem>
    </telerik:RadTabControl>
</Grid>

What am i doing wrongly ???
Martin
Telerik team
 answered on 22 Apr 2016
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?