Telerik Forums
UI for WPF Forum
4 answers
705 views
Hi,

I have an application in which we haven't defined width and height for the windows or controls, instead we used Auto and * mostly for control size. To make the screen design fluid and support multiple display sizes.

I am facing an issue in showing a horizontal scroll bar for my RadGridView which is placed inside panel with no width and height defined.  I have defined Auto and * as the Column's width in gridview. 

My requirement is that a scroll bar should appear when the content of the grid take more space than the space available on the screen. But currently the content is clipped and no scrollbar appears (see screenshot attached).

The code I am using is:

<Grid x:Name="LayoutRoot">
    <telerik:RadExpander IsExpanded="True">
        <DockPanel>
            <telerik:RadDataPager DockPanel.Dock="Bottom"/>
            <telerik:RadGridView x:Name="billDataGrid" AutoGenerateColumns="False">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn Header="Ship To Bill To ID" Width="Auto" TextWrapping="Wrap" DataMemberBinding="{Binding BillToID}"/>
                    <telerik:GridViewDataColumn Header="Ship To ID" Width="Auto" TextWrapping="Wrap" DataMemberBinding="{Binding ShipToID}"/>
                    <telerik:GridViewDataColumn Header="Bill TO ID" Width="Auto" TextWrapping="Wrap" DataMemberBinding="{Binding ID}"/>
                    <telerik:GridViewDataColumn Header="Bill To Name" Width="Auto" TextWrapping="Wrap" DataMemberBinding="{Binding Name}"/>
                    <telerik:GridViewDataColumn Header="Bill To Address1" Width="Auto" TextWrapping="Wrap" DataMemberBinding="{Binding Address1}"/>
                    <telerik:GridViewDataColumn Header="Bill To Address2" Width="Auto" TextWrapping="Wrap" DataMemberBinding="{Binding Address2}"/>
                    <telerik:GridViewDataColumn Header="Bill To Address3" Width="Auto" TextWrapping="Wrap" DataMemberBinding="{Binding Address3}"/>
                    <telerik:GridViewDataColumn Header="Bill To Address4" Width="Auto" TextWrapping="Wrap" DataMemberBinding="{Binding Address4}"/>
                    <telerik:GridViewDataColumn Header="Bill To Address5" Width="Auto" TextWrapping="Wrap" DataMemberBinding="{Binding Address5}"/>
                    <telerik:GridViewDataColumn Header="Bill To Address6" Width="Auto" TextWrapping="Wrap" DataMemberBinding="{Binding Address6}"/>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
        </DockPanel>
    </telerik:RadExpander>
</Grid>


Please help me getting a scroll bar.
Thanks.
Dipti
Top achievements
Rank 1
 answered on 26 Mar 2014
2 answers
180 views
Hello Telerik team
Let’s say I want to do a mail merge using your awesome WPF RadRichTextBox, but as you know, a regular mail merge will include data coming from a database.
i have search, and search your documentation and forum,  but the provided information is very vague , even considering that most users will use the mail merge feature with data coming from a database.
And assume i have an Observable Collection (or BindableCollection for that matter) on the view model 'public ObservableCollection MyCollection"
Considering all your dataProviders and such (yes I also read about that) , how i can read data from my database into the radTextBox so i can do mail merge
The data is served by Entity Framework 6, Unit of work, Cliburn Micro and all of that, which actually does not matter because the important thing is the Observable Collection has the data i want to be bound to the telerik RadRichTextBox

Regards
Oscar
Top achievements
Rank 1
 answered on 25 Mar 2014
4 answers
199 views
I've got a RadListBox, and each item in it has a ToggleButton that opens a Popup that's defined in each of the list box items; so the Popup isn't shared between the items.  These Popups contain controls for data entry like textboxes, checkboxes, etc.  When the user clicks and drags their mouse within the Popup, the drag operation for the containing RadListBoxItem starts.  This can happen in the background of the popup or when trying to select some text within some other control in the Popup, like a TextBox.

I'd like to completely stop the drag operation from ever starting when I've got this Popup open.

What's the best way to accomplish this?
Nathan
Top achievements
Rank 1
 answered on 25 Mar 2014
