Telerik Forums
UI for WPF Forum
4 answers
337 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
92 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
150 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
141 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
293 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
130 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
307 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.3K+ 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
2 answers
119 views

Hello,

I'm facing a strange behaviour. PdfViewer prints nothing. Prints only when page is selected as 1 in Print Dialog, if i try the same thing with selecting page 2 (or giving a range) it does nothing. I am binding DocumentSource of pdfviewer to a property  on my viewmodel which returns PdfDocumentSource. Pdf is rendered normally.

01.public Telerik.Windows.Documents.Fixed.PdfDocumentSource PdfReport
02.{
03.    get
04.    {
05.        Telerik.Windows.Documents.Fixed.PdfDocumentSource docSource;
06.        var array = Reporting.Pdf.PdfReportHelper.GetReport(); //Dynamically creates the pdf
07.        var output = new MemoryStream(array);
08.        docSource = new Telerik.Windows.Documents.Fixed.PdfDocumentSource(output);
09.        docSource.Loaded += (sender, args) => { if (output != null) output.Dispose();};
10.        return docSource;
11.    }
12.}

There is a similar thread like this about winforms wihch suggests to set ReadingMode to 0. I found a reading mode property in formatProviderSettings class but it didn't do the trick. Am i doing something wrong?

Boby
Telerik team
 answered on 22 Apr 2016
2 answers
685 views
Hi,

Is there a way to remove/restrict the default selection (first row) of the RadGridview?

Note:After pressing the row, it should display as selected.

Thanks,
Gord
Top achievements
Rank 1
 answered on 21 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
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?