Telerik Forums
UI for WPF Forum
1 answer
75 views

Bonjour
Lorsque j'ouvre un PDF à l'aide du bouton "Ouvrir" de la radtoolbar DE PdfViewer, j'aimerais obtenir le chemin du PDF sélectionné. Quelle est la meilleure façon à procéder? 

Merci

Dimitar
Telerik team
 answered on 09 Sep 2020
1 answer
465 views

We are currently setting up some tests with Microsofts UI Automation.

For my next steps I'm searching for a way to implement selection for GridView rows.
So far I couldn't really find any documentations how to deal with this with Telerik controls in detail.

Currently I access the grid, grid row and grid row cells as follows:

AutomationElement radGridView = Element.TryFindId (OrderConstants.ORDER_GRID_ID);
AutomationElementCollection orderRowElements = radGridView.FindAll (
                TreeScope.Descendants,
                new PropertyCondition (AutomationElement.ClassNameProperty, "GridViewRow"));
 
int rowId = 0;
foreach (AutomationElement orderRowElement in orderRowElements)
{
    ((SelectionItemPattern) orderRowElement.GetCurrentPattern(SelectionItemPattern.Pattern)).Select() // Is Not Supported Pattern
 
    AutomationElement elem = orderRowElement.TryFindId ($"Cell_{rowId++}_0");
    ((SelectionItemPattern) elem.GetCurrentPattern(SelectionItemPattern.Pattern)).Select() // Is Not Supported Pattern
}

 

How can I select

  • a single row
  • multiple rows
  • search within the grid (because it looks like rows are not available before they are processed by virtualization of the grid)

How is the RadGridView intended to be used in a automated way?

Currently I'm using .Net Framework 4 with Telerik Version 2018.3

 

Any help is appreciated, thanks.

Martin Ivanov
Telerik team
 answered on 08 Sep 2020
3 answers
81 views

Hello! 

I'm trying to figure out how to get the contents of my grid to sort by a property member that is not exposed to the UI via a column. The item source for my grid comes from a collection view defined on my ViewModel. This collection view has sort descriptors defined in C#, one of which is to sort by a boolean property that is not bound to a column on the grid, but that sort descriptor is not honored at run-time. 

 

Any assistance is appreciated.

Dilyan Traykov
Telerik team
 answered on 08 Sep 2020
2 answers
133 views

We have this sort of filter

        private CompositeFilterDescriptor _deletedNewFilterDescriptor = new CompositeFilterDescriptor()
        {
            LogicalOperator = FilterCompositionLogicalOperator.Or,
            FilterDescriptors =
                    {
                        new FilterDescriptor("Column1", FilterOperator.IsNotEqualTo, "MyState"),
                        new FilterDescriptor("Column2", FilterOperator.IsNotEqualTo, "YourState")
                    }
        };

and at some point when we refresh the grid, the rows that should be filtered get displayed. So we have to do something like this which also fails on occasions

 

        void grd_loaded(object sender, RoutedEventArgs e)
        {
            // For some reason, adding filters in constructors gets cleared somewhere, so add in Loaded methods.
            if (!grd.FilterDescriptors.Contains(_deletedNewFilterDescriptor))
                grd.FilterDescriptors.Add(_deletedNewFilterDescriptor);
        }

 

Any help would be appreciated. Because we will have to filter those rows at the SQL fetching time and not afterwards. This means changing the existing code.

Dilyan Traykov
Telerik team
 answered on 08 Sep 2020
28 answers
1.5K+ views
I need separate context menu for Header and Rows. not able to find way to do it. Please provide an example.

Regards
Sanket
Dinko | Tech Support Engineer
Telerik team
 answered on 07 Sep 2020
3 answers
193 views

Hello,

I've got a problem. I need to show many values and RadGrid takes a big amount of time to load data (1 minute)
I thought about virtualization, but I didn't like the partial loading of data. and it makes lots of troubles for me.

Is there any possibility to load partly data to Radgrid?

I mean to show 100 of values., +100 and +100 until fully loaded The db access is fast, only the control shows them really slow.

