Telerik Forums
UI for WPF Forum
3 answers
194 views
I have created a custom control derived from RadCombobox. It compiles and runs fine in Visual Studio. But if I use Expression Blend to view a screen containing my custon control, I receive a design time error stating "Object reference not set to an instance of an object". This happens even if the derived class contains an insignificant amount of code. If I place RadCombobox directly on the screen (e.g. without wrapping it in a custom control), it shows up fine.

Here is my custom control:
    public class ccComboBox : RadComboBox
    {
        public int i;
    }

Here is my xaml:
    <Grid>
        <StackPanel>
            <telerik:RadComboBox Height="30" Width="200" Background="LightBlue"/>
            <cc:ccComboBox Height="30" Width="200" Background="LightBlue"/>
            <cc:ccDatePicker />
        </StackPanel>
    </Grid>

Only the ccComboBox xaml causes the error. ccDatePicker is derived from RadDatePicker and works fine.

Any help is greatly appreciated.

Doug

										
Valeri Hristov
Telerik team
 answered on 14 Jun 2011
1 answer
271 views
Is it possible to change the localization dynamically, while the application is running ?
I tried this:

public CultureInfo UICulture
        {
            get
            {
                return Thread.CurrentThread.CurrentUICulture;
            }
            set
            {
                if (value == null)
                {
                    throw new ArgumentNullException("value");
                }

                Thread.CurrentThread.CurrentUICulture = value;

                if ( Telerik.Windows.Controls.LocalizationManager.Manager != null )
                {
                    Telerik.Windows.Controls.LocalizationManager.Manager.Culture = value;
                }


                UpdateLocalizations();
            }
        }

This doesn't seem to work. The culture that I'm passing is fr-FR, and it seems you support the French language. What am I missing ?

Thanks,
Sebastien
Yana
Telerik team
 answered on 14 Jun 2011
1 answer
96 views
In our database, we have a huge list of files in a table that we would like to show on a treeview. The thing is that the field that contains the info is saved in a string in the following format:

c:\rootfolder\2011\03\10\folder\file.docx
c:\rootfolder\2011\02\11\folder\another.docx
c:\rootfolder\2011\03\10\folder\thisfile.docx

They are all saved in an object List<Item> that contains a property whose name is Object.FullPath

I was wondering if the wpf radtreeview has already built-in on the control where you pass the info and automatically parses the content.

Any thoughts?
Petar Mladenov
Telerik team
 answered on 14 Jun 2011
1 answer
193 views
How to change default filter in radgridview for datetime from raddatepicker to raddatetimepicker?
Ivan Ivanov
Telerik team
 answered on 14 Jun 2011
1 answer
510 views
how to change left side width and color for context menu?  and select row style?

could you paste default style for the control?

thanks

jeorme
Dani
Telerik team
 answered on 14 Jun 2011
1 answer
115 views
Hi, Data Filter has many filter condtion such as " Is Equal To", "Contains", "Not Contained In" and so on.
Does it support "Has Value" to filter those value is not null?
If not, can I extend it myself to do it? How?
Rossen Hristov
Telerik team
 answered on 14 Jun 2011
7 answers
253 views
Hello,

I need to hide the 'Match Case' from the FilterControl  in the RadGridView as im using it for different language than english.
Is there a way to accomplish that?

Thanks,
Rossen Hristov
Telerik team
 answered on 14 Jun 2011
3 answers
87 views
Hi All,

I am working on WPF 4.0 and using telerik grid in it.

