Telerik Forums
UI for WPF Forum
1 answer
185 views

Hi,

We have made a small extension on the RadGridView to save/load user defined layouts.
What we noticed is that, when we set IsEnabled="{Binding ViewIsViewing}", the grid is always disabled for some reason.
After a long debugging session, we are 200% sure that our ViewIsViewing property is actually set to "True".
But for some reason, the IsEnabled property is set to False.

Is this expected behavior when you extend this UI Element? Or are we overlooking something here?
I can provide more details if needed.

Kind Regards
Tim

Stenly
Telerik team
 answered on 21 Sep 2021
1 answer
122 views

Currently RadGrid has two options for matching: 

MatchAllTerms = AND filter

MatchAnyTerm = OR filter

I'd like a 3rd options : SmartMatch - which should work much like Google searching: 

So, what it should do i make a ranked match by doing an OR filtering and then order by descending of number of matches pr row. 

This way the best matching items will be on top of the grid and the least matching items on the bottom.

This should be fairly easy to implement...

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Sep 2021
1 answer
138 views

I've got a Virtual Grid with 29 rows of data and 3 columns.  I want to have a function that copies all of its contents to the clipboard.  My handler looks like this:

    private void RadMenuItem_OnClick(object sender, RadRoutedEventArgs e)
    {
        // Select all cells and then copy them to the clipboard
        VirtualGrid.SelectAll();
        VirtualGrid.CopyToClipboard();
    }

I wrote my event handler for the CopyingCellClipboardContent event to use the cell row and column index to return the data item for whatever cell was requested:


    private void VirtualGrid_OnCopyingCellClipboardContent(object? sender, VirtualGridCellClipboardEventArgs e)
    {

        if (TryGetCellString(e.Cell.RowIndex, e.Cell.ColumnIndex, out var s))
            e.Value = s; 

        Debug.WriteLine($"Copying cell {e.Cell.RowIndex}, {e.Cell.ColumnIndex} => \'{e.Value}\'");
    }

And sure enough, my handler was called 87 times (29 rows x 3 columns).  But every single time it was called, the row and column index was exactly the same -- whatever row and column I had last clicked.   here is some of my debug output





SelectedSellsChanged
Copying
Copying cell 1, 0 => '575.500, 1.000'
Copying cell 1, 0 => '575.500, 1.000'
Copying cell 1, 0 => '575.500, 1.000'
Copying cell 1, 0 => '575.500, 1.000'
Copying cell 1, 0 => '575.500, 1.000'
Copying cell 1, 0 => '575.500, 1.000'
Copying cell 1, 0 => '575.500, 1.000'
Copying cell 1, 0 => '575.500, 1.000'
Copying cell 1, 0 => '575.500, 1.000'


I can visually see the SelectAll() call selecting all the cells.  And my selection mode is Extended.  And it calls my handler the correct number of times.  

So why does it keep asking me for exactly the same cell all 87 times?  Shouldn't those row/column indices be changing?

 

 

Stenly
Telerik team
 answered on 20 Sep 2021
1 answer
160 views

Hi,

We have a gridview where we allow users to create custom expression columns, in the case where the expression they create will return DateTime values we'd like these custom columns to be grouped by date but the default groups on date and time.

I've managed to get this behaviour from data columns by setting the GroupMemberPath to the Date property of the DateTime object but for the expression columns as far as I can tell I can only use it to point towards the data whereas I need the grouping to be based on the result of the expression.

Is it possible to set the GroupMemberPath to the date part of the expression's result / is there any other way of getting the ColumnGroupDescriptor to group the column by the date part of the expression's result?

Stenly
Telerik team
 answered on 20 Sep 2021
1 answer
214 views

https://www.telerik.com/products/wpf/combobox.aspx

The doc above has "if you press a single character, it navigates to the first item starting with that character"

What properties are required to make the RadComboBox work in this way?
I've tried IsTextSearchEnabled="True" and TextSearchMode="StartsWith" but it does not work