2 answers
164 views
Hi,

I have a Rich Text Box with tracking changes enabled which contains a single table from a XAMLDataProvider. When adjusting the column/row widths using the thumbs in the UI i get a confirmation dialog saying "This action will be marked as changed. Do you wish to continue?".

Is there any way to disable this warning?

Many thanks,
Chris
Chris
Top achievements
Rank 1
 answered on 25 Mar 2014
1 answer
122 views
Hi,

From what have seen it's easy to apply this kind of filter to a RadGridView (Country and Capital are the columns):
Country.Contains("France") AND (Capital.Contains("Paris") OR Capital.Contains("London")) -> this will give us 1 row (France, Paris)

What about if I want to do:
Country.Contains("France") OR (Capital.Contains("Paris") OR Capital.Contains("London")) -> so I would get 2 row (France, Paris; England, London)

I read the below pages but I couldn't find a solution for this. Can I do it in some how?
http://www.telerik.com/help/wpf/radgridview-filtering-icolumn-filter-descriptors.html
http://www.telerik.com/help/wpf/gridview-filtering-programmatic.html

Thanks
Dimitrina
Telerik team
 answered on 25 Mar 2014
4 answers
488 views
I'm using an MVVM approach to an application.  My Window has a textbox, a button, and a grid.  When i click the button, i would like it to filter the grid based on the text inputted in the textbox.  I realize the grid has built in filtering, but its more than likely too complicated for our end users.

    <Grid> 
        <Grid.DataContext> 
            <Binding Source="{StaticResource MyDataContext}" Mode="OneWay"  /> 
        </Grid.DataContext> 
            <telerik:RadGridView  Margin="12,55,12,58" AutoGenerateColumns="True"    Name="RadGridView1" > 
              
            <telerik:RadGridView.ItemsSource> 
                <Binding Path="Records" Mode="TwoWay" /> 
            </telerik:RadGridView.ItemsSource>      
        </telerik:RadGridView> 
        <TextBox Height="23" HorizontalAlignment="Left" Margin="16,14,0,0" Text="{Binding SearchText}" Name="TextBox1" VerticalAlignment="Top" Width="120" /> 
        <Button Height="23" HorizontalAlignment="Right" Margin="0,14,61,0" Command="{Binding SearchCommand}" Name="Button1" VerticalAlignment="Top" Width="75">Button</Button> 
    </Grid> 

Is there any way to expose the FilterDescriptors Collection via  a binding property so i can add to it and apply the filter, since i don't have access to RadGridView1.FilterDescriptors in my code? This would be similar to how the textbox exposes it's text property.

Is there a way to expose the ColumnCollection or SortDescriptors?
Saykor
Top achievements
Rank 2
 answered on 25 Mar 2014
1 answer
129 views
Hello, I'm binding 2 TreeView controls to one source, and only 1 TreeView has data, the other is empty.
Here's my code.

radTreeview1.ItemsSource = MyClass.Children;
radTreeview2.ItemsSource = MyClass.Children;

radTreeview1 is blank. If I comment out radTreeview2, radTreeview1 displays with data, so it looks like the last item to bind will work.

Can I not use the same class to bind to 2 different controls?

Thanks,
Scott


Boris
Telerik team
 answered on 25 Mar 2014
2 answers
96 views
Hi!

Snapshots from Snagit, Adobe and other softwares does not work.
Picture does not show up.

As well available as a Jing (.swf) file:

Issue-with-pasting-snapshot-from-acrobat.swf
https://skydrive.live.com/redir?resid=18C7014863ADA2A9!554&authkey=!ANaslUjBUZIPeG8

Is there a fix for this problem?

Thanks/Anders
Anders
Top achievements
Rank 1
 answered on 25 Mar 2014
3 answers
96 views
I am generating 2 to 4 area series dynamically by referring below link from telerik documentation:

http://www.telerik.com/help/wpf/radchartview-features-chartseriesprovider.html

But these dynamic area series are showing default colors.

Is there a property I could use to control the color of dynamically generated Area series? My application is using MVVM pattern. 
Boris
Telerik team
 answered on 25 Mar 2014
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?