Telerik Forums
UI for WPF Forum
1 answer
703 views

Hi I have a datatemplate I would like to apply for the GridViewRow tooltip. May I ask how abouts I would do that?

 

<DataTemplate x:Key="AppointmentToolTipTemplate">
    <Grid MaxWidth="300" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="43" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Text="{Binding Subject}" Grid.ColumnSpan="2" TextWrapping="Wrap" Margin="5 8 4 3" FontWeight="Bold" />
        <Button IsEnabled="False" Background="Transparent" Grid.Row="1"  VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5 5 0 0" Width="28" Height="29" ContentTemplate="{StaticResource Calendar.Clock}"></Button>
        <StackPanel Orientation="Vertical" Grid.Column="1" Grid.Row="1" Margin="0 5 0 0">
            <StackPanel Orientation="Horizontal" Margin="0 0 0 0">
                <TextBlock Text="{Binding Start, StringFormat='hh:mm tt', Mode=TwoWay}" TextWrapping="Wrap" FontSize="10" />
                <TextBlock Text=" - " FontSize="10" />
                <TextBlock Text="{Binding End, StringFormat='hh:mm tt', Mode=TwoWay}" TextWrapping="Wrap" FontSize="10" />
            </StackPanel>
            <TextBlock Text="{Binding Start, StringFormat='dddd dd MMM yyyy', Mode=TwoWay}" Margin="0 3" FontSize="10" />
        </StackPanel>
        <TextBlock Grid.Row="2" Grid.ColumnSpan="2" Text="{Binding Body}" Margin="5 3 5 8" TextWrapping="Wrap"  />
    </Grid>
</DataTemplate>
Stefan Nenchev
Telerik team
 answered on 29 Jul 2016
1 answer
332 views

In the lastest version of the GridView, it is now "builtin" that when a user clicks with the right mouse button on a row, it is selected as if the user did a CTRL+Click. I am however not able to disable this behaviour.

We use a context menu on right click and do not want the selected state of a row to change once a user does this. We get a lot of negative feedback about this.

How do I disable this rightclick -> select row behaviour?

Thanks,

Marcel

Marcel
Top achievements
Rank 1
 answered on 29 Jul 2016
3 answers
211 views

Hello,

I want to display a DataForm for enter a new element in a grid. But this grid is generated dynamically.

For that, i use a: "dynamic data = new ExpandoObject()" and feed that with: "data.field1 = "string"; data.field2 = 10" and bind my DataForm on it: "<telerik:RadDataForm x:Name="RadDataForm" AutoGenerateFields="True"
                                     AutoCommit="True" EditEnded="DataForm_OnEditEnded"
                                     AutoEdit="True" CommandButtonsVisibility="Commit,Cancel"
                                     CurrentItem="{Binding Path=DataContext.data, RelativeSource={RelativeSource Self}}"
                                     Header="Hello world"
                                     KeyboardNavigation.TabNavigation="Cycle">
</telerik:RadDataForm>"

My problem now, the DataForm change my Int type on string type...

Have you some idea?

Vivien
Top achievements
Rank 1
 answered on 28 Jul 2016
1 answer
241 views
Hi,

I have rows in the grid grouped by a field - Currency. I have a column (Amount) for which I define aggregate function Sum. Result of aggregate function is shown in the header of each group. All works great.

Now I want to show a summary of all Currencies and total Amounts for each of them at the bottom of the grid. For the sake of this example let’s say I have 100 rows in the grid and only two distinct values for Currency field: USD and RUB.

I want to have summary that will look like this:
Total USD -   1,234.00
Total RUB - 13,023.00

Using Grid.AggregateResults property only provides me with a total aggregate across all currencies:
Total – 14,257.00
with no break-down by groups.

How can I achieve this without grouping my data myself – RadGridControl already did this, I don’t want to recalculate the same values again?

Thank you,
Dmitriy
Stefan Nenchev
Telerik team
 answered on 28 Jul 2016
1 answer
80 views

Hi, I have a docking pane hosting a Winform property control.

When I set the pane to a Autohide state, the Winform property in it disappears.

I'm using the latest 2016 Q2 release. Please help!

