Telerik Forums
UI for WPF Forum
5 answers
150 views

I would like to change the order to Drag & Drop between two or more groups in the GridView.

However, the contents of the sample works normally, but the code I wrote does not work.

I do not have any other options, but I do not know why. What did he do wrong? Please help me.

We are using version 2017.2.614.40.

Work Code...

<telerik:RadGridView x:Name="ui_lsvGridView" GroupRenderMode="Flat" RowIndicatorVisibility="Collapsed"
                             CanUserFreezeColumns="False"  
                             AutoGenerateColumns="False"
                             IsFilteringAllowed="{Binding UseGridFilter}"
                             CanUserResizeColumns="true"
                             GridLinesVisibility="Horizontal"                                                             
                             telerik:StyleManager.Theme="Windows8"                                                              
                             SelectionUnit="FullRow"
                             SelectionMode="Single"
                             IsReadOnly="True"
                             ShouldReorderColumnsOnUngrouping="True"
                             ItemsSource="{Binding DataList}"
                             SelectedItem="{Binding SelectedItem, Mode=TwoWay}"     
                             MouseRightButtonDown="ui_lsvGridView_MouseRightButtonDown"
                             MouseDoubleClick="ui_lsvGridView_MouseDoubleClick">
            <telerik:RadGridView.GroupHeaderTemplate>
                <DataTemplate>
                    <TextBlock Foreground="{Binding Group.Key, Converter={StaticResource EmptyValuetoColorStringConverter}}" Text="{Binding Group.Key, Converter={StaticResource EmptyValuetoEmptyConverter}}" FontWeight="Bold" />
                </DataTemplate>
            </telerik:RadGridView.GroupHeaderTemplate>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Name="rno"  Header="{x:Static Locale:Res.MNU_No}" Width="40" DataMemberBinding="{Binding [rno]}" CellStyle="{StaticResource tGridRowStyle_Number}" IsFilterable="False" IsGroupable="False" >
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:CountFunction ResultFormatString="{}{0:N0}"  />
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>

..........

Stefan
Telerik team
 answered on 21 Dec 2018
3 answers
192 views

I checked this in a new project and see the same results. Seeing this with multiple versions, including the latest.

MouseWheelMode="ZoomToPoint" does not work. It zooms but does not center on the point.

The ZoomLevel binding is not updating correctly and/or partially ignoring MaxZoomLevel. For example, if I set a MaxZoomLevel of 19, and use the mouse wheel to zoom, I will receive the following values:

17,18,19,20

If I keep zooming in with the mouse wheel, I will continue to receive "20", even though the zoom isn't changing. If I then zoom out with the wheel, the ZoomLevel then changes from 20 to 18.

<telerik:RadMap MaxZoomLevel="19" UseSpringAnimations="False"
    ZoomLevel="{Binding ZoomLevel, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Center="30.11,-91"
    MouseClickMode="None" MouseWheelMode="ZoomToPoint">
    <telerik:RadMap.Provider>
        <telerik:OpenStreetMapProvider/>
    </telerik:RadMap.Provider>
</telerik:RadMap>
Vladimir Stoyanov
Telerik team
 answered on 21 Dec 2018
3 answers
117 views

Hi guys, 

I need to make StrokeThickness bigger for the relation of the selected tasks.  What I want is to make easier for the user to understand each task's dependencies.  How can I do it?

Best regards

Paolo

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Dec 2018
6 answers
291 views
Is there any way to use RadMultiColumnComboBox in RadGridView.Columns?
Dinko | Tech Support Engineer
Telerik team
 answered on 21 Dec 2018
1 answer
234 views

Hi,
I need to implement a grid where the user can select a list of itemes from a TreeView. Once the items are selected, the cell must show the concatenation of selected items. Attached you can find a sample screenshot of what I need.

