I've used RadGrid and inside that I have one listview with expander control. It is working fine and Expander also expanding and collapsing fine.
But only one issue I have is, when I expanded the Expander and try to scroll down the RadGrid, Expander collapsing every time, it is not retaining it's previous expand state.
I could overcome this by disabling the Virtualization on RadGrid but in that case RadGrid taking long time to load/render.
Any help would be appreciated.
Thanks,
Hi,
let's take a TextBlock as an example. What's the correct syntax to set the foreground or background color from code behind, using the resources for the Windows 11 palette for instance ?
Also if using it this way, would the color automatically switch to the correct theme variation (light to dark, dark to light) ?
Thank you for your help
Hi,
Would it be possible to have an editable AutoCompleteBox TextBox Part to mimic the RadWatermarkTextBox with floating Label?
Hi
I have a RadPropertyGrid, being defined as:
<telerik:RadPropertyGrid Item="{Binding ObjectBound, Mode=OneWay}" Width="300" Name="propertyGrid2"
Grid.Column="1"
VerticalAlignment="Stretch"
VerticalContentAlignment="Stretch"
NestedPropertiesVisibility="Visible"
AutoGeneratePropertyDefinitions="True"
SelectionMode="Multiple"
PropertySetMode="Intersection"
telerik:PropertySet.ShouldAddNullForNonMatchingValues="True"
where I would like to bind 0...n items
Let's say all of those items belong to the class Car
public class CarEngine
{
public int PowerKW { get; set; }
public int DisplacementCCM { get; set; }
}
public class Car
{
public Car()
{
Engine = new ();
}
public string Manufacturer { get; set; }
public string Color { get; set; }
public CarEngine Engine { get; set; }
}
In the code behind I have a property to bind to the PropertyGrid
public object ObjectBound
{
get;
set;
}
and will create the items like this:
Car c = new Car();
c.Manufacturer = "Honda";
c.Engine.PowerKW = 110;
c.Engine.DisplacementCCM = 1799;
c.Color = "black";
Car c2 = new Car();
c2.Manufacturer = "BMW";
c2.Engine.DisplacementCCM = 2199;
c2.Engine.PowerKW = 150;
c2.Color = "black";
List<Car> list = new();
list.Add(c);
list.Add(c2);
now first, I will bind just one car instance to the RadPropertyGrid:
this.ObjectBound = c;

Here I can expand the nested engine instance and can write to each field which is absolutety perfect!
Then we have a second use case where I would like to bind to the list with two cars and get their common attributes while differerent properties will be displayed empty:
this.ObjectBound = list;
Therefore I had choosen "Intersection" for the propertysetmode of the RadPropertyGrid
For the primitive Attributes Color (shared between both cars) and Manufacturer (different) that will work just fine.

But as one can see the nested Attribute "Engine" cannot be set as it not able to be expanded! I'd like to set e.g. a common displacement for both of the two cars. How can I realize such a behaviour as it is required from business?
thanks!
Hello,
Our application has a requirement to automatically log a user out after a period of input inactivity, e.g. keyboard or mouse events for security reasons.
When we automatically log out a user, we also want to close any open modal dialogs in our application, including any modal dialogs open in the Telerik ReportViewer - such as the Export / Print dialogs.
Is there a way for cancel/close these modal dialogs?
I looked at the specific events such as ExportBegin as it provides a way to cancel the export, but I need a way to close the dialogs at any time not just at the specific time the export starts.
Thanks,
Canice.

In WPF there is an export icon looks like a diskette. One can specify what type of export. PDF, Exel etc. then a call to Windows "Save As" dialog box.
My question is there a way to populate/specify the file path in the "Address bar"?
Some kind of registry or something. The end user can of course alter the destination if they wish.
How can I repeat certain lines on each page of a workbook?
WorksheetPageSetup worksheetPageSetup = worksheet.WorksheetPageSetup;
worksheetPageSetup.PaperType = PaperTypes.A4;
worksheetPageSetup.PageOrientation = PageOrientation.Landscape;
worksheetPageSetup.FitToPages = true;
worksheetPageSetup.CenterHorizontally = true;
worksheetPageSetup.PrintTitle ...Assignment via PrintTitle does not work.

I have issue at WPF Telerik.Windows.Controls.GridView
I created new columns (GridViewExpressionColumn) the names are "CalculatedColumn" at RadGridView and see the result as at image
I would like to get the data of the columns from RadGridView, and to create from this column the list of values
for example:
on first column I would to get all Booleans values as list
Hello,
How can I select all expanded/visible rows in a radgridview control, which have been grouped and possibly filtered, even if the rows fall out of view of the window container?
I have a window that contains a radgridview and a button that is outside of the grid which selects or deselects all visible rows in the radgridview. An end user may add multiple groupings and filters. There is a lot of data in the item source, at the time of this test over 3 thousand rows. The resulting data display after the end user has made changes will likely exceed the window containers viewable area. when I implemented the line of code below only the expanded row visible in the window was selected. The expanded rows that I had to scroll down to see were not selected. I would like to select all of the expanded/visible rows.
var visibleRows = grdBatches.ChildrenOfType<GridViewRow>();
I have read that ChildrenOfType<T> works on visual elements. In another forum question, the answer stated that the use of visual elements is not advised when working with virtualized controls such as the radgridview.

I get the following error when I try to add a Telerik WPF Form
Project template
Adding a WFP forms triggers this and nothing added?
So I tried a WPF .NET Core template and got prompted for this"
No idea how to proceed ... just trying to create a new project?
Rob.