Telerik Forums
UI for WPF Forum
1 answer
11 views

Hi,

I have a RadGridView in WPF where I use CustomGrouping for displaying it as a hierarchical structure. I set on it AutoExpandGroups="True" in order to be expanded by default. My problem is, if I manually collapse something in the RadGridView and I make an update to the list bounded to ItemsSource, the RadGridView automatically expands and does not stay as it was.

Thanks

Martin Ivanov
Telerik team
 answered on 14 Mar 2024
1 answer
8 views

I've read this thread but it is a bit confusing and old: Live sorting/grouping in UI for WPF | Telerik Forums

What is the current situation?

I am having problems with Devexpress GridControl as they dont support what they call "Live Data Shaping" eg sorting with real-time updates IF you use WPF binding.

Question - can Telerik data grid and/or virtual grid do live data shaping where columns use custom templates with WPF binding to a dictionary. For example: `{Binding Fields[abc].Value}`?

Martin Ivanov
Telerik team
 answered on 11 Mar 2024
1 answer
11 views

There's probably just a property for this that I am missing.
I have a RadGridView with SelectionUnit="FullRow" but it still draws a box around whatever cell I click on.

I can confirm that it doing the full row selection because it will copy the row text if I press ctrl-C.
The row indicator on the left is also showing correctly.

So how do I tell it to not draw the box around the cell?

(it's not a big issue but some user will probably complain about it)

 

Martin Ivanov
Telerik team
 answered on 05 Mar 2024
1 answer
11 views

Hello,

I am new to Telerik, in my application we are using RadGridView and load the data dynamically.

when data is large, and I copy pasted from excel then my cells are not highlighted. data is pasted correctly but highlighted cell is not working.

If I edit it manually then it's working fine and I handled this highlighted cell in "CellEditEnd" event.

I walk through multiple forums but none of them are working for me.

I tried to raise ClipboardPaste event but that is not available my RadGridView control.

Also I manually created below function but "MyRadGrid.ChildrenOfType<GridViewRow>()" is not giving me all the index of my radgridview it gives 10 or 15 according to the screen size because of virtualization

private void HighlightUpdateCell(int rowIndex, int columnIndex)
        {           
            int rowNumber = 0;
            foreach (GridViewRow gr in MyRadGrid.ChildrenOfType<GridViewRow>())
            {
                if (rowNumber == rowIndex)
                {
                    gr.Cells[columnIndex].Background = Brushes.Yellow;
                    break;
                }
                rowNumber++;
            }
        }

Another approach was to create a property and set it in style but that is also not working. as cells are not showing in edited mode after pasting data.

I also tried using CellStyleSelector but the is applying changes only on load after that this method is not call itself.

 

I tried for ClipboardPaste event but unable to find that in my application.

I am using latest Telerik libraries from 2024

 

Can you please help to highlight the cells of RadGridView after paste is completed.

 

 

Martin Ivanov
Telerik team
 answered on 27 Feb 2024
1 answer
47 views

I have a RadGridView where i've replaced the "Full Text Search" with a custom control (TextBox + Label) 

I'm using a Debouncer to collect text changes from the Textbox and then after 300msec - do the search:


if (e.PropertyName == "Query")
{
	debounce.Debounce(() =>
	{
		Dispatcher.Invoke(() =>
		{
			FilterByQuery();
		});
	});
}
FilterByQuery() : 
var searchBytextCommand = RadGridViewCommands.SearchByText as RoutedUICommand;
searchBytextCommand.Execute(Query, radgrid);

Query = String property

radgrid = x:name of the RadGridView.

at some random point in time of the lifetime of the WPF program, this function stops working !

- I dont have any other case of the Debouncer stops working so i trust that it's not the issue. 

- WPF Databinding and PropertyChanged events are also working 1000 other places in the program without failing, so i trust that they work too.

- This leads me to believe that the RadGridViewCommands might have an issue.. 

 

Martin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 26 Feb 2024
0 answers
14 views
Hello
I have a radgridview with two columns (for simplicity)
The first is defined like this:

RiassuntoSorgentiGrid.Columns.Add(new GridViewDataColumn()
{
				Header = Utility.LoadString(ResourcesKeys.RipetizioniSorgente),
				ColumnGroupName = GENERALGROUPNAME,
				DataFormatString = "D",
				DataMemberBinding = new Binding("Sorgente.Ripetizioni")
				{
					Mode = BindingMode.OneWay
				}
});


The second like this:

RiassuntoSorgentiGrid.Columns.Add(new GridViewDataColumn()
{
				Header = Utility.LoadString(ResourcesKeys.RipetizioniSorgente),
				ColumnGroupName = GENERALGROUPNAME,
				DataFormatString = "D",
				DataMemberBinding = new Binding($"Sorgente.LivelliSingoli[{parametro.Id}][{l}]")
				{
					Mode = BindingMode.OneWay
				}
});


where parametro.Id and l are variables correctly defined and not null.
The grid works good, but in the second columns filtering and sorting are not active, while in the first they do.

Is there a reason for this behavior?
Thank you
Luigi
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
 updated question on 21 Feb 2024
0 answers
17 views

Hi Iam trying to set row numbers in radgrdview as like below.

Please let me know is there any way to do like below.

 

Regards,

Prabhakar k.

Prabhakar
Top achievements
Rank 1
 asked on 09 Feb 2024
14 answers
190 views
Hi, 

I have a grid that is shown in two different windows...(different windows same grid)
In one of the windows the grid is enabled and the user can edit the grid, but in the other window the grid is disabled.
My problem is that the grid scrollbar is disabled in the window where the grid is disabled...

I read the thread (hence the title on this post) on the forum about someone with a similar issue, but the solution for 
that case, a style targeting the GridViewRow, will not help me I'm afraid.

Is there another way to disable the grid but not the scroll?

Please advice!
Arseni
Top achievements
Rank 1
Iron
 answered on 08 Feb 2024
0 answers
21 views

Hello, 

I am using a RadTreeView component in a WPF application that looks like in the following photo. The hierarchy is: a Category can contain a list of SubCategories and a SubCategory contains a List of Activities that have some properties. I would like to transform my RadTreeView into a RadTreeListView or RadGridVew in order to beneficiate from SelectionUnit property and the navigation between cells from the keyboard but I could not find anything that meets by needs:

a component with cells only on the last level of the hierarchy, to be able to select a cell and edit it  and, if possible, to have a tabular header with details from the last level of the hirarchy.

 

Thank you!

Andreea
Top achievements
Rank 1
Iron
 updated question on 08 Feb 2024
0 answers
18 views

Hi,

I am working with RadGridView of Telerik

Source of the RadGridView is QueryableCollectionView (with OData)

Each column has filter option.

but the filter popup advance contains only "Select All" and not all the values of the column.

What should I do for see all the values in the filter advance?

Thanks

Adiel
Top achievements
Rank 1
 asked on 06 Feb 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?