Telerik Forums
UI for WPF Forum
0 answers
163 views

There are images for the ribbon for open, save, etc, and I was wondering if I'm allowed to use them...

 

BENN
Top achievements
Rank 1
 asked on 01 Feb 2023
1 answer
511 views

I"m following example for context menu in grid view:

https://docs.telerik.com/devtools/wpf/controls/radcontextmenu/how-to/use-radcontextmenu-with-radgridview

Sample grid view has context menu on clicking record: Add/Edit/Delete.

Need advice how to create dynamic context menu on-the-fly based on selected row, using parent-child nodes approach like:

- Notify Option1

      - client 1

      - client 2

      - client <...> (items number is variable based on selected row)

- Notify Option2

      - department1

      - department2

      - department<...> (variable)

- Delete

I'm wonder if it is possible to populate menu items in Click_Row() event instead of static init process this.InitializeRowContextMenuItems();

Another approach would be creating separate dialog inside Click_Row() listing all items for each category "Notify Option1", "Notify Option2". But dynamic menu context looks more clean approach.

 

Martin Ivanov
Telerik team
 answered on 01 Feb 2023
0 answers
114 views

Hi,

I would like to highlight a cell (C1) in yellow if the value in another cell (B1) is true.

I have tried typing in B1 or =B1 in the box in the screenshot below "Format cell values where this formula is true:" but C1 is always yellow.

Can someone point me in the right direction?

Regards

Anthony

 

Anthony
Top achievements
Rank 1
Iron
Veteran
 asked on 01 Feb 2023
0 answers
159 views

Hello,

I followed your tutorial to use the RadDataPager and RadGridView. The pager is bound to the view model source items and the Rad Grid View is bound to the RadDataPager. See the following example:

 

<Grid x:Name="LayoutRoot" 
        Background="White">     
    <Grid.RowDefinitions> 
        <RowDefinition /> 
        <RowDefinition Height="Auto" /> 
    </Grid.RowDefinitions> 
    <telerik:RadGridView x:Name="radGridView" 
                         ItemsSource="{Binding PagedSource, ElementName=radDataPager}" 
                         AutoGenerateColumns="False"> 
        <telerik:RadGridView.Columns> 
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" /> 
            <telerik:GridViewDataColumn DataMemberBinding="{Binding CompanyName}" /> 
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Title}" /> 
        </telerik:RadGridView.Columns> 
    </telerik:RadGridView> 
    <telerik:RadDataPager x:Name="radDataPager" 
                          Source="{Binding Employees}" 
                          PageSize="5" /> 
</Grid> 

 

I can see that the pager splits the items into pages of 50 items (I have 10 pages) but the RadGridView shows all the items. Only if I force the reload of the xaml (with Hot Reload), the RadGridView is updated according to the pager items in the current page, until that point all the items are shown.

What am I doing wrong?

alex
Top achievements
Rank 2
Bronze
Iron
Iron
 asked on 31 Jan 2023
2 answers
146 views

Hey, I have using your control RadMenuGroupItem with ItemsSource that is Observable Collection of string. I noticed that for name with underscore in them, the underscore is removed from the name. Here an example:

telerik_123 will turn to telerik123

I use the same ItemsSource in a RadComboBox and in there I don't have this issue.

What can I do to solve this?

Sincerely, Omer 

Ralitsa
Telerik team
 answered on 31 Jan 2023
1 answer
119 views

Is it possible to drag to All Day Events and drag from All Day Events?

As can be done in Outlook

Would appreciate help

Martin Ivanov
Telerik team
 answered on 30 Jan 2023
3 answers
334 views
Dear Telerik Team,
We've bumped into next issue. There is RadListBox which exposes CollectionViewSource with grouping.
When user scrolls the listbox up and down (with a mouse wheel or just dragging the thumb), vertical scrollbar changes it's length.
We've ensured that this bug is being reproduced with every Telerik theme set up. And everything is fine if we switch to default WPF ListBox control. 

Here's the code snippet :

