Unplanned
Last Updated: 12 Jan 2024 14:27 by Martin Ivanov
Setting SelectedItem of RadCardView to null doesn't clear the selection state of the corresponding item.
Unplanned
Last Updated: 22 Nov 2023 15:11 by ADMIN
When a property change happens in an item of the ItemsSource of RadCardView, automatically refresh the grouping and the filtered data.
Unplanned
Last Updated: 08 Mar 2022 08:06 by Stenly
Created by: Stenly
Comments: 0
Category: CardView
Type: Feature Request
1

Expose Expand and Collapse events, which will occur when a RadCardViewItem element is either collapsed or expanded.

Currently, to achieve this behavior, subscribe to the Loaded event of the RadCardView control, and add two new event handlers via the AddHandler method.

For the first handler, which will be responsible for occurring when expanding, pass as a first argument RadExpander.ExpandedEvent. As a second parameter, create a new RoutedEventHandler instance with a method, which will fire the custom logic when the internal RadExpander element of the current RadCardView is getting expanded.

For the second added event handler, which will be responsible for the collapsing logic, the same approach as the abovementioned one could be used.

The following code snippet shows this approach's implementation:

private void CardView_Loaded(object sender, RoutedEventArgs e)
{
    this.cardView.AddHandler(RadExpander.ExpandedEvent, new RoutedEventHandler(Expanded));
    this.cardView.AddHandler(RadExpander.CollapsedEvent, new RoutedEventHandler(Collapsed));
}

private void Expanded(object sender, RoutedEventArgs e)
{
    var expander = e.OriginalSource as RadExpander;
    //Get clicked CardViewItem element
    var cardViewItem = expander.ParentOfType<RadCardViewItem>();
}

private void Collapsed(object sender, RoutedEventArgs e)
{
    var expander = e.OriginalSource as RadExpander;
    //Get clicked CardViewItem element
    var cardViewItem = expander.ParentOfType<RadCardViewItem>();
}

 

Unplanned
Last Updated: 28 May 2021 07:17 by ADMIN
Created by: Martin Ivanov
Comments: 0
Category: CardView
Type: Feature Request
1
Currently, you can select only a single card at a time. Add the option to select multiple cards.
Unplanned
Last Updated: 07 Aug 2024 14:39 by Stenly
Created by: Stenly
Comments: 0
Category: CardView
Type: Feature Request
0
Currently, the RadCardView control does not provide an option to use a custom RadCardViewItem

We could introduce an option that will allow for this behavior.
Unplanned
Last Updated: 07 Aug 2024 14:34 by ADMIN
Created by: wu
Comments: 1
Category: CardView
Type: Bug Report
0
When right clicking on a Textbox of the RadCardView to bring up a menu, the Contextmenu is automatically closed.
Unplanned
Last Updated: 05 Aug 2024 08:00 by ADMIN
Like the GridView, the RadCardView  controls can also support the property 'Enabled StickyGroupHeaders'
Unplanned
Last Updated: 16 Nov 2023 11:05 by David
When we have one collapsed group, and the other is expanded, and we call the Reset method of the GroupDescriptors the expander icons are rotated.
Unplanned
Last Updated: 03 Aug 2023 08:14 by Martin Ivanov

Add property that sets the background of the card's header. Currently to do that you need to edit the ControlTemplate of the RadExpander element in the ControlTemplate of RadCardViewItem. Or use code-behind to find the corresponding Border element and assign its value.

The new property could be set on RadCardView or on the RadCardViewItems.

The following example shows how to set the Background in code:

static MainWindow()
{
	EventManager.RegisterClassHandler(typeof(RadCardViewItem), RadCardViewItem.LoadedEvent, new RoutedEventHandler(OnRadCardViewItemLoaded));
}

private static void OnRadCardViewItemLoaded(object sender, RoutedEventArgs e)
{
	var item = (RadCardViewItem)sender;
	var headerBorder = item.ChildrenOfType<Border>().FirstOrDefault(x => x.Name == "HeaderPanel");
	if (headerBorder != null)                
	{		
		headerBorder.Background = Brushes.Red;
	}
}