Telerik Forums
UI for WPF Forum
1 answer
951 views
I have a RadGridView and in this RadGridView I have the following column:

<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding Revoked}" AutoSelectOnEdit="True" Header="Revoked" UniqueName="Revoked" Width="Auto" IsReadOnly="False" FooterTextAlignment="Right" CellStyle="{StaticResource GridCellStyle}" />


I want to either enable/disable or set the read only flag on another two columns in the grid based on the checkbox column.

 
<telerik:GridViewDataColumn
     DataMemberBinding="{Binding RevokedBy}"
     Header="Revoked By"
     UniqueName="RevokedBy"
     Width="Auto"
     IsReadOnly="{Binding Revoked}"
     FooterTextAlignment="Right"
     CellStyle="{StaticResource GridCellStyle}" />
 
 <telerik:GridViewDataColumn
     DataMemberBinding="{Binding RevokedDateTime}"
     DataFormatString="dd/MM/yyyy HH:mm:ss"
     Header="Revoked Date Time"
     UniqueName="RevokedDateTime"
     Width="Auto"
     IsReadOnly="{Binding Revoked}"
     FooterTextAlignment="Right"
     CellStyle="{StaticResource GridCellStyle}">
    <telerik:GridViewDataColumn.CellEditTemplate>
        <DataTemplate>
            <WrapPanel Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="4">
                <telerik:RadDateTimePicker
                    Margin="0 5 5 5"
                    Width="250"
                    DisplayFormat="Short"                                    
                    InputMode="DatePicker"
                    DateSelectionMode="Day"
                    DateTimeWatermarkContent="Select Date"
                    MaxWidth="155"
                    MinWidth="155"
                    SelectedDate="{Binding RevokedDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  
                <telerik:RadMaskedDateTimeInput
                    Margin="5"
                    Culture="en-GB"
                    EmptyContent="Enter Time"
                    InputBehavior="Replace"
                    Mask="HH:mm:ss"
                    SelectionOnFocus="SelectAll"
                    TextMode="MaskedText"
                    Value="{Binding RevokedTime, Mode=TwoWay}"/>
            </WrapPanel>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellEditTemplate>
 </telerik:GridViewDataColumn>


So far I have tried binding the `IsReadOnly` and `IsEnabled` property to `Revoked` but this doesn't seem to work, and I can see that the `Revoked` property is being set and the `RaisePropertyChanged` event is recurring.

Any help would be much appreciated.

Further details of the code in the ViewModel

/// <summary>
/// The agreements.
/// </summary>
private ObservableCollection<NotificationAgreement> agreements;
 
/// <summary>
/// Gets or sets the agreements.
/// </summary>
public ObservableCollection<NotificationAgreement> Agreements
{
    get
    {
        return this.agreements ?? (this.agreements = new ObservableCollection<NotificationAgreement>());
    }
 
    set
    {
        this.agreements = value;
        this.RaisePropertyChanged(() => this.Agreements);
    }
}



And the NotificationAgreement class has the following property.

/// <summary>
/// Gets or sets a value indicating whether revoked.
/// </summary>
public bool Revoked
{
    get
    {
        return this.revoked;
    }
 
    set
    {
        this.revoked = value;
        this.RaisePropertyChanged(() => this.Revoked);
    }
}



Yoan
Telerik team
 answered on 23 Jul 2013
1 answer
187 views

Hi,

I am aware of annotation support of pdf viewer and has gone through this link. But these annotations give us destination that are of type location i.e. the destination has page number and offset.
In pdf writer, when we create a destination and we give a name. And I want to navigate based on the named text.

We are using pdf viewer for viewing help manual and page number will not work as any update in the manual that alters the page no will need update of the code and rebuilding the software. So we need bookmark kind of support where string can be used to navigate instead of page number.

This is an urgent requirement.

Thanks
Ritwick

Alexander
Telerik team
 answered on 23 Jul 2013
3 answers
272 views

Hi,
We are using Telerik RadDocking control within our main framework window. The RadDocking contains two RadSplitContainers and each container has a RadPaneGroup with one Rad panel to Display Data. The Application is created using Prism with MEF Container using MVVM design Pattern.

Description:

The left Container is Docked Permanently so that it cannon float/Auto hide/Close. This container is set to a minimum Width and Height. As there is no Maximum Width this container is able to fill in available space in the Main Framework Window (e.g. when the panel in the right container is undocked to float the left container takes all the framework window).
The Right Container is able to Float/Auto Hide/Close. This Container is also set to a minimum Width and Height.

Issue 1:

with the Main framework window on full screen if the right Container is moved to the extreme right to its minimum Width and the main framework window is restored/resized the containers doesn't get resize to the main framework window.  This causes the Right docked container and some portion of left docked container to be dragged out of the main framework window and is not visible. To make the right container visible either i need to resize the main framework window to a bigger size or maximise the Main framework window to full screen. The screenshot and an example code snippet is given below. 

Is there a way to resize the container according to the main framework windows size?  so that both the containers with panel are visible in any scenario whether right docked container is moved to extreme right to its minimum width or left docked container is moved to extreme left to it minimum width.
I have tried the proportional stack panel with relative width set to both containers but it gives the same issue as above. 


Thanks,

