Telerik Forums
UI for WPF Forum
7 answers
1.0K+ views
In my grid I have a custom collection filter that I created using this blog post: http://blogs.telerik.com/xamlteam/posts/11-12-05/filtering-collection-properties-with-radgridview-for-silverlight-and-wpf.aspx .

I'm currently adding persistence to my grid and running into issues saving/restoring my custom filter. It seems that I need to implement IColumnFilterDescriptor to properly reflect UI changes when I set my filter programmatically upon restoring a persisted grid. However (as in the above demo) my custom filter descriptor only implements IFilterDescriptor. Could you provide some information on how I can implement my own filter descriptor and also be able to persist it?

Thanks.
Rossen Hristov
Telerik team
 answered on 19 Nov 2012
0 answers
70 views
Hi,
As you know when we add a FilterDescriptors to a RadDataFilter it select IsEqualTo as default item for search.
i want to always show Contains as a default when select a string variable.
How i can do it?

Best Regards.
Mojtaba Madadkhani
Top achievements
Rank 1
 asked on 17 Nov 2012
1 answer
176 views
Hello,
Please help me with this error. In my application, i put a RadGridView inside a Scrollviewer as showed the code block below. When i run this application each column becomes so wide, their widths are 10000px, equal to their MaxWidth althrougth i do not set any columns' MaxWidth:
<Window x:Class="GridViewTest.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="350" Width="525">
    <ScrollViewer telerik:StyleManager.Theme="Metro" HorizontalScrollBarVisibility="Auto">
        <telerik:RadGridView AutoGenerateColumns="False" ShowGroupPanel="False" ShowInsertRow="False" IsReadOnly="True" RowIndicatorVisibility="Collapsed" Name="grdItems">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Header1" Width="50*" MinWidth="50" />
                <telerik:GridViewDataColumn Header="Header2" Width="25*" MinWidth="50" TextAlignment="Right" />
                <telerik:GridViewDataColumn Header="Header3" Width="25*" MinWidth="50" />
            </telerik:RadGridView.Columns>           
        </telerik:RadGridView>       
    </ScrollViewer>    
</Window>

What i really want is that the horizontal scrollbar apprears when the main window is not maximize and disappears when the main window is maximize.
Stephan
Top achievements
Rank 1
 answered on 17 Nov 2012
1 answer
248 views
How can i determined?
For example: When i change layout mode flow to paged the distance changing the document ruler and the raddocument.
I would like copy drag from listbox to document some text.Quote of the mouse position, and set the caret position, when drop completed.
When layout mode flow, allright, but paged mode not good.
Petya
Telerik team
 answered on 16 Nov 2012
1 answer
156 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
255 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
102 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
181 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
250 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
401 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
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?