Telerik Forums
UI for WPF Forum
3 answers
273 views
1st issue - We're new to the Telerik controls.  When using the RibbonWindow and the RibbonView, the Title of the Window is black without a white blur behind/around it, making the title very difficult to see.  Which style do I need to change to add the BlurEffect?  Also, on Windows 7 with Aero turned on, could not this blur not be the default style.  

2nd issue - The interaction between the RibbonWindow and RibbonView, the title, and the IconVisibility/WindowIconVisibility properties is quite confusing.  In our sample applications, the window icon shows up perfectly to the left of the QAT.  But we cannot get the icon to display in our Win32 application with integrated Telerik controls nor does the window menu open when clicking on it.  The RibbonWindow/RibbonView and QAT display correctly.  I seem to have tried all combinations of  IconVisibility/WindowIconVisibility property settings.  I don't know what else to try.  Any guidance would be appreciated.

Dan - Bentley Systems, Inc.

Tina Stancheva
Telerik team
 answered on 09 Nov 2012
1 answer
106 views
When the radrichTextBox's width exceeds the A4's width, Is there a way to print the content  by more than one A4 page.
Iva Toteva
Telerik team
 answered on 09 Nov 2012
6 answers
185 views
number formatting like 23,344.45 should be displayed only in view mode. but when user enter it should display 23444.45 without formatting.
Below text property is not displaying data in N2 string format. what is correct way to use Value and Text property.?

 <RadMaskedNumericInput
 Value="{Binding  XXX, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" 
Mask="" Text={Binding StringFormat=N2}"/>
Tina Stancheva
Telerik team
 answered on 09 Nov 2012
3 answers
346 views
Some of my users are slow typists.  Is there a way to adjust the maximum delay between key strokes before the combobox assumes you are starting a new word?

In other words, if the following items are bound to the combo box:

12345
12346
12347
4111

And the user starts typing 1234, if they pause long enough between the 3 and the 4, the selection will go to the 4111 item.  I want to be able to edit the amount of time they are allowed to take between key strokes before it it assumes they're starting a new search.
Thanks.

Aaron

Vladi
Telerik team
 answered on 09 Nov 2012
2 answers
241 views
Hi Telerik Team,

I have added a GridViewColumnGroup to a WPF RadGridView (version 2011.3.1220.40).

<Telerik:RadGridView.ColumnGroups>
       <Telerik:GridViewColumnGroup Name="gvGroup" Header="Header"></Telerik:GridViewColumnGroup>
</Telerik:RadGridView.ColumnGroups>


The header text is dynamic in my case. The gridview data gets refreshed on click of an hyperlinkcolumn of the same grid, so the header text of the GridViewColumnGroup also needs to refreshed. I tried changing the header text programmatically as given below.

The data in the gridview gets refreshed but the header text of the GridViewColumnGroup is not getting refreshed consistently. 
Sometimes it does gets refreshed where as sometimes it doesn't .

foreach (GridViewColumnGroup item in radgvPrerequisiteRelType.ColumnGroups)
{
           if (item.Name == "gvGroup")
            {
               item.Header = null;
               item.Header = "ProjectId [" + lngProjectId + "]";
            }
}

Could you please let me know the solution for this problem.



Thanks,
Regards,
Mausami
Pavel Pavlov
Telerik team
 answered on 09 Nov 2012
1 answer
298 views
Dear Team,
  I have a RadTileView which bind to list. Problem is that i dont want any header (area, text, togglebutton). Please guide me through sample application. In attached image my problem may be more clear. on Left side i have a tile view (items source not bind) have individual tileviewitems. I got my desired result. How i will get such result if i bind items source to some collection. Here in example  i only set contentTemplate.  Can you tell me difference between content template and itemstemplate???
Here is my code for your reference

<DataTemplate x:Key="ContentTemplate">
            <Grid Width="{Binding RestoredWidth}" Height="{Binding RestoredHeight}">
                 
                <telerik:RadTileViewItem Background="#1a9fe0"
                                     Content="{Binding Content}"
                                     MinimizedHeight="125"
                                     RestoredHeight="{Binding RestoredHeight}"
                                     RestoredWidth="{Binding RestoredWidth}"
                                     Style="{DynamicResource RadTileViewItemStyle}" />
            </Grid>
        </DataTemplate>
 //Where RadTileViewItemStyle is Same Style I used in First RadTileView
<!--///////////////////////////////////////////////////////////////////////////////////-->
            <telerik:RadTileView Name="RadTileView1" Width="1000" Grid.Row="1" Grid.Column="1" MaximizeMode="Zero"  Margin="20 0 0 0" Height="400"
                            ColumnsCount="4"                        
                             RowHeight="Auto"
                              ColumnWidth="Auto"
                             DragMode="Swap"
                             MinimizedColumnWidth="100"
                             MinimizedRowHeight="Auto"
                             HorizontalContentAlignment="Stretch"
                             PreservePositionWhenMaximized="True"              
                             telerik:TileViewPanel.IsColumnsShrinkEnabled="True"
                             telerik:TileViewPanel.IsSizeBoundToPosition="True"
                             ContentTemplate="{StaticResource ContentTemplate}"
                                 >
 
            </telerik:RadTileView>
