Telerik Forums
UI for WPF Forum
1 answer
102 views
I'm trying to figure out some way to obtain a layout similar to the following:


| item0                    |
| item1                    |
| item2                    |
| i3 || i4 || i5 || i6 || i7 |

That is, multiple tiles that are maximized along the top 3 rows, but the bottom row contains minimized version of the rest of the items. The idea is also to have this work such that the number of row available corresponds to the available height of the control.

Is there anyway to accomplish this with the RadTileView?
Pavel R. Pavlov
Telerik team
 answered on 16 Nov 2012
1 answer
221 views
Is there a way to make the default RadDocking status to Tabbed document?
When we right click the docking pane, there are "Floating, Dockable, Tabbed Document, Auto hide, Hide" options. But I don't knew which property does this change? How to make it to "Tabbed Document" by default?


Thanks.
Boyan
Telerik team
 answered on 16 Nov 2012
5 answers
75 views
I am grabbing an RTF document via a web service.  That result is a string (the sRTF variable).  Code to import this into the editor is as follows:

// Convert to a byte array with the proper encoding
byte[] byteArray = Encoding.ASCII.GetBytes(sRTF);
// Then import into the document
IDocumentFormatProvider formatProvider = DocumentFormatProvidersManager.GetProviderByExtension(".rtf");
editor.Document = formatProvider.Import(byteArray);


Although this works, and I see my document show up correctly, about a half second later the application blows up with the attached error.  I included this as an image to show call stack and other info.  Any ideas anyone?
Petya
Telerik team
 answered on 16 Nov 2012
0 answers
138 views
Hi,

I have a gridview in my View which displays the vertical scrollbar when required. But the grid is not scrolling on Up/Down arrow button click of the scrollbar niether when i click on the grid and scroll using mouse wheel. I have used a custom control in my gridview column's cell template.Hers is my code in XAML

<framework:RTPOGridView x:Name="NotesGrid" MinWidth="600" HorizontalAlignment="Stretch"  ItemsSource="{Binding Notes}" AutoGenerateColumns="False" Height="350"
                                                AlternateRowBackground="#E2F0FA"
                                  RowDetailsVisibilityMode="Visible" RowHeight="0" CanUserFreezeColumns="False" BorderThickness="0"
                                               RowIndicatorVisibility="Collapsed" ShowColumnHeaders="False"
                                    ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
                            <framework:RTPOGridView.Columns>
                                <telerik:GridViewDataColumn Width="*">
                                    <telerik:GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <framework:DashboardNotesGridRow  Note="{Binding Note}" RectangleBackground="{Binding RectangleColor}"
                                                                     NoteType="{Binding RectangleContent}" LoginUser="{Binding Name}" NoteDateTime="{Binding NoteDateTime, StringFormat='MM/dd/yyyy hh:mm'}"
                                                                     />
                                        </DataTemplate>
                                    </telerik:GridViewColumn.CellTemplate>
                                </telerik:GridViewDataColumn>
                            </framework:RTPOGridView.Columns>
                        </framework:RTPOGridView>

 Please help.
Shehnaz
Top achievements
Rank 1
 asked on 16 Nov 2012
9 answers
204 views
In multiple projects, I've had RadPanes set to only be shown when a button is clicks and they show as floating RadPanes. So in my XAML, I have their IsHidden property set to True so that they aren't shown until a button is clicked. The problem tough is that during the form load, you can see a "flash" of the RadPane(s) closing themselves. It's only on screen for maybe 1 second but it's annoying especially when there are multiple RadPanes. How can I prevent this?

For example code, simple put the code below in a RadDocking container and watch your application close in the middle of the screen during startup. You'll see the RadPane closing.

<telerik:RadSplitContainer InitialPosition="FloatingDockable"                                 
        telerik:RadDocking.FloatingLocation="450, 250"
        telerik:RadDocking.FloatingSize="300, 220" x:Name="uxWindowRadSplitContainer" >
    <telerik:RadPaneGroup>
        <telerik:RadPane Header="Test" CanDockInDocumentHost="False" IsHidden="True" x:Name="uxToolWindowRadPane">
            <TextBlock Text="Hi" />
        </telerik:RadPane>
    </telerik:RadPaneGroup>
</telerik:RadSplitContainer>
Boyan
Telerik team
 answered on 16 Nov 2012
3 answers
318 views
Hello,