I'm guessing that there may be a property to tell it to clear the first letter entered when the user enters another one
e.g. If user enters A then B they want to go to the first entry that starts with B

I have a RadComboBox.ItemTemplate to tell it which property to display
Do I also need to set something to tell it which property to match the typed character against?

Stenly
Telerik team
 answered on 20 Sep 2021
1 answer
219 views

Hi,

Many Chinese characters are displayed incorrectly when set theme for  GridView.

The display is correct when no theme is set.

I uploaded an app. It is displayed correct in left, and incorrectly in right.

天安 é—¨  display as  ã€‚
包    display as  

Martin Ivanov
Telerik team
 answered on 20 Sep 2021
0 answers
154 views
                           

Hi, I can see the map in preview, but not when I debug. Does anyone know why?

 

<telerik:RadMap x:Name="radMap" ZoomLevel="11" Center="35.675,+51.35" >
                         <telerik:RadMap.Provider>
                            <telerik:EmptyProvider />
                        </telerik:RadMap.Provider>
                        <telerik:VisualizationLayer>
                                    <telerik:VisualizationLayer.Reader>
                                <telerik:AsyncShapeFileReader DataSource="/WpfApp5;component/shp9/tt.dbf"
                                            Source="/WpfApp5;component/shp9/tt.shp">
                                </telerik:AsyncShapeFileReader>
                                    </telerik:VisualizationLayer.Reader>
                                </telerik:VisualizationLayer>
</telerik:RadMap>

ALI
Top achievements
Rank 1
 asked on 18 Sep 2021
1 answer
114 views

Hi all,

 

I have a chart : RadCarteisaonChart defined like this :
Is possible to change the Axis (X and Y) by Logarithmics Axis at runtime ?

Regards


 <telerik:RadCartesianChart Grid.Column="0" Margin="0,30,0,30" Foreground="{StaticResource DarkGray}">
                            <telerik:RadCartesianChart.HorizontalAxis>
                                <telerik:LinearAxis x:Name="hLinearAxis" ShowLabels="True">
                                </telerik:LinearAxis>
                                <!--<telerik:LogarithmicAxis x:Name="hLogarithmAxis" ShowLabels="True">
                                </telerik:LogarithmicAxis>-->                                
                            </telerik:RadCartesianChart.HorizontalAxis>
                            <telerik:RadCartesianChart.VerticalAxis>
                                <telerik:LinearAxis x:Name="vAxis"/>
                            </telerik:RadCartesianChart.VerticalAxis>
                            <telerik:ScatterPointSeries x:Name="ChartCurve" XValueBinding="Concentration" YValueBinding="OpticalDensity" Foreground="{StaticResource DarkGray}">
                                <telerik:ScatterPointSeries.PointTemplate>
                                    <DataTemplate>
                                        <Ellipse Width="10" 
                                                Height="10" 
                                            Fill="{StaticResource ElectricBlue}"/>
                                    </DataTemplate>
                                </telerik:ScatterPointSeries.PointTemplate>
                            </telerik:ScatterPointSeries>
                            <telerik:RadCartesianChart.Grid>
                                <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
                            </telerik:RadCartesianChart.Grid>
                            <telerik:RadCartesianChart.Annotations>
                                <telerik:CartesianCustomLineAnnotation Stroke="Red" StrokeThickness="2" HorizontalFrom="0" HorizontalTo="{Binding CONCMAX}" VerticalFrom="{Binding A}" VerticalTo="{Binding YMAX}" />
                            </telerik:RadCartesianChart.Annotations>
                        </telerik:RadCartesianChart>

Stenly
Telerik team
 answered on 17 Sep 2021
1 answer
262 views

Hello,

I had to create a template of the grid filtering control so I could replace the text entry control with a Watermark text entry control. Since I am not changing the functionality of the control, is it possible to get access to the code behind so I don't have to rewrite it?

Also, can you point to a good reference on the object model of the column filtering system so I can understand it better? 

Thanks,
Jack Allread

 

