Telerik Forums
UI for WPF Forum
1 answer
196 views
Hi,

i have a problem with a modal window that i opened with ShowDialog().

In this Window there are two Buttons and one Radgridview.
When i click with Mouse on a Button or a Row in the Gridview the Events are fired instantly on the first Click.
The Problem is now, that the application controlled only by Touchscreen. For this i have added the Event Touch_Up for the Buttons.
Now whe i Touch the Buttons the Event Touch_up fired instantly and correct.

When i Click with the Mouse on a Row in the Gridview, the Selected_Changed Event fired correct at the first Click.
When i Touch on a Row directly after Show the Modal Window i have to Touch two times on a Row before fired the Selection_Changed Event. That is my Problem. How can i make sure that the selected_Changed Event fired on the first Touch after show the modal 
window??

Sorry for my bad English

greetings

Johann

 
Vera
Telerik team
 answered on 04 Apr 2012
1 answer
165 views
There is no the Add Tab menu when i right click on RadTabControl. What I'm doing now is to add the RadTabItem in the xaml code. Any suggestion?

Thanks,
Brew
Tina Stancheva
Telerik team
 answered on 04 Apr 2012
5 answers
389 views
Hi

Is there any way to perform updates in batches? E.g. I believe this was possible in the WinForms control via BeginUpdate / EndUpdate.
Vlad
Telerik team
 answered on 04 Apr 2012
5 answers
135 views
I have been unsuccessful in making the Header editable.  Ideally I am looking to allow the user to edit the Header text when the double click on it.  I have followed the example you have to do this with the RadTab but this didn't provide enough assistance on the RadPane control.  I also have implemented the ControlTemplate necessary to move the close button inside the Header.  Systematically I have been attempting to replace Content with a DataTemplate consisting of simply a TextBlox to identify the locations within the ControlTemplate I need to account for. 

Would you please provide some guidance on how I can accomplish this objective?

Thank you

Paul
Paul
Top achievements
Rank 1
 answered on 04 Apr 2012
3 answers
120 views
Telerik, I am using the RadGridView and am specifying TelerikGridViewHeaderMenu:GridViewHeaderMenu.IsEnabled="True".  In this GridView I am also utilizing the HierarchyChildTemplate.  Within the DataTemplate in the HierarchyChildTemplate I am utilizing another GridView for related details.  The problem is with this child GridView and the GridViewHeaderMenu.  When I right click on the Header of the child GridView I am getting the GridViewHeaderMenu for the parent GridView.  I set TelerikGridViewHeaderMenu:GridViewHeaderMenu.IsEnabled="False" in the child GridView declaration but this had no effect.

How can I stop the child GridView(s) from showing the parent GridViewHeaderMenu?

Thanks

Paul
Paul
Top achievements
Rank 1
 answered on 04 Apr 2012
5 answers
178 views
I have defined a custom grid view column type:
public class GridViewButtonColumn : GridViewBoundColumnBase {
    public static readonly DependencyProperty ButtonBackgroundProperty = . . .
    public static readonly DependencyProperty ButtonForegroundProperty = . . .
   
    public Brush ButtonBackground {
        get { return (Brush) GetValue( ButtonBackgroundProperty ); }
        set { SetValue( ButtonBackgroundProperty, value ); }
    }
      
    public Brush ButtonForeground {
        get { return (Brush) GetValue( ButtonForegroundProperty ); }
        set { SetValue( ButtonForegroundProperty, value ); }
    }
  
    public GridViewButtonColumn() {
        this.EditTriggers = GridViewEditTriggers.None;
    }
  
    public override FrameworkElement CreateCellElement( GridViewCell cell, object dataItem ) {
        Cell = cell;
        CellButton = new Button();
        CellButton.Click += new RoutedEventHandler( CellButton_Click );
        CellButton.CommandParameter = dataItem;
  
        Binding contentBinding = new Binding( "Content" ) {
            Source = this,
            Mode   = BindingMode.TwoWay
        };
        CellButton.SetBinding( Button.ContentProperty, contentBinding );
  
        Binding backgroundBinding = new Binding( "ButtonBackground" ) {
            Source = this,
            Mode = BindingMode.TwoWay
        };
        CellButton.SetBinding( Button.BackgroundProperty, backgroundBinding );
  
        Binding foregroundBinding = new Binding( "ButtonForeground" ) {
            Source = this,
            Mode = BindingMode.TwoWay
        };
        CellButton.SetBinding( Button.ForegroundProperty, foregroundBinding );
  
        if ( CellButtonVisibility != null ) {
            CellButton.SetBinding( Button.VisibilityProperty, CellButtonVisibility );
        }
  
        if ( this.DataMemberBinding != null ) {
            SetBinding( ContentProperty, this.DataMemberBinding );
        }
  
        GridViewRow row = cell.ParentRow as GridViewRow;
  
        row.SetBinding( GridViewRow.DetailsVisibilityProperty, new Binding( "Visibility" ) {
            Source = CellButton,
            Mode = BindingMode.TwoWay
        } );
  
        return CellButton;
    }
          