public List<TileView> Collection = new List<TileView>();
///////////////////////////////////////////////////////////////////////////
            Collection.Add(new TileView() { Content = "Item8", RestoredHeight = 100, RestoredWidth = 245 });
            Collection.Add(new TileView() { Content = "Item9", RestoredHeight = 100, RestoredWidth = 245 });
            Collection.Add(new TileView() { Content = "Item10", RestoredHeight = 100, RestoredWidth = 245 });
            Collection.Add(new TileView() { Content = "Item11", RestoredHeight = 100, RestoredWidth = 245 });
 
            Collection.Add(new TileView() { Content = "Item12", RestoredHeight = 100, RestoredWidth = 245 });
            Collection.Add(new TileView() { Content = "Item13", RestoredHeight = 100, RestoredWidth = 122 });
            Collection.Add(new TileView() { Content = "Item14", RestoredHeight = 100, RestoredWidth = 122 });
            Collection.Add(new TileView() { Content = "Item15", RestoredHeight = 100, RestoredWidth = 245 });
            Collection.Add(new TileView() { Content = "Item16", RestoredHeight = 100, RestoredWidth = 245 });
 
            RadTileView1.ItemsSource = Collection;
Tina Stancheva
Telerik team
 answered on 09 Nov 2012
6 answers
355 views
Hello,
I have a diagram. When I call AutoFit() method it does not fill all the space available of the host window.I have to zoom in (manually) a bit to get a better fit. How do I achive AutoFit functionality that makes diagram as large as possible filling all visible space of the host window? Some function like ZoomToFit()?
I attach two images of what I get by default and what I would like to get.
Mikhail
Top achievements
Rank 1
 answered on 08 Nov 2012
1 answer
184 views
Hi, 

I have got model:

public class Category
{
    public int Id { get; set; }
    public string Name { get; set; }
    public int? ParentCategoryId { get; set; }
    public virtual Category ParentCategory { get; set; }
    public virtual ICollection<Category> SubCategories { get; set; }
}

And in MVVM:

private ObservableCollection<Category> _categories;
public ObservableCollection<Category> Categories
{
    get { return _categories; }
    set
    {
        if (_categories == value) return;
 
        _categories = value;
        OnPropertyChanged("Categories");
    }
}

I found an example, but I don't want to create a new model, and even more so to edit an existing one.
Could you explain to me step-by-step, how I can bind the data to treeview (with parents and their childs')?
Sergiy
Top achievements
Rank 1
 answered on 08 Nov 2012
1 answer
144 views
Hello
I tried insert one RadDataForm into another and I accomplished this, but nested form acts like parent e.g. I start edit parent form and child form is automatically being edited too. Can thay work independently? How can I achieve this ?
Ivan Ivanov
Telerik team
 answered on 08 Nov 2012
1 answer
255 views
I've followed your help sample and created a custom style selector like this:-

public class BlockTypeStyleSelector : StyleSelector
{
    public override Style SelectStyle(object item, DependencyObject container)
    {
        if (item is SampleRun)
        {
            var sampleRun = item as SampleRun;
 
            switch (sampleRun.BlockType)
            {
                case BlockType.NormalBlock:
                    return NormalBlockStyle;
                case BlockType.CalibrationBlock:
                    return CalibrationBlockStyle;
            }
        }
 
        return null;
    }
 
    public Style NormalBlockStyle { get; set; }
 
    public Style CalibrationBlockStyle { get; set; }
}

I have also created the necessary styles in my view XAML:-

<GridStyleSelectors:BlockTypeStyleSelector x:Key="blockTypeStyle">
    <GridStyleSelectors:BlockTypeStyleSelector.NormalBlockStyle>
        <Style TargetType="telerik:GridViewCell">
            <Setter Property="Background" Value="White"/>
        </Style>
    </GridStyleSelectors:BlockTypeStyleSelector.NormalBlockStyle>
    <GridStyleSelectors:BlockTypeStyleSelector.CalibrationBlockStyle>
        <Style TargetType="telerik:GridViewCell">
            <Setter Property="Background" Value="PaleGoldenrod"/>
        </Style>
    </GridStyleSelectors:BlockTypeStyleSelector.CalibrationBlockStyle>
</GridStyleSelectors:BlockTypeStyleSelector>

The problem is, I'm programmatically creating the RadGridView columns in my view model. I can't simply assign an instance of my custom style selector to the column's CellStyleSelector property as there is nothing linking that instance to the styles in the XAML. Am I going about this the wrong way?

Maya
Telerik team
 answered on 08 Nov 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?