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" ?
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?
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.
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
>
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
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?
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
>
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?