<telerik:RadDocking x:Name="SiteHomeDockingControl" Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="1" HasDocumentHost="False" 
                    PreviewShowCompass="SiteHomeDockingControl_PreviewShowCompass"  >
  
                <telerik:RadSplitContainer telerik:RadDocking.SerializationTag="RadSplitContainerSites" BorderThickness="0"  
                MinWidth="305" MinHeight="305"  telerik:DockingPanel.InitialSize="1000,500">
                    <telerik:RadPaneGroup x:Name="RadPaneGroupSites" telerik:RadDocking.SerializationTag="RadPaneGroupSites" BorderThickness="0">
                        <telerik:RadPane PaneHeaderVisibility="Collapsed" CanUserClose="False" CanFloat="False" CanUserPin="False" 
                                             telerik:RadDocking.SerializationTag="RadPaneSites" >
                            <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
                                <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="35,15,15,15">
                                <TextBlock Text="Just an example Docked Pane 1."/>
                                </Grid>
                            </ScrollViewer>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
  
                <telerik:RadSplitContainer InitialPosition="DockedRight" telerik:RadDocking.SerializationTag="RadSplitContainerPlantHierarchies"
                MinWidth="305" MinHeight="305" telerik:DockingPanel.InitialSize="400,500">
                    <telerik:RadPaneGroup telerik:RadDocking.SerializationTag="RadPaneGroupPlantHierarchies">
                        <telerik:RadPane telerik:RadDocking.SerializationTag="RadPanePlantHierarchies" Header="Plant Hierarchies"
                        IsHidden="{Binding DataContext.HidePlantHierarchies, ElementName=SiteHomeDockingControl, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
                            <Grid>
                            <TextBlock Text="Just an example Docked Pane 2."/>
                            </Grid>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
  
</telerik:RadDocking>
Vladi
Telerik team
 answered on 23 Jul 2013
1 answer
94 views
Hi,

We have a WPF RadTreeListView in one of our RichText box we are able to succesfully export this to XAML and save to DB.
But when we import the xaml from DB to show it back as a document we are getting the following error:

'No matching constructor found on type 'Telerik.Windows.Controls.TreeListView.TreeListViewKeyboardCommandProvider'. You can use the Arguments or FactoryMethod directives to construct this type.'

Please help us as this is very critical for our project.
Dimitrina
Telerik team
 answered on 23 Jul 2013
1 answer
293 views
Hi Support,

I am trying to bind datatable to spreadsheet, but it does not show records into the spreadsheet control. Following is the source code:

DataTable result = somemethod();
        excelsheet.DataContext = result;

Am I missing something. Please let me know.

Thanks.
Andrew
Telerik team
 answered on 23 Jul 2013
2 answers
171 views
Hello,

I observe strange bahavior with hyperlink when you press "Backspace" button. More detail.
Open RadRichTextBox sample in "Demos - RadControls for WPF". In opened document place caret in place after last hyperlink letter (for example, after http://www.telerik.com). Press "Backspace" button. Instead delete the last letter, disappears hyperlink underline. If you press "Backspace" button again - last hyperlink letter will be deleted.

Is it possible to realize standard behavior (delete last letter after first "Backspace" button press)?
Andrey
Top achievements
Rank 1
 answered on 23 Jul 2013
3 answers
273 views
HI,

I would like to know if there is a way to change the color of an event's background when it is highlighted/hovered over and when it is selected, preferably without having to resort to creating a ControlTemplate.  Right now, I know how to change every other property of the event within a intrinsic style for EventContainer, and using style triggers i can change these properties depending on the state of the event.  However, the Background property doesn't appear to work when using triggers.  An example:  Here is my EventContainer Style:

<Style TargetType="g:EventContainer">
    <Setter Property="Background" Value="Green"/>
    <Setter Property="Foreground" Value="White"/>
    <Setter Property="BorderThickness" Value="0"/>
    <Style.Triggers>
        <Trigger Property="IsMouseOver" Value="True">
            <Setter Property="Foreground" Value="Red"/>
            <Setter Property="BorderThickness" Value="0"/>
        </Trigger>
        <Trigger Property="IsFocused" Value="True">
            <Setter Property="Foreground" Value="Red"/>
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="Background" Value="Blue"/>
        </Trigger>
    </Style.Triggers>
</Style>

When the event is hovered over, the title text of the event correctly changes from white to red, as defined in the style, but when the event is selected, the background does not change from green to blue.  As I stated, I would like to avoid using ControlTemplate if it is possible, as ControlTemplates require a lot of extra useless markup, and a knowledge of the underlying infrastructure, which is impossible to get for the Telerik libraries.  
Ventzi
Telerik team
 answered on 23 Jul 2013
5 answers
388 views
I have panes that are docked, and for example have a size of 640 * 480 while docked. When I move the pane outside the application the floating pane now gets a different size, 220 * 300.

I want to keep the size equal, the floating pane should keep the size of the docked pane. I tried setting RadDocking.SetFloatingSize on the splitcontainer, but that does not help.

How can I solve this?
Yana
Telerik team
 answered on 23 Jul 2013
1 answer
75 views
I am attempting a simple example. I have a class with appropriate method to return a list of user objects. I've declaratively bound it to the autocompletebox. When I debug it, the select method does get called, but does not display anything?

I used the same code on some other machine, it works. 

Does this need 4.5? as one of the box has it (where it works) and other does not.

Alek
Telerik team
 answered on 23 Jul 2013
0 answers
53 views


Hello,

I have resolution problem in my application designed in MVVM pattern.When I reduce the resolution of screen,scroll apears but  some part of application hides inside scroll .The behaviour should be like a scroll bar should appear and visit shuould not hide.
How can I avoid hiding of screen.

Thanx in advance

Sanket
Top achievements
Rank 1
 asked on 23 Jul 2013
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
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?