My development team is currently evaluating the trial version of the RichTextBox to find out whether or not it will meet our current application requirements, one of which is pasting images.  Our users often take screenshots using an application called SnagIt and they need to be able to paste those screenshots into the editor.  

We are encountering some issues when pasting PNG images, but the behavior varies depending on the source of the image.  If we use Microsoft's Snipping Tool to take the screenshot, it pastes into the editor successfully.  However, if we use SnagIt, or even open an image in Microsoft Paint and then try to copy and paste it, the cursor in the textbox moves as if an image was pasted, but no image is displayed.  The area where the image should be is a white box.

We have done no customization of the RichTextBox or anything.  All I did was simply drag the control from the Visual Studio Toolbox onto the WPF canvas.

I have not seen any other posts where anyone has encountered this same issue.  I'm hoping someone has perhaps noticed this same issue before, or to bring it to the attention of the developers as a potential bug that needs to be fixed.  I've attached an image showing how the editor looks exhibiting successful pasting behavior and the unsuccessful behavior.

Thanks,

Frank
Robert
Top achievements
Rank 1
 answered on 16 Nov 2012
1 answer
121 views
Hi,

I upgraded my controls to WPF Q3 2012 (2012.3.1017.40) from 2012.1.215.40.
HtmlFormatProvider.Export is not working properly with TableCell with colspan. It was working before by not showing a width attribute in the style tag. Now it shows a width attribute, ignores manually set width and uses the width of smallest regular column.

I have tried traversing the RadDocument and setting the width manually to 530 px, it was ignored. I have also tried setting width on all table cells with colspan tag to null, it was ignored as well. 176.67px is the exact size of 1 column for me after document margins etc. Its a 4 column layout.

Below is an example of the first row in table. Previous Export is what it looked like. New Export is what it does now.

Previous Export (No Width tag in td with colspan tag)
<tr>
    <td style="border-left: 0px none #000000; border-top: 0px none #000000; border-right: 0px none #000000;
        border-bottom: 0px none #000000; padding: 5px 0px 5px 0px; vertical-align: top;"
        align="left" valign="top" colspan="3">
        Column 1-3
    </td>
    <td style="border-left: 0px none #000000; border-top: 0px none #000000; border-right: 0px none #000000;
        border-bottom: 0px none #000000; padding: 5px 0px 5px 0px; width: 176.666666666667px; vertical-align: top;"
        align="left" valign="top">
        Column 4
    </td>
</tr>

New Export (width tag in td with colspan)
<tr>
    <td style="border-left: 0px none #000000; border-top: 0px none #000000; border-right: 0px none #000000;
        border-bottom: 0px none #000000; padding: 5px 0px 5px 0px; width: 176.666666666667px;
        vertical-align: top;" align="left" valign="top" colspan="3">
        Column 1-3
    </td>
    <td style="border-left: 0px none #000000; border-top: 0px none #000000; border-right: 0px none #000000;
        border-bottom: 0px none #000000; padding: 5px 0px 5px 0px; width: 245px; vertical-align: top;"
        align="left" valign="top">
         Column 4
    </td>
</tr>

Any help is appreciated. Thanks.

Also noticed that new html export is very bulky with lots of additional styles and span tags on line breaks etc. It doesn't create any issues though.

Thanks,
Erol
Mihail
Telerik team
 answered on 16 Nov 2012
1 answer
90 views
hi,

when loading the RadScheduleView, the message "Please select a  view definition" shows up in the background until the first view is loaded. (it lasts about 1sec).

I would like to remove it entirely or at least translate it if possible. How could I achieve this with minimum effort (i.e.: is there a way to do this without having to replace the whole xaml for the control ?)

thanks,
Yana
Telerik team
 answered on 16 Nov 2012
1 answer
124 views
Hello,

i have a Gridview 

<telerik:RadGridView x:Name="MyGridView" Grid.Column="2" MinWidth="300" DockPanel.Dock="Right" HorizontalAlignment="Stretch" ItemsSource="{Binding Path=CurrentItems}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" IsReadOnly="True" AutoGenerateColumns="True" RowDetailsVisibilityMode="VisibleWhenSelected" teleriklocal:GridViewHeaderMenu.IsEnabled="True" RowIndicatorVisibility="Collapsed" AutoGeneratingColumn="MyGridView_AutoGeneratingColumn" EnableColumnVirtualization="True" EnableRowVirtualization="True" DistinctValuesLoading="MyGridView_DistinctValuesLoading">
    <telerik:RadGridView.RowStyle>
        <Style TargetType="telerik:GridViewRow">
            <Style.Triggers>        
                <DataTrigger Binding="{Binding Path=error,Converter={StaticResource ErrorConverter}}" Value="True">
                    <Setter Property="Foreground" Value="Red"></Setter>
                </DataTrigger>
            </Style.Triggers>
        </Style>                       
    </telerik:RadGridView.RowStyle>
