Telerik Forums
UI for WPF Forum
2 answers
94 views
Hi,

I am trying to embed a DataForm inside the LargeContent section of RadFluidContentControl. Entire user control is databound to an ObservableCollection of Address object, and Tile view shows the address objects properly. When I maximize one, RadDataForm is also shown properly.

My question is, how can I bind the DataForm to that tile's address object?

Can anybody help me with a simple example project? (VB, if possible please...)

Thanks,
Ahmet
Top achievements
Rank 1
 answered on 27 Feb 2012
2 answers
96 views
Hi,

Is it possible to drag and drop a TileViewItem to another control? Could you please post a sample wpf application?

I have been trying to implement this without any luck so far.

Thanks.
Ahmet
Top achievements
Rank 1
 answered on 27 Feb 2012
2 answers
147 views
Hi, I'd like to keep the GridView in a continuous insert mode when the currently inserted row is valid and the user presses the Enter key.

Scenario:
A new row is being inserted into the GridView and the user presses the Enter key.  The inserted row's data is valid

Observed Behavior:
The GridView commits the edit and focus then is moved to the next focusable control on the GridView's parent user control.

Desired Behavior:
After the row is commited, I'd like the GridView to re-enter insert mode and preselect (set focus to) the first cell.  In this way, a continuous data-entry mode can be provided.

How can I accomplish this?  Thanks!
Calvin
Top achievements
Rank 2
 answered on 27 Feb 2012
4 answers
169 views
Hi

How can I protect a ReadOnly Ranges from being removed via the UI?
It's impossible to remove something inside the range itself
via the UI - that's nice.
But when for example selecting the whole document's content (Ctrl+A)
and removing it (DEL) the readonly ranges are also removed.
Generally anytime when the ROR is contained inside a selection and the
edges of the selection aren't part of the ROR, it can be removed.

Is there a way to supress it?
Can I protect parts of a document against editing/removal?


Greetings,
Chris
Iva Toteva
Telerik team
 answered on 27 Feb 2012
2 answers
610 views
Question 1: How do I make the WPF PDFViewer toolbar show?

I currently have the following xaml:

<Grid  x:Name="LayoutRoot" DataContext="{StaticResource DataContext}">
    <telerik:RadPdfViewer x:Name="pdfViewer" DocumentSource="A10000292S_Notice.pdf" />
</Grid>

This xaml is in a System.Windows.Window.

Question 2: There is a "DocumentSource" property that I am successfully using, but what is the "Document" property for?

Thanks in advance.
Kellie Harrisson
Sierra Systems, Edmonton
Kammen
Telerik team
 answered on 27 Feb 2012
1 answer
85 views
If I simply add a gridview and leave all the default properties, then try and populate it with this simple code:

private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            List<string> strings = new List<string>();
            radGridView1.ItemsSource = strings;
 
            strings.Add("a");
            strings.Add("b");
            strings.Add("c");
 
            radGridView1.Items.Refresh();
        }

The rows do not appear until I click a column header to re-order that column. As Items.Refresh() does not work what can I call to make the rows appear?

I know using an ObservableCollection rather than list<string> will work, but I can't do that in this situation.

thanks



Pavel Pavlov
Telerik team
 answered on 27 Feb 2012
3 answers
96 views
Following the demo on GridView settings, I'm saving the declared column visibility when the user control loads. The user can then toggle which columns in the grid they want to see (and export). If they have gotten to a point where they want to reset all the columns back to the default (not all columns are visible by default), I have a link to reset the visibility, by loading the initial saved settings. This works the first time they click on it.

Let's say they then change visibility again and again want to reset, it doesn't work. I'm guessing it's because the persistence manager thinks it's already loaded? How do I get it to re-load? I could do it the manual way, but I want to use persistence because I anticipate them wanting to keep these settings between sessions, so I might eventually persist to a file.
Rayne
Top achievements
Rank 1
 answered on 27 Feb 2012
3 answers
158 views
Is there a way to have scheduleView timeline group day day, week, month, quarter in a way that the user can specify the grouping they want.  Attached is a proposed mockup of what i'm trying to accomplish.
Yana
Telerik team
 answered on 27 Feb 2012
1 answer
51 views

Hi,

I have two styling issues wtih the GridView.  The first is I am trying to by default set a column style to not display the Filter for a column by default (we only have a few columns in each grid that are filterable).  My code is as follows:

<Style  TargetType="telerik:GridViewColumn" >
        <Setter Property="IsFilterable" Value="False"/>
    </Style>

Second, I have a cell style set as well but I now when I set the Background brush for a column it has no affect.  What am I doing wrong?

<Style TargetType="telerik:GridViewCell" >
       <Setter Property="Template">
           <Setter.Value>
               <ControlTemplate TargetType="{x:Type telerik:GridViewCell}">
                   <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                       <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                   </Border>
               </ControlTemplate>
           </Setter.Value>
       </Setter>
       <Setter Property="BorderBrush" Value="#FFEFEFEF" />
       <Setter Property="BorderThickness" Value="0,0,1,0" />
       <Setter Property="Margin" Value="2,0,0,0"/>
       <Setter Property="VerticalAlignment" Value="Center"/>
       <Setter Property="HorizontalAlignment" Value="Stretch"/>
        
   </Style>

In the gridview I am setting the background as such:

Any help would be greatly appreciated!
David A.

<telerik:GridViewDataColumn DataMemberBinding="{Binding HoursCompleted}" Header="Hours" UniqueName="HoursCompleted" DataFormatString=" {0:n2}" HeaderTextAlignment="Center" Width="60"  Background="#33FDA500"/>






Vanya Pavlova
Telerik team
 answered on 27 Feb 2012
5 answers
394 views
Hi,

I have this XAML:

<telerik1:RadSplitButton 
    Content="Some Label"
    IsEnabled="{Binding SomeProperty}"
    Command="{Binding MyCommand}"
....

Where MyCommand is a DelegateCommand class where the CanExecute method returns True. The problem is that the IsEnabled in the XAML is ignored and the button is always enabled even if SomeProperty's value is false.

This is unexpected because it does not happen with other controls like the standard Button. I was going to post a bug report but I am not sure if this is by design.

Jose
Zarko
Telerik team
 answered on 27 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?