Dilyan Traykov
Telerik team
 answered on 15 Sep 2021
1 answer
302 views

Hi Telerik team,

We are having a rad-combo box control implemented in a pop up, where the user will be able to select one item from the list based on the Alphabets entered by the User.

Let us consider the user is entering 'OLI' in the combo box
The drop down list appears for the entered Alphabets, but when the user tries to add more Alphabet to it, already entered 'OLI' gets cleared and the user entered new alphabets is appearing, which should not.

I have attached the image(RadCombo box Focus Issue.jpeg)
We found that as soon as the user stops entering the Alphabet, the control selects the whole Alphabets already entered(Blue Selection). - which should not and the user have to press the Right Arrow to get the focus to the last alphabet to add more alphabet the existing text.

Any Possibility to change the behavior so that when the user stops entering the alphabet the focus is set next of the last character entered.

The Xaml Code Used is

<telerik:RadComboBox
                    Name="NameCombo"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Center"
                    HorizontalContentAlignment="Left"
                    BorderBrush="#F1F1F1"
                    EmptyText="Type to Search Name"
                    IsDropDownOpen="{Binding IsDropDownOpen, Mode=TwoWay}"
                    IsEditable="True"
                    IsTextSearchCaseSensitive="False"
                    Text="{Binding NameSearchText, Mode=TwoWay}"
                    TextSearchMode="Contains">
                    <telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem.Template>
                            <ControlTemplate>
                                <Grid>
                                    <telerik:RadBusyIndicator BusyContent="Loading..." IsBusy="{Binding IsNameLoading}">
                                        <telerik:RadGridView
                                            Width="455"
                                            MaxHeight="150"
                                            behavior:ControlEventsCommand.RadGridSelectionChangedEvent="{Binding NameSelectionChangedCommand}"
                                            AutoGenerateColumns="False"
                                            CanUserFreezeColumns="False"
                                            CanUserInsertRows="False"
                                            CanUserResizeColumns="False"
                                            CanUserSortColumns="False"
                                            IsFilteringAllowed="False"
                                            IsReadOnly="True"
                                            ItemsSource="{Binding NameList}"
                                            RowIndicatorVisibility="Collapsed"
                                            ScrollViewer.VerticalScrollBarVisibility="Auto"
                                            SelectedItem="{Binding SelectedName, Mode=OneWayToSource}"
                                            ShowGroupPanel="False">
                                            <telerik:RadGridView.Columns>
                                                <telerik:GridViewDataColumn
                                                    Width="450"
                                                    Header="Name"
                                                    HeaderCellStyle="{StaticResource NameClassHeader}">
                                                    <telerik:GridViewColumn.CellTemplate>
                                                        <DataTemplate>
                                                            <TextBlock
                                                                Text="{Binding Name}"
                                                                TextTrimming="WordEllipsis"
                                                                ToolTip="{Binding Name}"
                                                                ToolTipService.IsEnabled="True"
                                                                ToolTipService.ShowOnDisabled="False">
                                                                <TextBlock.Style>
                                                                    <Style TargetType="TextBlock">
                                                                        <Style.Triggers>
                                                                            <DataTrigger Binding="{Binding Name}" Value="">
                                                                                <Setter Property="IsEnabled" Value="False" />
                                                                            </DataTrigger>
                                                                        </Style.Triggers>
                                                                    </Style>
                                                                </TextBlock.Style>
                                                            </TextBlock>
                                                        </DataTemplate>
                                                    </telerik:GridViewColumn.CellTemplate>
                                                </telerik:GridViewDataColumn>
                                            </telerik:RadGridView.Columns>
                                        </telerik:RadGridView>
                                    </telerik:RadBusyIndicator>
                                </Grid>
                            </ControlTemplate>
                        </telerik:RadComboBoxItem.Template>
                    </telerik:RadComboBoxItem>
                </telerik:RadComboBox>

Thanks In Advance!

Regards,

KishoreKumar

Dinko | Tech Support Engineer
Telerik team
 answered on 15 Sep 2021
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?