<Window x:Class="ListBoxTest.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Width="1024" Height="768">
     
    <Window.Resources>
        <CollectionViewSource x:Key="Results" Source="{Binding}">
            <CollectionViewSource.GroupDescriptions>
                <PropertyGroupDescription PropertyName="Category" />
            </CollectionViewSource.GroupDescriptions>
        </CollectionViewSource>
    </Window.Resources>
     
    <DockPanel DataContext="{Binding}">
        <telerik:RadListBox Margin="0 0 10 10"
                ItemsSource="{Binding Source={StaticResource Results}}"
                SelectedItem="{Binding SelectedItem, Mode=TwoWay}">
 
            <telerik:RadListBox.GroupStyle>
                <GroupStyle>
                    <GroupStyle.HeaderTemplate>
                        <DataTemplate>
                            <TextBlock Margin="10 10 0 10"
                                        FontWeight="Bold"
                                        Foreground="LightBlue"
                                        Visibility="{Binding Name}"
                                        Text="{Binding Path=Name}"/>
                        </DataTemplate>
                    </GroupStyle.HeaderTemplate>
                </GroupStyle>
            </telerik:RadListBox.GroupStyle>
 
            <telerik:RadListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <StackPanel Margin="5" VerticalAlignment="Center">
                            <TextBlock FontWeight="Bold"><Run Text="{Binding FirstName, Mode=OneWay}" /> <Run Text="{Binding LastName, Mode=OneWay}" /></TextBlock>
                            <TextBlock>Email: <Run Text="{Binding Email, Mode=OneWay}" /></TextBlock>
                            <TextBlock>Phone: <Run Text="{Binding PhoneNumber, Mode=OneWay}" /></TextBlock>
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </telerik:RadListBox.ItemTemplate>
        </telerik:RadListBox>
    </DockPanel>
</Window>


Is there any way to fix this behavior? Any help will be appreciated.

Best Regards, Stanislav


Kay
Top achievements
Rank 1
Iron
 answered on 30 Jan 2023
1 answer
364 views
I have the following class

Class My Class
Class MyClass()
{
   public int Var1 {get; set; }
   public int Var2 {get; set; }
}
i want the selected item to show {var1}/{var2}
for now im doing (for now) is
DisplayMemberPath = "Var1"
but because its a String and a Dependency property i cannot attach a MultiBinding
and RadMultiColumnComboBox  does not have itemTemplate property
how can i achieve it

P.S 
I want the same behavior for the tooltip

p.s 2
i also want to center the selected text but it seems HorizontalContentAlignment  is not working


Thanks in advance

Martin Ivanov
Telerik team
 answered on 30 Jan 2023
1 answer
121 views

Hello Im Working with the RadSlider in the RadScheduler.

 

I've used the RadSlider_OnDragDelta Method to change the view definition. Works as intended atm.

But I've got a problem. If somebody just klicks on the slider (left or right of the Darg-Bar) to make the Bar hop on that spot, the event doesn't get fired.

So I've found several events if somebody drags the silider. But what if somebody just klick on the Slider?

Is there a event i can catch this behaviour?

best regards

Dilyan Traykov
Telerik team
 answered on 30 Jan 2023
0 answers
109 views

Hy everyone,

I have a collection from DB:

var dynamicOutput = _sql.LoadData<dynamic, dynamic>(@"SELECT * FROM " + procedura.Trim() + "(@IdRamura, @DataRef)", p);

RaportRentabilitateGrid2.AddRange(dynamicOutput );

private ObservableRangeCollection<ExpandoObject> _raportRentabilitateGrid2 = new ObservableRangeCollection<ExpandoObject>();
public ObservableRangeCollection<ExpandoObject> RaportRentabilitateGrid2 {
            get { return _raportRentabilitateGrid2; }
            set {
                _raportRentabilitateGrid2 = value;
                OnPropertyChanged(nameof(RaportRentabilitateGrid2));
            }
}

So far everything works ok

I have the RadGridView:

<telerik:RadGridView x:Name="oRaportRentabilitateDet1" DockPanel.Dock="Top"
                                         Style="{StaticResource ContasGridviewStyle}"
                                         Background="White"
                                         AutoGenerateColumns="True"
                                         SelectionUnit="FullRow"
                                         SelectionMode="Single"
                                         HorizontalContentAlignment="Left"
                                         RowIndicatorVisibility="Collapsed"
                                         ShowGroupPanel="False"
                                         IsReadOnly="True"
                                         SelectedItem="{Binding SelectedRaportRentabilitateGrid2,Mode=TwoWay}"
                                         ItemsSource = "{Binding RaportRentabilitateGrid2, Mode=TwoWay}"
                                         VerticalAlignment="Stretch"
                                         Margin="5,0,5,10"
                                         IsSynchronizedWithCurrentItem="True"
                                         IsFilteringAllowed="False"
                                         ScrollViewer.VerticalScrollBarVisibility="Auto"
                                         ScrollViewer.HorizontalScrollBarVisibility="Auto">

And, for formatting the column in the RadGridView with the name DATA, i have the code:

            var delaColumn = oRaportRentabilitateGrid2.Columns["DATA"] as Telerik.Windows.Controls.GridViewDataColumn;
            delaColumn.DataFormatString = "dd.MM.yyyy";

But, it's not working...

I can't figure out why...

Thanks a lot.

Florin
Top achievements
Rank 2
 asked on 27 Jan 2023
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?