Telerik Forums
UI for WPF Forum
1 answer
130 views

HI:

I want to create a custom api service to upload a file. In fact, I have one and works fine with postman. How Can I use it with CloudUpload?

Thanks in advance

Martin Ivanov
Telerik team
 answered on 10 Nov 2022
1 answer
291 views

I have the following ContexMenu:

Which has the following xaml:

<telerik:RadContextMenu.ContextMenu>
  <telerik:RadContextMenu Opened="RadContextMenu_Opened">
    <telerik:RadMenuItem Header="Add" Command="{Binding AddInstance}" IsEnabled="{Binding EpmModelEditModeEnabled}"
                    CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadContextMenu}}, Path=UIElement.SelectedItem}"
                    Visibility="{Binding EnableEditMode, Converter={StaticResource boolToVisibilityConverter}}"/>
    <telerik:RadMenuItem Header="Rename (F2)" Click="RenameItemMenu_Click" IsEnabled="{Binding EpmModelEditModeEnabled}"
                      Visibility="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadContextMenu}}, Path=UIElement.SelectedItems, Converter={StaticResource canRenameModelVisibilityConverter}}"/>
    <telerik:RadMenuItem Header="Delete" Command="{Binding DeleteObject}" IsEnabled="{Binding EditModeEnabled}"
                    CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadContextMenu}}, Path=UIElement.SelectedItems}"/>
    <telerik:RadMenuItem Header="Create Chart Analysis" Command="{Binding CreateChart}" 
                    CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadContextMenu}}, Path=UIElement.SelectedItems}"/>
    <telerik:RadMenuItem Header="Create Dataset Analysis" Command="{Binding CreateDataset}" 
                    CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadContextMenu}}, Path=UIElement.SelectedItems}"/>
    <telerik:RadMenuItem x:Name="ColumnsMenu" Header="Columns">
      <telerik:RadMenuItem.ItemTemplate>
        <HierarchicalDataTemplate>
          <MenuItem Header="{Binding Header}" IsCheckable="True" IsChecked="{Binding IsVisible, Mode=TwoWay}"/>
        </HierarchicalDataTemplate>
      </telerik:RadMenuItem.ItemTemplate>
    </telerik:RadMenuItem>
  </telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>

I need to know how do i change the size of the internal selection (in blue) to match the size of the external selection (in yellow), because when i click in the external selection the context menu closes.

At least, if it is not possible to change the size of the internal selection, i need that the context menu does not close when the external selection is clicked (adding StaysOpenOnClick="True" in the MenuItem inside of the <HierarchicalDataTemplate> does not work).

Martin Ivanov
Telerik team
 answered on 10 Nov 2022
1 answer
120 views

The WPF demo doesn't load Cloud Upload:

 

Martin Ivanov
Telerik team
 answered on 10 Nov 2022
1 answer
163 views

Hello, I'm having this simple issue, I said it all in the title.
I'm using the RadGridView with SelectionMode="Extended" and SelectionUnit="Cell".
I've attached a sample project that reproduces the issue.

Repro steps:

  • Select cell "Manchester"
  • Ctrl-click again on cell "Manchester"
  • It puts it in edition mode instead of deselecting it

I've found a workaround where I ctrl-click on another cell ("Cell B"), then ctrl-click on the initial cell ("Cell A"), then ctrl-click on "Cell B" again, so that both cells are deselected. From what I understand, this is because the behavior is different whether I ctrl-click on the last selected cell, or on any other selected cell.

How can I fix this? Thanks! :)

Dilyan Traykov
Telerik team
 answered on 09 Nov 2022
1 answer
143 views

Hi

I am faced with the following problem.

The height is set in the style definition:

 <Style x:Key="clubsGridRowBackground"
			       BasedOn="{StaticResource GridViewRowStyle}"
			       TargetType="telerik:GridViewRow">
      <Setter Property="MinHeight" Value="70" />
</Style>

In the GridView parameters, the style is bound as follows:

  RowStyle="{StaticResource clubsGridRowBackground}"
If RowDetails is collapsed, than row height is 70, but if RowDetails  is expanded, than height becomes smaller (decreases to the old value). 

The problem is reproduced, for example, in a project RowDetailsTemplateSelector (samples for WPF) if you apply the style.

The same behavior occurs when used standard WPF DataGrid.

Is there a solution to this problem for Telerik RadGridView?

Vsevolod
Top achievements
Rank 1
Iron
Iron
 answered on 09 Nov 2022
1 answer
278 views

I'm trying to make my gridview box column show the dropdown tick without having to click

 


<telerik:GridViewComboBoxColumn Header="Active" DataMemberBinding="{Binding EnableCase}" UniqueName="Active" ItemsSource="{Binding Activeops}" DisplayMemberPath="Describe" SelectedValueMemberPath="ID" />

 

The Dropdown only shows up when i click on the header

 

 

Stenly
Telerik team
 answered on 08 Nov 2022
1 answer
156 views

Hello, actually I think I should have named this topic: "How to prevent drag'n'drop on a specific column", because it has little to do with the freeze, and most likely nothing to do with the fact that it's generated dynamically.

What I want is to display a specific column, and keep it in the view at anytime. The user must not be able to move it.

To this end, I set the LeftFrozenColumnCount to 1, and I move this column to index 0 when I'm done generating my columns, to ensure it's the one that is frozen. This is the initial setup when the user comes in.

Now, I want my user to be able to freeze and unfreeze any columns they want; I just need this specific column to NOT be unfreezable, so that it always stays in view.

I tried to set IsReorderable to false on this specific column, but then I can no longer freeze columns to the left of this column, and I want users to be able to do this.

I stumbled upon this thread: https://www.telerik.com/forums/preventing-resizing-and-re-ordering-of-specific-columns#850549

What Gary describes is exactly the behavior I'm looking for:

 Looking at the WPFToolkit grid, setting "CanUserReorder" to false means the user cannot drag and drop the column.  But after doing some testing, you're right in that a user can still just drop other columns in front to change it's posistion.

For now, I subscribe to the PreviewDrop event of the RadGridView, and I cancel the drop by setting e.Handled to true when the dropped data is the GridViewHeaderCell of this specific column. It works, but I want to prevent the drag in the first place, not just prevent the drop. Applying this technique to PreviewDragEnter, or DragEnter, does not seem to have any effect. 

How can I achieve this? Thanks!

Dilyan Traykov
Telerik team
 answered on 07 Nov 2022
1 answer
905 views

I was checking out the WPF UI and found that the Mica and Acrylic backdrop are not correctly picking up the light or dark palette set in the code. Instead, the effects are replying on the System/Windows Theme. 

If System Theme is set to Light, then the Dark Mode in RadWindow will not work correctly and similarly if System Theme is set to Dark then the Light Mode in RadWindow does not work correctly. This problem can be observed even in the Telerik's own control examples app.


Vicky
Telerik team
 answered on 07 Nov 2022
1 answer
156 views

We just tried to update to Telerik UI for WPF, version 2022.3.912.  This caused build errors because the method System.Collections.Generic.ExtensionMethods.GetValueOrNull was defined in two assemblies, Telerik.Windows.Documents and Telerik.Windows.Documents.Flow.

Peshito
Telerik team
 answered on 04 Nov 2022
1 answer
169 views

Hi

    Is there any plan for pdfViewer to load a signature with signature picture? 

    for now seems it supports only a single pfx, which is not quite enough.

Martin
Telerik team
 answered on 03 Nov 2022
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?