Hello,
in my simple example i have a RadPanelBar with three RadPanelBarItems.
The default behavior of the items is to expand on selection. This is fine for me.
Now I want the user to confirm the change of the selection of the RadPanelBarItems.
Therefore I use a MessageBox in the PreviewSelectionChanged event of the RadPanelBar.
The confirmation logic works fine but the selected item is not expanded after confirmation.
This behavior is different to the default.
Regards
Rainer
The sample code:
<Window x:Class="RadPanelBarItemSelection.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="MainWindow" Height="350" Width="525"> <Grid> <telerik:RadPanelBar x:Name="pbItems" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionMode="Single" IsExpandOnSingleClickEnabled="True" PreviewSelectionChanged="pnlEditorialSysItems_PreviewSelectionChanged"> <telerik:RadPanelBarItem Header="Item1"> <Border Background="Blue" Height="100"> <TextBlock Text="Item1"/> </Border> </telerik:RadPanelBarItem> <telerik:RadPanelBarItem Header="Item2"> <Border Background="Red" Height="100"> <TextBlock Text="Item2"/> </Border> </telerik:RadPanelBarItem> <telerik:RadPanelBarItem Header="Item3"> <Border Background="Green" Height="100"> <TextBlock Text="Item3"/> </Border> </telerik:RadPanelBarItem> </telerik:RadPanelBar> </Grid> </Window>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using Telerik.Windows.Controls; namespace RadPanelBarItemSelection { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } private void pnlEditorialSysItems_PreviewSelectionChanged(object sender, SelectionChangedEventArgs e) { if (MessageBoxResult.Yes == MessageBox.Show("Cancel selection ?", "Cancel", MessageBoxButton.YesNo, MessageBoxImage.Question)) { e.Handled = true; } } } }
Hi, I am using RadControls for WPF (Q2 2011), in particular the GridView control. I am aware this control includes a cool looking dialog for filtering the data for each column however due to the fact I am trying to implement custom paging using Entity Framework I would also like to customise the look of the filter dialog, is this possible and if so please explain how.
I'd like to keep the section whereby one is able to filter the results by text search etc. but I don’t want to display the top section allowing the user to select the specific items in the collection. Hope that makes sense, I would send a screen shot however I don’t think its possible here??
Thanks in advance