The following Style i have applied for the Radgridview in my application.
<!-- Telerik Data Grid Style Definations -->
   <Style TargetType="telerik:GridViewHeaderCell">
       <Setter Property="Background" Value="{StaticResource MainHeaderColor}"/>
       <Setter Property="BorderBrush" Value="#D4D6D6"/>
       <Setter Property="BorderThickness" Value="1"/>
       <!--Setter Property="Height" Value="27"/-->
       <Setter Property="VerticalContentAlignment" Value="Center" />
       <Setter Property="HorizontalContentAlignment" Value="Center" />
   </Style>
     
   <Style x:Key="GridViewHeaderRowStyle" TargetType="{x:Type telerik:GridViewHeaderRow}">
       <Setter Property="Background" Value="White"/>
       <Setter Property="BorderBrush" Value="#D4D6D6"/>
   </Style>
     
   <Style x:Key="AlternateRowStyle" TargetType="{x:Type telerikGridView:GridViewRow}">
       <Setter Property="Background" Value="#E3F0F9" />
       <Setter Property="BorderBrush" Value="#D4D6D6" />
       <!--Setter Property="Height" Value="30"/-->
   </Style>
     
   <Style x:Key="GridViewRowStyle" TargetType="{x:Type telerikGridView:GridViewRow}">
       <Setter Property="Background" Value="White" />
       <Setter Property="BorderBrush" Value="#D4D6D6" />
       <!--Setter Property="Height" Value="30"/-->
   </Style>
   <Style x:Key="DataCellsPresenter" TargetType="{x:Type telerik:GridViewHeaderRow}">
       <Setter Property="Background" Value="{StaticResource MainBackgroundColor}" />
       <Setter Property="BorderBrush" Value="#D4D6D6" />
   </Style>
   <DataTemplate x:Key="GridViewHeaderIndentCellDataTemplate">
       <telerik:GridViewHeaderIndentCell BorderBrush="#D4D6D6"/>
   </DataTemplate>
   <DataTemplate x:Key="GridViewHeaderIndicatorPresenterTemplate">
       <telerik:IndicatorPresenter  x:Name="PART_IndicatorPresenter" 
                                            Background="{StaticResource MainBackgroundColor}" 
                                            BorderBrush="{StaticResource SeperatorColor}" 
                                            BorderThickness="1"
                                            Grid.Column="0" HorizontalAlignment="Left" 
                                            Width="24"/>
   </DataTemplate>
   <!-- Telerik Data Grid Style-->
   <Style TargetType="{x:Type telerik:RadGridView}">
       <Setter Property="HeaderRowStyle" Value="{DynamicResource GridViewHeaderRowStyle}"/>
       <Setter Property="AlternateRowStyle" Value="{DynamicResource AlternateRowStyle}"/>
       <Setter Property="IsFilteringAllowed" Value="false"/>
       <Setter Property="RowStyle" Value="{DynamicResource GridViewRowStyle}"/>
       <Setter Property="GridLinesVisibility" Value="Both"/>
       <Setter Property="Cursor" Value="Hand"/>
       <Setter Property="Background" Value="White" />
       <Setter Property="VerticalGridLinesBrush" Value="#D4D6D6"/>
       <Setter Property="HorizontalGridLinesBrush" Value="#D4D6D6"/>
       <!--Setter Property="MinColumnWidth" Value="20"/-->
       <!--Setter Property="MaxColumnWidth" Value="150"/-->
       <!--Setter Property="ColumnWidth" Value="100"/-->
       <Setter Property="RowIndicatorVisibility" Value="Collapsed"/>
       <!--Setter Property="RowDetailsVisibilityMode" Value="VisibleWhenSelected"/-->
       <Setter Property="AlternationCount" Value="2"/>
       <Setter Property="VerticalAlignment" Value="Top"/>
       <Setter Property="HorizontalAlignment" Value="Center"/>
       <Setter Property="ShowGroupPanel" Value="False"/>
       <Setter Property="AutoGenerateColumns" Value="False"/>
       <Setter Property="IsReadOnly" Value="True"/>
       <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
       <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
       <Setter Property="IsScrolling" Value="false"/>
         
       <Setter Property="Margin" Value="0,0,0,0"/>
   </Style>

Now when I am using this Radgrid in my application and opening the screen then at that time the grid first squeeze and then open up in the screen withits full width.In some screens its also giving a jerking effect and then opening properly.

Kindly let me know why is it happening so ?

Thanks in advance !!!!!!
Dimitrina
Telerik team
 answered on 14 Jun 2011
2 answers
123 views

I have a RadGridView where one of the columns is of type decimal. I want to be able to filter that by decimal numbers, but it's impossible to type commas in the textboxes in the filtering popup.

 

The filtering itself works fine. I've tried to apply a filter with a decimal (0.5) with code and it works: the correct rows are displayed and the rest are hidden. But when I did this the textbox in the popup displayed '0' and not '0.5'.

 

Why is this and is there any way around this? Is it a bug or is it by design? Hopefully it is not by design because that would render the filtering useless in my case since all my numbers are less than 1...

haagel
Top achievements
Rank 1
 answered on 14 Jun 2011
4 answers
321 views
Hi 
Please  let me know how to set new row as selected item of the grid through AddingNewDataItem event as early as possible

Swathi.
Vanya Pavlova
Telerik team
 answered on 14 Jun 2011
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
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?