Telerik Forums
UI for WPF Forum
0 answers
227 views
Hi,

i use the "RadMaskedTextInput" and Text={Binding nn} to show a Adress. The Content should be "Österreich". But it shows me something like a "?" instat of the "Ö". How can i solve this?

<telerik:RadMaskedTextInput Margin="3" HorizontalAlignment="Stretch" VerticalAlignment="Top" Grid.Row="0" Grid.Column="1" Name="KundenAns_txt" Value="{Binding Anschrift}" telerik:StyleManager.Theme="Summer"
TextMode="PlainText" VerticalContentAlignment="Top" SelectionOnFocus="SelectAll" />

Thanks
Regards
ww
ITA
Top achievements
Rank 1
 asked on 05 Apr 2012
1 answer
237 views
Hi,

It appears that if you remove the Telerik.Windows.Controls.GridView.pdb from a project and then run the project in debug mode, an exception is thrown when you try to insert a row into an instance of the RadGridView control.

I'm just concerned about this because our application allows end users to create plug-in components, and some of them do this using Telerik controls, but they don't always provide the .pdb files. Since this is only happening in debug mode, it's probably not an issue, but I am curious why this is happening?

To reproduce:

Create a simple WPF application and add a RadGridView to the main window.

Create a simple data structure, example:

public class MyRecord
{
    public string MyField { get; set; }
}


Bind the grid to an observable collection of that data structure:

//...
public class MyWidget : UserControl
{
    public class MyRecord
    {
        public string MyField { get; set; }
    }
 
    public ObservableCollection<MyRecord> _items = new ObservableCollection<MyRecord>();
 
    public MyWidget()
    {
        InitializeComponent();
 
        this.myRadGridView.ItemsSource = this._items;
    }
}

Build the application in "Debug" mode, and then run it.

You should be able to insert rows into the RadGridView just fine.

Now, go into the output directory for the application and delete this file:

Telerik.Windows.Controls.GridView.pdb

Don't rebuild the application, just run it again, in debug mode.

If you try to insert a row into the grid, the system throws an exception and complains about a data binding object of some sort.

Any idea as to why this is happening? I thought .pdb files were only used in the event that an exception was thrown, so I'm a little unclear as to why RadGridView would crash *because* there is no .pdb file available...

Thanks.
Vlad
Telerik team
 answered on 05 Apr 2012
3 answers
152 views
Hi,

I have an issue where I have groupDescriptors defined on a Grid.
I added a GridViewExpressionColumn with a custom AggregateFunction using the code provided in this thread:
http://www.telerik.com/community/forums/wpf/gridview/aggregate-column-footers-don-t-sum-on-data-change-caliburn-micro-mvvm.aspx 

The AggregateFunction calculation works at the Grand Total level, but not at the GroupDescriptor level.

See screenshot attached. (2nd one)

Did somebody ever encountered the problem before?

Thank you,
Alan
Alan
Top achievements
Rank 1
 answered on 04 Apr 2012
4 answers
213 views
Hello Telerik Team,

I have small doubt in wpf rating,
     How to bind rad rating? Bcoz i want to store the rated value in database.
our telerik version is 2010_2_0723_DEV.

Dan
Top achievements
Rank 1
 answered on 04 Apr 2012
1 answer
206 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
171 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
413 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
139 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
126 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
189 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
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?