Telerik Forums
UI for WPF Forum
3 answers
154 views
Hello, I would like to change the display format of RadGridView column's RadDatePicker.
The best I could achieve is as shown in Scenario 1, but upon selecting other cells, it kept showing the default display as shown in Scenario 2. The default display value is also what I will be getting when I tried to retrieve it from back-end. Is there a solution to display as what it is shown in Scenario 1 upon clicking other cells, and also retrieve it? Thanks for your attention. Attached is the picture of the 2 scenarios, and below are my codes:

<telerik:GridViewDataColumn DataMemberBinding="{Binding Path=SvcDate}" UniqueName="SvcDate"
                                            TextWrapping="Wrap" Width="100" TextAlignment="Center" DataFormatString="{}{0:yyyy/MM/dd}">
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Service Date" TextAlignment="Center"/>
                    </telerik:GridViewDataColumn.Header>
                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate>
                            <telerik:RadDatePicker SelectedValue="{Binding Path=SvcDate}"                                                  
                                                   DateTimeWatermarkContent="Service"
                                                   ErrorTooltipContent="Unrecognised format. Use drop-down interface for input assistance."
                                                   Culture="ja-JP">
                            </telerik:RadDatePicker>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>

Dexter
Top achievements
Rank 1
 answered on 29 Apr 2014
2 answers
149 views
Currently I am using print and print preview code from "Print and Export with RadDocument" WPF Demo.
this is not working if more than 250 records in grid and Print and Preview takes too much time.
Yogesh
Top achievements
Rank 1
 answered on 28 Apr 2014
1 answer
295 views
Hi, I'm trying to change the DisplayMemberPath triggered by IsDropDownOpen, but the displayed value does not change. I tried to change the background of the combobox just to verify that the trigger works, and the background is changed accordingly to the IsDropDownOpen state. Am I doing this wrong, do you have another solution?

                    <telerik:GridViewComboBoxColumn.EditorStyle>
                        <Style TargetType="telerik:RadComboBox">
                            <Style.Triggers>
                                <Trigger Property="IsDropDownOpen" Value="False">
                                    <Setter Property="DisplayMemberPath" Value="Value1" />
                                    <Setter Property="Background" Value="Blue"/>
                                </Trigger>
                                <Trigger Property="IsDropDownOpen" Value="True">
                                    <Setter Property="DisplayMemberPath" Value="Value2" />
                                    <Setter Property="Background" Value="Yellow"/>
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </telerik:GridViewComboBoxColumn.EditorStyle>

Telerik version: 2013.3.1316.40

Best regards
Arnstein
George
Telerik team
 answered on 28 Apr 2014
3 answers
140 views

Hello

I have grid something like in picture gridview.png (attach files) and I am loading data to it depending which action will be triggered by application user.

I know there are two cases:

  • none of loading data have childrens 
  • all or some of loading data have childrens

For first case gridview.HierarchyChildTemplate must be equal to null and ChildTableDefinitions should be empty (Count = 0).
For second case I load DataTemplate for gridView.HierarchyChildTemplate and I add adequate GridViewTableDefinition. But when I am dealing again with first case I do:

gridview.HierarchyChildTemplate = null<br>
ChildTableDefinitions.Clear()
and extra column for hierarchy indicator stays and it should be gone.

Dimitrina
Telerik team
 answered on 28 Apr 2014
1 answer
205 views
Hi,

I know that there has been discussion before on this topic but the solutions there do not bring me any further forward. This means that dragging from the RadToolbox to a Container on a RadDiagram does not post any DragOver events when the shape is above the Container however the RadDiagram still receives these events. However, the RadDiagram does not receive and Drop event nor does the Container. The RadToolbox does however receive the corresponding DropComplete event. Simply:

1. Drag and Drop works correctly between the RadToolbox and the RadDiagram
2. Drag and Drop does not work when the drop is over the Container.
3. We are using 2013 Q3 release (which we cannot change, hence no upgrade to 2014 Q1 is possible)

This behavior is simply strange.

What I need to achieve is the Drop event on the Container or the RadDiagram (then I can interrogate the Containers to see if the drop position is within its boundaries).

What are my options?

Regards,
Graham
Zarko
Telerik team
 answered on 28 Apr 2014
1 answer
133 views
Hi,

I'm using the Office2013 theme and I would like to know 2 things:

1. When I drag an appointment over another appointment or over a slot, I would like to know if it's possible to have such a "MouseOver" color while dragging an appointment.

2. When I drag an appointment, I would like to know how I can dertermine on which cell my mouse is on top. Of course the dragged appointment can cover 2 cells but but I need to know only the cell my mouse pointer is over.