I tried to do that creating a custom column (https://docs.telerik.com/devtools/wpf/controls/radgridview/managing-data/how-to/howto-create-custom-editor). 
This is an extract from the code of my custom column.

 

public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
        {
            var treeView = new RadTreeView
            {
                IsOptionElementsEnabled = true,
                ItemsSource = TreeViewItemsSource,
                ItemContainerStyle = TreeViewItemContainerStyle,
                ItemTemplate = HierarchicalItemTemplate,
            };

            var dropDownButton = new RadDropDownButton
            {
                DropDownContent = treeView,
                DropDownMaxHeight = 250,
            };

            //this.BindingTarget = ???;

            return dropDownButton as FrameworkElement;
        }

My question is how to bind the checked items of the TreeView to the BindingTarget dependency property of the GridViewBoundColumnBase in order to update the field of the data item bound to the column, once the cell edit is committed.

Thanks in advance.

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Dec 2018
3 answers
170 views

Dear,

Binding 'Header' property to DataContext in a GridVewColumnGroup doesn't work. Public property is not requested to DataContext.

    <telerik:GridViewColumnGroup Name="RangeColumn" Header="{Binding FirstDependencyName, FallbackValue=Nothing}" />

By other hand, a binding to StaticResource works property.

    <telerik:GridViewColumnGroup Name="RangeColumn" Header="{Binding Source={StaticResource appResx}, Path=btn_Create}" />

In next example, public property is requested to DataContext (value is received tested with a converter), but surprisingly it is not displayed.

    <telerik:GridViewColumnGroup Name="RangeColumn">
        <telerik:GridViewColumnGroup.Header>
            <TextBlock Text="{Binding FirstDependencyName, FallbackValue=Nothing}"/>
        </telerik:GridViewColumnGroup.Header>
    </telerik:GridViewColumnGroup>

Do you have any suggestion?
Thank you
Dilyan Traykov
Telerik team
 answered on 21 Dec 2018
11 answers
328 views
Hi,

I'm trying to change column headers style in my GanttView.
I'm using this code:
<Style TargetType="GanttView:ColumnHeaderContainer">
            <Setter Property="Foreground" Value="#3d3d3d" />
            <Setter Property="Background" Value="#C0C0C0" />
        </Style>

But that style impacts only 1st and 3d columns, while 2nd column style is not impacted (see attachment).

What am I missing?

Thanks,
Yevgeny
 
Martin Ivanov
Telerik team
 answered on 21 Dec 2018
3 answers
122 views

I'm noticing that if I include a space in my search term it treats that as two search items, when I want it to just treat it as one long string.  Is it possible to have the search function this way?

For example, let's say I have the following items in my MultiColumnComboBox.

  • Big Dog
  • Big Cat
  • Big Lemur

If I type 'Big Lemur' in the text box, it doesn't narrow down my search to just Big Lemur.  All 3 are matches.  It appears to be searching on each word in my search phrase.  I think I understand the difference between the different AutoCompleteMode settings, but none of them treat a multi-word search term as just one search value.

Stefan
Telerik team
 answered on 20 Dec 2018
1 answer
53 views

Having a weird issue with the calendar popup in DateTimePicker.  I previously had a bug in my date/time parsing algorithm where it was taking years in the present or near future (2018-2025) and parsing them as 1918-1925.  When you go in and attempt to fix this through the calendar control, you can't seem to correctly navigate to the 2000's.

Upon picking the 2010-2019 option in the first screenshot, it then takes you to the 1910-1919 collection.  In this case, the control's SelectedValue is being bound to a Nullable<DateTime> with the date already set before form initialization.  The property and object both implement the INotifyPropertyChanged interface/pattern.  As you can see, the calendar uses the Windows8Touch theme.

Thanks for any guidance that can be provided.

 

Vladimir Stoyanov
Telerik team
 answered on 20 Dec 2018
1 answer
49 views
I create a Radial Gauge and i set min and max dynamically .but i want to show tick at value=0 if it is in range.how can i do it?
Dilyan Traykov
Telerik team
 answered on 19 Dec 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?