Telerik Forums
UI for WPF Forum
1 answer
158 views

Hi,everyone,

I choose the MaterialTheme for my window and it works as expected after changing  my  MaterialPalette.Palette .  But after using the SplashScreen, the Palette  setting seems to have failed. 

And the Palette  didn‘t work in  SplashScreen either.

 What's wrong  with my steps?

Thank you for your help!

Martin Ivanov
Telerik team
 answered on 20 May 2022
0 answers
624 views

I am sure that I am missing something basic here, but I cant get this control to behave. I tried a number of different things to get the data in the ObservableCollection to show up in the gridview with no luck.

(Using .netcore 3.0 libs)

The gridview is bound to the following property in the xaml .

                <telerik:RadGridView
                        VerticalAlignment="Top" 
                        x:Name="ProdRecordsGridView"
                        Grid.ColumnSpan="3" 
                        Grid.Row="1" 
                        AutoGenerateColumns="false"
                        ItemsSource="{Binding ProductionRecords}"
                        Margin="5"
                        SelectedItem="{Binding SelectedProductionRecord}">
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn 
                            UniqueName="DatePartProduced"
                            DataMemberBinding="{Binding ProductionDate }"
                            IsFilterable="False"
                            DataFormatString="d"
                            EditTriggers="Default"
                            Header="ProdDate" />
                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>

 

The ViewModel has the following Property

public ObservableCollection<ProductionRecordModel> ProductionRecords { get => _records; set => _records = value; } 

The grid control appears to be bound correctly to the ObserveableCollection, because setting a breakpoint on the ProductionRecordModel.ProductionDate getter, (the first column in the grid is bound to this property) is called for each element in the collection.  

There just does not appear to be any data in the gridview, I am stumped.

 

Any ideas what I am doing wrong here?

 

Thanks

-Sean

 

 

 

Sean
Top achievements
Rank 2
Iron
 asked on 19 May 2022
1 answer
194 views

How can I add Sorting to the DropDown GridView, so that when the User first opens the DropDown, the GridView is already sorted on one or more columns?

Martin Ivanov
Telerik team
 answered on 19 May 2022
1 answer
319 views

I have a panelbaritem that contains a grid. When the grid is expanded I get the scrollbar as expected. I am able to scroll up/down by dragging the scrollbar button up/down. However, I cannot use the mousewheel to scroll.

Is there any special setting to enable mouse wheel scrolling.

Just to make sure that it is not a problem with my project, I created a small test project and see the same behavior.

Stenly
Telerik team
 answered on 18 May 2022
1 answer
167 views

I was wondering if it would be possible to overlay an arrow on a task in a Radganttview.

I leave you an example photo of what I want to do.

Stenly
Telerik team
 answered on 18 May 2022
1 answer
221 views

Hi,

I have a question for the problem related radpane resources.

In my project, radpane contains content which has sometimes more than 300mb of RAM for each instance(composed of telerik controls, GroupView etc.), so I really need to dispose radpane resources.

 

I followed instructions after searching some references, and it said that I should call radpane.RemoveFromParent(); for it to be garbage collected.

However, it is not working. The resources still remains same after even afeter calling the method.

The problem arises when radpane content is user control with only managed resources, which to be collected by GC.

 

Here is my code.

<RadDock>

   <RadPaneGroup>

          new <radpane> is created each time..

   </RadPaneGroup>

</RadDock>

 

When radpane is closed...

RadDock.CloseEvent += RaiseRadpaneCloseEvent();

RaiseRadpaneCloseEvent(object sender, eventargs e)

{

                // small codes to call radpane.....

 

                // here is radPane code.

                if (radPane != null)
                {
                    radPane.RemoveFromParent();

                    radPane.Content = null;
                    radPane.Header = null;
                    radPane.DataContext = null;
                    radPane.IsActive = false;
                    radPane.IsEnabled = false;
                    radPane = null;
                }

                // this works fine. When the content is UserControl

                // only some control is Idisposable, put only when unmanaged resources exist inside control .

                MethodInfo method = this.userControl.GetType().GetMethod("Dispose");
                if (method == null) return;

                method.Invoke(this.userControl, null);

}

 

Hope to get an answer quickly. Thanks.

 

Martin Ivanov
Telerik team
 answered on 17 May 2022
1 answer
174 views

Hello,

I'm currently using a RadCartesianChart. I want to centre my HorizontalAxis which is a LinearAxis on my VerticalAxis.
I want to know if it's possible and how to do it? I've searched for a long time on this forum, but I didn't find any solution. I see an old subject with a conclusion that is impossible.

 

Thanks for your help. Tell me if you need some code or anything else.
Justin

Martin Ivanov
Telerik team
 answered on 17 May 2022
0 answers
142 views

If in AppointmentSource I have some Appointment that came from the server and the user edited it but didn't save the changes

and exited the window,

then when he opens the Schedule again he will see the Appointment where he dragged it even though he didn't save it.

I tried to find the one that moved by UniqeId and then delete it and return the previous Appointment

by UniqeId but it does not work,

because probably UniqeId changes every drag.

Do you have another solution for me?

Thanks for the helpers

 

For example:

This is coming from the server:

And after the user dragged it (or edited it):

 

Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
 updated question on 16 May 2022
1 answer
170 views

Hi, I would like to help how to change these colors from yellow to my colors

Thanks for the helpers

Martin Ivanov
Telerik team
 answered on 16 May 2022
1 answer
125 views

Hi,

I have a WPF application that uses a RadGridView placed inside a RadPane. The RadGridView contains data that has fixed groups on multiple columns (groups are defined in XAML). The ItemsSource of the RadGridView is bound to an ObservableCollection so the UI gets updated as new data becomes available.

The grouping and display of data works as expected. However, as soon as I rearrange the RadPanel that contains the RadGridView all groups are removed an I'm left with a flat list. How can I regroup or keep the groups in the RadGridView after moving the RadPanel?

I have attached a sample project that demonstrates this behavior:

  1. Build and start the attached application
  2. Hit the red start-button on the UI to start generating data.
  3. Now the generated data gets grouped as expected.
  4. Drag & Drop the panel with the GridView to another location.
  5. All groups now disappear.
Dilyan Traykov
Telerik team
 answered on 12 May 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?