    void CellButton_Click( object sender, RoutedEventArgs e ) {
        Button btn = sender as Button;
        DataRetentionPolicy policy = btn.DataContext as DataRetentionPolicy;
              
        RoutedEventArgs newEventArgs = new ButtonColumnRoutedEventArgs( ClickEvent, policy );
        RaiseEvent( newEventArgs );
    }
}
Here's the xaml where I'm using it:

<telerik:RadGridView AutoExpandGroups="True"
                     AutoGenerateColumns="False"
                     Background="{DynamicResource DataBackground}"
                     CanUserDeleteRows="False"
                     CanUserFreezeColumns="False"
                     CanUserInsertRows="False"
                     CanUserResizeColumns="False"
                     CanUserSortColumns="True"
                     EnableColumnVirtualization="True"
                     EnableRowVirtualization="True"
                     FontSize="16"
                     FontWeight="Bold"
                     Foreground="{DynamicResource DataForeground}"
                     Grid.Column="1"
                     Grid.ColumnSpan="2"
                     Grid.Row="1"
                     IsReadOnly="True"
                     ItemsSource="{Binding Path=DataRetentionPolicies, Mode=TwoWay, RelativeSource={RelativeSource AncestorType={x:Type cs:AdvancedSettingEditor}}}"
                     Margin="5"
                     Name="DataPolicies"
                     SelectionUnit="FullRow"
                     ScrollMode="Deferred"
                     ScrollViewer.CanContentScroll="True"
                     ScrollViewer.HorizontalScrollBarVisibility="Auto"
                     ScrollViewer.VerticalScrollBarVisibility="Auto"
                     ShowGroupFooters="True"
                     TabIndex="8"
                     ToolTip="Data Maintenance Properties"
                     Visibility="{Binding Converter={StaticResource BoolToVisibility}, Mode=TwoWay, Path=EnableRetention, RelativeSource={RelativeSource AncestorType={x:Type cs:AdvancedSettingEditor}}}">
    <telerik:RadGridView.Columns>
        <cs:GridViewButtonColumn ButtonBackground="{DynamicResource ButtonBackground}"
                                 ButtonForeground="{DynamicResource ButtonForeground}"
                                 Click="EditButton_Click"
                                 Content="Edit"
                                 FontSize="16"
                                 FontWeight="Bold"
                                 Width="75" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

The DynamicResources called ButtonBackground and ButtonForeground are SolidColorBrush resources defined in app.xaml.I have recently implemented themes in my application.  When the themes change, the colors of these resources, along with others, change. 

When the custom column is first displayed, the button colors are correct, but when the the theme changes, the colors aren't changing. How do I fix this problem?

Tony
Nedyalko Nikolov
Telerik team
 answered on 04 Apr 2012
1 answer
121 views
Bit of a long shot, but is there any way of improving the performance when scrolling through larger documents?

I may be totally wrong, but I'd hazard a guess that the only parts of the document that are loaded and rendered are those that are in the View Port, and any scrolling results in the bits off screen having to be drawn.  This would help memory useage, but explain the slight jerkiness in scrolling.  Evidentally a compromise is to render a page or two either side.
Martin Ivanov
Telerik team
 answered on 04 Apr 2012
0 answers
79 views
Hi

I have form include GridView that user can change column visibility, size, sort, etc. and then save layout using PersistenceManager.
Because I implement custom paging, in Sorting event, i get sorted data from server.
all process work fine. but when restore layout using PersistenceManager, Column that user already sorted on it restore and data sorted in local mode, not server mode.

Therefore if GridView Sorting event raise automatic or manual after restore layout, my problem will be solved.

Note: I also using below code, but not work:
lstGridView.ForEach(p =>
{
         if (p.SortDescriptors != null && p.SortDescriptors.Count > 0)
         {
                 p.RaiseEvent(new GridViewSortingEventArgs((p.SortDescriptors[0] as ColumnSortDescriptor).Column, SortingState.None, SortingState.Ascending) {
                                            RoutedEvent = RadGridView.SortingEvent,
                                            Source = this
                  });
          }
});

Could you please help me.
hamid
Top achievements
Rank 1
 asked on 04 Apr 2012
1 answer
107 views
Hi telerik,

When I activate menu items, the menu stays open.

Specifically, I add menu items through code to maintain a 'recent files' list in the File menu. Clicking the menu item activates functionality correctly, but menu stays open. All menu items inserted through xaml seems to work correctly.

It would appear it has already been reported long time ago:
http://www.telerik.com/community/forums/wpf/menu/radmenu-visible-after-onclick-event-fires.aspx
(Can't see any comments about being resolved?)

I can live with it, if I can somehow force the menu to go away but much fidling around with enabled, visibility even removal of the entire menu and re-inserting it has proved not to work. Do you have any suggestions for such a work-around?

Thanks,

Anders, Denmark
Yana
Telerik team
 answered on 04 Apr 2012
5 answers
189 views
Quick question:
Is there a way to resize the tiles at will ? Possibly by dragging a left-mouse cursor on the edges of the tiles. This will give flexiblity beyond the 3 fixed size of minimized, maximized, and restored.

Miro Miroslavov
Telerik team
 answered on 04 Apr 2012
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?