Telerik Forums
UI for WPF Forum
3 answers
176 views
Hello,

I have a RadTabControl. Inside every tab there is a UserControl with RadGridView. I want to add a RadDropDownButton with Column Chooser for the GridViews. Like this: http://docs.telerik.com/devtools/wpf/controls/radgridview/how-to/show-hide-columns-outside-of-the-radgridview.html I tried placing it in RadGridView.ControlPanelItems and everything works fine, but it takes a whole row for just one control. Can I put it in RadTabControl.AdditionalContent? How should I bind the Columns property right?
Pavel R. Pavlov
Telerik team
 answered on 09 Mar 2015
9 answers
390 views
I have a RadGridView with SelectionMode="Extended". The bound items have an IsEnabled property, and the rows are enabled or disabled using this property by modifying the style as follows:

    <uxt:UxtWindow.Resources>
        <Style TargetType="{x:Type telerik:GridViewRow}" BasedOn="{StaticResource GridViewRowStyle}">
            <Setter Property="IsEnabled" Value="{Binding Path=IsEnabled}"/>
        </Style>
    </uxt:UxtWindow.Resources>

This is fine in so far as the disabled rows are correctly displayed greyed-out, if I click on a disabled row it is not selected and if I click on a disabled row with Control held down it is also not selected. The problem is that if I click on a row above a disabled row, hold down Shift and then click on a row below the disabled row, all the rows between the two clicked-on rows are selected including the disabled row.

Is this a bug and is there anything I can do about it?
Maya
Telerik team
 answered on 09 Mar 2015
5 answers
702 views
How to det selected row Detail i.e i want perform row selected event in which user select row that selected row detail display in textbox so how to get details pls help me

pls help me .............


plsssssssssssssssssssssssssssssssssssss..........
 

as early as possible...
Yoan
Telerik team
 answered on 09 Mar 2015
1 answer
99 views
Hello!

Is there a way to set cell B invalid in cell-A-validation?

For example:
cell A - customer-ID
cell B - country

1. User sets the country (B) to Germany
2. User changes the customer-ID (A) <- this customer-ID does not allow Germany
3. Cell B should now be set invalid

kind regards
Dimitrina
Telerik team
 answered on 09 Mar 2015
1 answer
377 views
Hey all.

I was just playing around with the new Office inspired templates (they look great !), and have a query.
When I set the Windows Theme to high contrast, the Telerik application does not follow suit, which is an issue where accessibility is concerned.

I've attached a screenshot to illustrate my point.
Evgenia
Telerik team
 answered on 09 Mar 2015
3 answers
1.9K+ views
Hi,

I'm having trouble trying to remove a treeview item programmatically.

I add tree items roughly like so:
RadTreeViewItem item = new RadTreeViewItem();
item.Header = "Header 1";
item.Tag = myProperty;
 
treeProducts.Add(item);


I then try to use the following method to remove the desired TreeItem:
//Get Selected Tree Item
RadTreeViewItem treeViewItem = (RadTreeViewItem)treeProducts.SelectedItem;
//Remove TreeView Item
this.treeProducts.Items.Remove(treeViewItem);


For some reason it will only remove "TOP LEVEL" tree items and not items that are child nodes.

Do you know how I can programmatically remove a TreeItem that isn't a top level node?

I can see that it has something to do with the RadTreeView Items Collection, where it only lists all top level nodes.

Thank you for time,

Rob
Karthi
Top achievements
Rank 1
 answered on 07 Mar 2015
9 answers
316 views
Is there a "master" Property I can set to disable all coloring from Telerik ?

I want the basic Windows' current Theme to be displayed...

Thanks !
Louis
Top achievements
Rank 1
 answered on 06 Mar 2015
6 answers
337 views
Hello,

Is there a way to detect if a cell is set readonly by the IsReadOnlyBinding property of the parent column?

I need it for two reasons:

1. I want do display text inside _all_ readonly cells in Italics. The preferred way to do this would be some Trigger in the ControlTemplate of the GridViewCell (I have created my own cell template anyway).

2. I have to check it before entering edit mode. I manually set the IsInEditMode property of the cell on MouseUp, not on MouseDown (as default), as MouseDown should only select the cell.

Alex
Ivan Ivanov
Telerik team
 answered on 06 Mar 2015
3 answers
91 views
Hi,

I'm using a drag drop behavior and in the DragDropCompleted operation I would like to highlight (select) the appointments that I just dragged, is this possible?

Thank's
Alain
Nasko
Telerik team
 answered on 06 Mar 2015
4 answers
226 views
Hi,

I am trying to use RowStyleSelector with a RadGridView having an ItemsSource of type ObservableCollection<T>. The RowStyleSelector looks at the value of a property of T to set the background color of the corresponding row.

My problem is that the items may be altered outside of the grid. The new values are immediately picked up by the cells of the grid (because of the ObservableCollection and because T implements INotifyPropertyChanged), but the row style is not updated accordingly. However, if I sort the grid by clicking on one of the columns, the row styles are updated.

How can I ensure that the style is updated as soon as the values of the cells are updated?

In case it matters, this is how the RadGridView is declared (stripped down a bit):
<telerik:RadGridView Name="DocumentGrid" SelectionMode="Extended" ItemsSource="{Binding Path=Documents}" AutoGenerateColumns="False" IsReadOnly="True" RowStyleSelector="{StaticResource DocumentStyleSelector}">

This is the RowStyleSelector (stripped down a bit):
internal class DocumentStyleSelector : StyleSelector
{
    public Style DocumentModifiedStyle { get; set; }
 
    public override Style SelectStyle(object item, DependencyObject container)
    {
        var document = item as Document;
        if (document != null && document.EntityState == EntityState.Modified)
        {
            return DocumentModifiedStyle;
        }
        return null;
    }
}

And this is the Style (stripped down a b
<layout:DocumentStyleSelector x:Key="DocumentStyleSelector">
    <layout:DocumentStyleSelector.DocumentModifiedStyle>
        <Style TargetType="telerik:GridViewRow">
            <Setter Property="Background" Value="DarkGray" />
        </Style>
    </layout:DocumentStyleSelector.DocumentModifiedStyle>
</layout:DocumentStyleSelector>


Best regards
Linus
Dimitrina
Telerik team
 answered on 06 Mar 2015
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?