Nasko
Telerik team
 answered on 28 Jul 2016
2 answers
141 views

Hi,

I want to apply a different CurrentVisibleRangeText dependant on what view definition the user is in.

So DayView would be in the format ddd dd\MM\yyyy

Timeline and MonthView would be dd\MM\yyyy - dd\MM\yyyy

So I've changed the CurrentInterval ContentControl to use VisibleRange instead of CurrentVisibleText :

<ContentControl x:Name="CurrentInterval"
      VerticalAlignment="Center"
      HorizontalAlignment="Right"
      Style="{StaticResource NavigationIntervalStyle}"
      Content="{TemplateBinding VisibleRange}"/>

Now how do I apply the NavigationIntervalStyle?  So far I have :

<Style x:Key="NavigationIntervalStyle" TargetType="ContentControl">
    <Setter Property="Margin" Value="5" />
    <Setter Property="VerticalAlignment" Value="Center" />
    <Setter Property="HorizontalAlignment" Value="Right" />
    <Setter Property="FontWeight" Value="Bold" />
    <Setter Property="ContentTemplate">
        <Setter.Value>
            <DataTemplate>
                <Grid>
                    <TextBlock Margin="0 1 0 0" Text="{Binding Path=Start, StringFormat={}{0:ddd dd/MM/yyyy}}" Foreground="White" />
                </Grid>
            </DataTemplate>
        </Setter.Value>
    </Setter>
</Style>

This works ok for DayView but obviously not giving me what I want for Timeline or MonthView - I would presume I would need another TextBlock linked to VisibleRange.End - but how to set the Visibility of this textbox so I don't get it in DayView?  Also would it be at all feasible for MonthView to run off the actual Month date and not just what is visible.. i.e. so it says 01/07/2016 - 31/07/2016 and not 27/07/2016 - 31/07/2016 (which is the actual VisibleRange of the month).

Kieron
Top achievements
Rank 1
 answered on 27 Jul 2016
3 answers
528 views

I am changing ItemsSource of RadGridview.

    gv.ItemsSource = enumerated;

     gv.Rebind();

After that I am clearing all the Descriptors

    gv.FilterDescriptors.Clear();
    gv.SortDescriptors.Clear();
    gv.GroupDescriptors.Clear();

Then reapplying all Descriptors.

    gv.FilterDescriptors.AddRange(filters);
    gv.SortDescriptors.AddRange(sorts);
    gv.GroupDescriptors.AddRange(groups);

But the RadGridview is not showing new Items, instead showing items Filtered before.
Dilyan Traykov
Telerik team
 answered on 27 Jul 2016
8 answers
280 views

Hi,

I want the ability for the user to be able to click on a Group Header (in DayView) and for the Group Header and Row to be Selected - however a few issues I cant seem to solve :

I'm overriding the GroupHeaderBaseStyle but can't seem to bind the Command on the GroupHeaderButton to my ViewModel - how do I go about achieving this so I can catch when the user has clicked on each GroupHeader?

There doesn't seem to be an IsSelected property for the GroupHeader - so how would I go about storing this information as per the user clicking on each header?

Thanks.

Kieron
Top achievements
Rank 1
 answered on 27 Jul 2016
10 answers
360 views
Is there a way to prevent the closing of the Backstage until a condition is true. So if the user clicks on another tab, I would like to keep it open.

Gord
Top achievements
Rank 1
 answered on 27 Jul 2016
11 answers
592 views

Hi,

I need to implement DragDrop feature between listBoxes and also re-order within ListBox. I know there is one good sample from Demo, see attachment screenshot. But What I am missing here is the Drop preview line. I know in RadTreeView, there is the default DragDrop behavior comes with a good Drop preview line and API for me to enable/disable it. How can I do the same for ListBox?

I thought about using RadTreeView to take advantage of the default DragDrop behavior, but don't know how to make the UI layout to look like this one in ListBox. Please advise if there is any alternatives to get the layout like the one in the demo, and the drop preview line in RadTreeView.

Many thanks,

Mingxue

Nasko
Telerik team
 answered on 27 Jul 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
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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?