</telerik:RadGridView>

ist fine, but my "error" alternative rows are not red, 
Now i added

<telerik:RadGridView.AlternativeRowStyle>
    <Style TargetType="telerik:GridViewRow">
        <Style.Triggers>       
            <DataTrigger Binding="{Binding Path=error,Converter={StaticResource ErrorConverter}}" Value="True">
                <Setter Property="Foreground" Value="Red"></Setter>
            </DataTrigger>
        </Style.Triggers>
    </Style>                      
</telerik:RadGridView.AlternativeRowStyle>

The rows are red, but now they have the same Background color as main rows. How can i set via trigger on alternativerowstyle ?


Ivan Ivanov
Telerik team
 answered on 16 Nov 2012
1 answer
104 views
I'm working on a view that is supposed to display a pie chart. The series ItemsSource is a RadObservableCollection<DataPoint> on our ViewModel. We always include the same four data points in this collection -- cash, check, credit, money order -- in a specified order, even if the values are zero. This collection is reconstructed every time our view is navigated to and the changes are always reflected on the pie.

In addition, we want each tender to have a specific color and a white stroke, so we have defined a style like so:

<telerik:PieSeries.SliceStyles>
    <Style TargetType="{x:Type Path}">
        <Setter Property="Fill" Value="{StaticResource BrushSecondaryGreen}" />
        <Setter Property="Stroke" Value="{StaticResource BrushInversePrimaryWhite}" />
        <Setter Property="StrokeThickness" Value="1" />
        <Setter Property="Visibility" Value="{Binding DepositSummary.Cash, Converter={StaticResource VisibleIfGreaterThanZero}}" />
    </Style>
    <Style TargetType="{x:Type Path}">
        <Setter Property="Fill" Value="{StaticResource BrushSecondaryOrange}" />
        <Setter Property="Stroke" Value="{StaticResource BrushInversePrimaryWhite}" />
        <Setter Property="StrokeThickness" Value="1" />
        <Setter Property="Visibility" Value="{Binding DepositSummary.Check, Converter={StaticResource VisibleIfGreaterThanZero}}" />
    </Style>
    <Style TargetType="{x:Type Path}">
        <Setter Property="Fill" Value="{StaticResource BrushSecondaryViolet}" />
        <Setter Property="Stroke" Value="{StaticResource BrushInversePrimaryWhite}" />
        <Setter Property="StrokeThickness" Value="1" />
        <Setter Property="Visibility" Value="{Binding DepositSummary.Credit, Converter={StaticResource VisibleIfGreaterThanZero}}" />
    </Style>
    <Style TargetType="{x:Type Path}">
        <Setter Property="Fill" Value="{StaticResource BrushSecondaryYellow}" />
        <Setter Property="Stroke" Value="{StaticResource BrushInversePrimaryWhite}" />
        <Setter Property="StrokeThickness" Value="1" />
        <Setter Property="Visibility" Value="{Binding DepositSummary.MoneyOrder, Converter={StaticResource VisibleIfGreaterThanZero}}" />
    </Style>
</telerik:PieSeries.SliceStyles>

The visibility is specified here so we don't see an extra white line sticking out from the center of the pie chart when one of the data points is zero. It worked great in testing -- hard-coding one of the slice styles to be collapsed when the corresponding data was zero got rid of the white line. However, it is not working with these converters. The converter only seems to fire the first time we visit our view, so all of the pie slices remain visible during later visits.

(See attached visual.)

We have also tried implementing this with DataTriggers instead of converters and did not have any luck.

At this point, I can only ask if you guys are aware of any issues with the way I have implemented this. Why might the converters used in the style only work once? I do nullify the collection (and DepositSummary object used for visibility) and rebuild it every time our view is navigated to, and those do have a property change notification. We are using Prism/MEF.

Thanks.
Petar Marchev
Telerik team
 answered on 16 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?