Thank's
Alain
Rosen Vladimirov
Telerik team
 answered on 28 Apr 2014
1 answer
192 views
I have created a RADTREEVIEW in the code behind and populated with 3 levels of items :
RadTreeViewItem parent = new RadTreeViewItem();
tv.IsOptionElementsEnabled = true;
tv.IsExpandOnSingleClickEnabled = true;
parent.Header = "Parent";
tv.Items.Add(parent);
for (int i = 0; i < 6; i++)
{
RadTreeViewItem child = new RadTreeViewItem();
child.Height = 20;
child.Header = "Child " + i.ToString();
parent.Items.Add(child);
for (int j = 0; j < 6; j++)
{
RadTreeViewItem grandchild = new RadTreeViewItem();
grandchild.Height = 20;
grandchild.Header = "grandChild " + j.ToString();
child.Items.Add(grandchild);
}

}
When I run the project and I click on Parent it opens and shows  6 children all with the expandable icon next to them. When I child on a 'Child' however the icon changes to an 'open' icon but none of the children show - what am I missing?
Petar Mladenov
Telerik team
 answered on 28 Apr 2014
18 answers
1.2K+ views
Hi,

I have spent alot of time researching and searching for a solution to this and while there are many posts on many forums about similar subjects, as solution to my particular problem eludes me.

I am using the RadChartView.  My datacontext is an ObservableCollection of Items.  Each Item have some properties as well as an ObservableCollection of datapoints.

I am using the code below to add a series for each item.

<telerik:RadCartesianChart.SeriesProvider>
                <telerik:ChartSeriesProvider Source="{Binding Data}">
                    <telerik:ChartSeriesProvider.SeriesDescriptors>
                         
                        <telerik:CategoricalSeriesDescriptor ItemsSourcePath="DataPoints" ValuePath="Approved" CategoryPath="HorizontalAxis">
                            <telerik:CategoricalSeriesDescriptor.Style>
                                <Style TargetType="telerik:LineSeries">
                                    <Setter Property="Stroke" Value="{Binding ApprovedColor}"/>
                                    <Setter Property="StrokeThickness" Value="2"/>
                                </Style>
                            </telerik:CategoricalSeriesDescriptor.Style>
                        </telerik:CategoricalSeriesDescriptor>
 
                    </telerik:ChartSeriesProvider.SeriesDescriptors>
                </telerik:ChartSeriesProvider>
 
            </telerik:RadCartesianChart.SeriesProvider>

So now my problem.  I want to be able to tell the chart whether my series my be a Line or Bar.  For instance the first Item's datapoints would be plotted as a line and the 2nd as a bunch of bars.  This setting would be a property in of an Item.

I have tried using converters on the CategoricalSeriesDescriptor.Style as well as a styleselector but to me I can't find a way to do this.

Please help.

Regards
RIchard
Petar Marchev
Telerik team
 answered on 28 Apr 2014
11 answers
535 views
Hello,

We use the text search filter from the WPF GridView examples for filtering the grids, which works fine.
Our customer has the following requirement: they want to be able to filter numeric columns using a contains operator similar to the string filtering. This is especially useful when searching for e.g. serial numbers.
We could not find a solution for this issue in the GridView forum. We do not want to change the data type of the numeric columns of the view model into a string because of the amount of grids used by the application. We want to implement a custom FilterDescriptor that will be created by the TextSearch behavior when it detects a numeric column.

Can you please provide us an example implementation of a custom filter that shows how to implement this behavior?

Kind
regards,

Bert
Dimitrina
Telerik team
 answered on 28 Apr 2014
5 answers
513 views
Hello,

I have some graphics described in a xaml way (using viewbox and path).
I use these graphics in some places, and I'd like if it is possible to use them directly in a RadRibbonButton, whithout export them in jpeg image.