Regards

Dilyan Traykov
Telerik team
 answered on 04 Sep 2020
5 answers
1.0K+ views

How can I set the RadDateTimePicker selected value to current date?

I have a form for adding new record with RadDateTimePicker binded to DateTime? datatype. Since this is for new record, the expected datetime value is NULL.

How can I set the RadDateTimePicker selectedvalue to current date on form load and not NULL/Empty. 

 

Thanks you.

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Sep 2020
2 answers
520 views
Hello,

I´m using a RadComboBox with grouping, like it works with the default ComboBox. So far so good, but the initial value is set to the first Item of the lcv. No difference when commenting out the binding for SelectedValue.

Without Grouping the initial value is null and the box is empty. Is there a way achive this behavior without adding an empty item to the collection? Because I want to use the ClearSelectionButton feature.

 
<telerik:RadComboBox ItemsSource="{Binding ArtenLcv}" SelectedValuePath="Wert" DisplayMemberPath="Text" SelectedValue="{Binding ArtSelected}"
                                             ClearSelectionButtonVisibility="{Binding SelectedValue, RelativeSource={RelativeSource Self}, Converter={StaticResource objectVisibilityConverter}}" ClearSelectionButtonContent="Clear">
    <telerik:RadComboBox.GroupStyle>
        <GroupStyle>
            <GroupStyle.HeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Name}" Margin="2" IsEnabled="False" />
                </DataTemplate>
            </GroupStyle.HeaderTemplate>
        </GroupStyle>
    </telerik:RadComboBox.GroupStyle>
</telerik:RadComboBox>

 

Regards

Carsten
Top achievements
Rank 1
Veteran
 answered on 04 Sep 2020
1 answer
85 views

Hello,

I've got an issue with this function. I am using RadGrid together with a timebar, where I limit the time of the entries.
Data is from sql server using entity framework. Set Loadsize to 50

Now if I change timebar, sometimes it freezes and I see using sql profiler that it makes queries all the time every second.

 OFFSET 11000 ROWS FETCH NEXT 50 ROWS ONLY 

last one I checked
OFFSET 25200 ROWS FETCH NEXT 50 ROWS ONLY 

The user didn't interact because gui is frozen, but the queries still go on.

Seems to be a bug.

User1564
Top achievements
Rank 1
Veteran
 answered on 03 Sep 2020
4 answers
293 views

Hello!

I'm trying to convert a little .aspx page to a WPF window.

In the .aspx page I have a simple .NET RadEditor that allows me to edit a small text, adding and removing html tag very easily.

As said, I'd like to reproduce the same behaviuor inside a WPFwindow.

Following the official documentation provided, the best solution I found is a combination of a RadRichTextBox and a RadRichTextBoxUIRibbon.

I've spent many hours trying to get the same result, but I couldn't figure it out.

For example, if I write the word "This is a test" in the RadEditor, then select the whole sentence, and press on the "B" button (B for Bold), the result that I achieve when I read the textbox inside the editor is "<strong>This is a Test</strong>". This is perfect!

But if I try to do the same thing inside the RadRichTextBox, using the "B" Button in the RadRichTextBoxRibbonUI, when I export the content of the Document using the provided HtmlFormatProvider the result I get is very different, as I get something like a whole HTML page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
p { margin-top: 0px;margin-bottom: 12px;line-height: 1.15; } 
body { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px; } 
.Normal { telerik-style-type: paragraph;telerik-style-name: Normal;border-collapse: collapse; } 
.TableNormal { telerik-style-type: table;telerik-style-name: TableNormal;border-collapse: collapse; } 
.s_6C8EFA9D { telerik-style-type: local;font-weight: bold; } </style></head><body><p class="Normal "><span class="s_6C8EFA9D">This is a Test</span></p></body></html>

Am I wrong with the configuration? If any other solution exists, I'll be glad to implement it, even if it means to change the whole page logic.

Thank you!

Damiano

 

Damiano
Top achievements
Rank 1
 answered on 03 Sep 2020
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?