for sample, here one of my graphic :
<ControlTemplate x:Key="ModifFigure"
        <Viewbox Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"
        <Canvas Width="25.000" Height="25.000"
            <Canvas> 
 
                <Canvas> 
 
                    <!-- Calque 1/<Groupe>/<Tracé> --> 
                    <Path StrokeThickness="0.5" Stroke="#ffc4c6c8" StrokeMiterLimit="1.0" Data="F1 M 12.498,25.000 C 5.596,25.000 0.000,19.404 0.000,12.500 C 0.000,5.596 5.596,0.000 12.498,0.000 C 19.402,0.000 25.000,5.596 25.000,12.500 C 25.000,19.404 19.402,25.000 12.498,25.000 Z"
                        <Path.Fill> 
                            <LinearGradientBrush MappingMode="Absolute" StartPoint="396.500,312.884" EndPoint="396.500,291.182"
                                <LinearGradientBrush.GradientStops> 
                                    <GradientStop Offset="0.00" Color="#fffefefe"/> 
                                    <GradientStop Offset="1.00" Color="#ffdddedf"/> 
                                </LinearGradientBrush.GradientStops> 
                                <LinearGradientBrush.Transform> 
                                    <MatrixTransform Matrix="0.000,1.000,1.000,0.000,-291.000,-383.999" /> 
                                </LinearGradientBrush.Transform> 
                            </LinearGradientBrush> 
                        </Path.Fill> 
                    </Path> 
 
                    <!-- Calque 1/<Groupe>/<Tracé> --> 
                    <Path StrokeThickness="1.0" Stroke="#ff8c989f" StrokeMiterLimit="1.0" Data="F1 M 12.500,21.506 C 7.525,21.506 3.492,17.475 3.494,12.500 C 3.494,7.525 7.525,3.492 12.500,3.492 C 17.473,3.492 21.506,7.525 21.506,12.500 C 21.506,17.475 17.473,21.506 12.500,21.506 Z"
                        <Path.Fill> 
                            <RadialGradientBrush MappingMode="Absolute" GradientOrigin="433.388,315.667" Center="433.388,315.667" RadiusX="16.788" RadiusY="16.788"
                                <RadialGradientBrush.GradientStops> 
                                    <GradientStop Offset="0.00" Color="#fffefefe"/> 
                                    <GradientStop Offset="1.00" Color="#ffb1bfc7"/> 
                                </RadialGradientBrush.GradientStops> 
                                <RadialGradientBrush.Transform> 
                                    <MatrixTransform Matrix="0.000,0.802,0.802,0.000,-233.813,-335.440" /> 
                                </RadialGradientBrush.Transform> 
                            </RadialGradientBrush> 
                        </Path.Fill> 
                    </Path> 
 
                </Canvas> 
 
                <!-- Calque 1/<Tracé> --> 
                <Path Fill="#ffe7511e" Data="F1 M 18.651,11.870 L 20.354,10.170 C 20.966,9.558 20.966,8.561 20.354,7.950 L 18.099,5.695 C 17.489,5.081 16.490,5.083 15.880,5.695 L 14.175,7.396 C 15.744,8.962 17.778,10.998 18.651,11.870 Z"/> 
 
                <!-- Calque 1/<Tracé transparent> --> 
                <Path Fill="#ff1a171b" Data="F1 M 9.038,18.250 L 7.789,17.000 L 8.886,13.998 L 12.044,17.154 L 9.038,18.250 Z M 12.833,15.531 C 12.767,15.596 12.681,15.633 12.585,15.633 C 12.495,15.633 12.406,15.596 12.341,15.531 C 12.206,15.396 12.206,15.178 12.341,15.041 L 16.595,10.793 L 15.254,9.453 L 10.979,13.717 C 10.913,13.785 10.827,13.822 10.731,13.822 C 10.641,13.822 10.554,13.785 10.486,13.717 C 10.418,13.650 10.388,13.561 10.388,13.473 C 10.388,13.385 10.418,13.297 10.486,13.229 L 14.764,8.962 C 14.764,8.962 14.275,8.477 13.684,7.886 L 8.227,13.340 L 8.231,13.346 C 8.200,13.383 8.173,13.424 8.158,13.467 L 5.943,19.543 C 5.884,19.701 5.923,19.879 6.042,19.996 C 6.160,20.119 6.337,20.156 6.496,20.098 L 12.573,17.881 C 12.621,17.867 12.661,17.836 12.697,17.807 L 12.703,17.814 L 18.159,12.361 C 17.712,11.908 17.086,11.285 17.086,11.285 L 12.833,15.531 Z"/> 
 
            </Canvas> 
        </Canvas> 
    </Viewbox> 
    </ControlTemplate>

 <Button Name="btnEdit"
                                        Style="{StaticResource NodeBtn}"
                                        Width="20"
                                        Height="20"
                                        Command="v6:Commands.EditVariableCommand"
                                        CommandParameter="Node"
                                        Visibility="{Binding Path=Data.HasItem, Converter={StaticResource convBoolVisibility}}">
                                    <Button.Content>
                                        <ContentControl Template="{StaticResource ModifFigure}" Width="18" Height="18"/>
                                    </Button.Content>
                                </Button>            


well, the aim is to keep your functionality "Large, small" but using xaml figures.

Thanks
Aurore
Pavel R. Pavlov
Telerik team
 answered on 25 Apr 2014
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?