Telerik Forums
UI for WPF Forum
11 answers
703 views
I am trying to get the header row of my group to stretch to the full grid width.

I had a look at the following online documentation: http://www.telerik.com/help/wpf/gridview-styling-group-row.html and as a result I tried the following. Unfortunately it doesn't seem to work correctly, what do I need to do get it to stretch properly?

<telerik:RadGridView.Resources>
    <Style TargetType="telerik:GridViewGroupRow">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    </Style>
    <Style TargetType="telerik:GridViewHeaderRow">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    </Style>
    <Style TargetType="telerik:GridViewGroupPanel">
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    </Style>
</telerik:RadGridView.Resources>
Yoan
Telerik team
 answered on 28 Mar 2013
1 answer
141 views

The clear button is clearing the input field in the PropertyGrid but the value on the model is never set.

<DataTemplate x:Key="RequiredCondition">
      <telerik:RadComboBox ItemsSource="{Binding Path=DataContext.Conditions, RelativeSource={RelativeSource FindAncestor,
                                             AncestorType={x:Type views:PropertyEditorView}}, Mode=OneWay}"
                           DisplayMemberPath="Name"
                           SelectedItem="{Binding CurrentPropertySet[RequiredCondition]}"
                           ToolTip="{Binding ElementName=cboRequiredCondition, Path=SelectionBoxItem.Description}"
                           ClearSelectionButtonContent="Clear"
                           ClearSelectionButtonVisibility="Visible"
                           TextSearchMode="Contains"
                           x:Name="cboRequiredCondition"/>
  </DataTemplate>
Ventzi
Telerik team
 answered on 28 Mar 2013
1 answer
106 views
Hi,

We are currently checking out Telerik controls to be used for our new project. Are the points below feasible?
1. Can we have a mergefield that is a Dictionary?

Ex. We have an Item class with a Dictionary property. Now, I want a mergefield that points to the keys of the the Dictionary property.

    Ex:
    <MERGEFIELD BeerBrands["Bud"]> or <MERGEFIELD BeerBrands.Bud>
   
    where Beerbrands = class property w/ch is a Dictionary
      Bud is the Key of the dictionary.  The result should be the value of the dictionary.

2. Taking this a step further, can we have a mergefield where the fieldName points to a Dictionary<string, new Dictionary<string, string>>.
    Ex. <MERGEFIELD BeerBrands.Bud.Price>

   where Beerbrands = class property w/ch is a Dictionary;
         Bud = key of the 1st Dictionary;
         Price = key of the 2nd dictionary

Regards,
Mari
Boby
Telerik team
 answered on 28 Mar 2013
1 answer
205 views

Hello,

 

I have a View whith a GridView bound to RadDataFilter bound to an QueryableEntityCollectionView<T> exposed in a View-Model.

I have few questions :

Does when the user add filter to the RadDataFilter the data is filtered directly in SQL ?
How to implement assync data loading ? I have the folowing exception when using the DeferRefresh method :

Cannot change or check the contents or Current position of the QueryableCollectionView whileRefresh is being deferred.

Thank you,

Benjamin

Rossen Hristov
Telerik team
 answered on 28 Mar 2013
2 answers
201 views
Hi,
I  am using the below code to display the bar code in WPF.

<telerik:RadBarcode39 x:Name="BarCodeDisplay" Grid.Row="4" Height="80" Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" ShowChecksum="False" Text="Hello"/>

 

The code is getting displayed with the Text "Hello" below the bar. I need to just display the bar code without the Human readable text.
ShowText property is available in .NET and not in WPF. Let me know if there is any property to be set to hide the readable text "Hello",
Vinetha
Top achievements
Rank 1
 answered on 28 Mar 2013
3 answers
133 views
I found this article about the Scheduler control in which I could see the possibility of creating an appointment with an Hourly recurrence.

I have tried to do the same with the RadScheduleView's create a new Appointment View, but I can't seem to find a way to have that Hourly recurrence option. I can't go lower than a daily recurrence. I need to be able to create an hourly recurrence from the appointment creation view.

How would I go about doing that?

Thank you

Yana
Telerik team
 answered on 28 Mar 2013
0 answers
146 views
I have a GridView and it is binding a collection of objects that have around 30 fields/properties.  It ends up with around 30 columns and 1000+ rows.

If I use a Template for some of the columns I notice that the grid becomes much slower.  Are there any known issues or things I should look at in order to improve performance?

I have seen the demo with lots of columns and cells and if I don't style or use a Template my grid has relatively good performance.  It's when I try to use a Template that it starts to get slow.

My Template is used to create a left or right border and also display visual cues (border, color, tooltip) under certain conditions.  It's got about 8 border elements and 7 triggers.  Normally only one border element is visible and the other visual cues are collapsed, but the grid still performs very slowly.  However, even if I only use 1 border element in the template the grid becomes slower.

Douglas
Top achievements
Rank 1
 asked on 27 Mar 2013
1 answer
110 views
Hi,

I am trying to put what I am calling an app bar in a RadPane (see xaml) with limited success.

I want the app bar initially hidden but it it appears even though the RadPane is set to hidden.  If I set it to hidden in the window_loaded event that also does not hide the RadPane. When I mouse click on the RadPane header and then set visibility it works accordingly, What I am trying to do is when the user clicks on the RadPane header the code-behind will display the app bar.  By clicking on the RadPane header again the app bar will hide (Or a button in the app bar is pressed).  This seems to work OK except for the initial problem with not hiding the RadPane.  The other problem I am having is when  the app bar is hidden the TreeView control does not use the space of the hidden app bar.  The other feature that would be nice to have is an animation effect that slides the RadPane uo or down when displayed or hidden,  This is inside the RadDocking.

Thanks
Rich.

     <telerik:RadPaneGroup< telerik:ProportionalStackPanel.RelativeSize="75,25">
                        <telerik:RadPane Name="AvailableTables" 
                                     ContextMenuTemplate="{x:Null}"
                                     CanUserClose="False" CanFloat="False" CanUserPin="False">
                            <telerik:RadPane.TitleTemplate>
                                <DataTemplate>
                                    <TextBlock Text="Available Tables" MouseDown="AvailableColumnsHeader_MouseDown"/>
                                </DataTemplate>
                            </telerik:RadPane.TitleTemplate>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                
                                <telerik:RadPaneGroup Name="AvailableColumnsAppBarGroup" Background="LightGray">
                                    <telerik:RadPane  Name="AvailableColumnsAppBar" Height="32"  PaneHeaderVisibility="Collapsed" Visibility="Hidden">
                                        <WrapPanel HorizontalAlignment="Left" >
                                            <telerik:RadToggleButton Name="btnLocked"  IsChecked="False" IsThreeState="False" Height="30"
                                                         Margin="4,3,2,2" Content="Locked" Width="50" ></telerik:RadToggleButton>
                                       </WrapPanel>
                                    </telerik:RadPane>
                                </telerik:RadPaneGroup>
                                
                                <telerik:RadTreeView  Name="tvAvailableTables"
                                              Grid.Row="1"
                                                  SelectionChanged="tvAvailableTables_SelectionChanged"
                                                  SelectionMode="Multiple"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  ScrollViewer.HorizontalScrollBarVisibility="Auto">
                                </telerik:RadTreeView>
                            </Grid>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
George
Telerik team
 answered on 27 Mar 2013
2 answers
140 views
Hi
I have a simple parent/child relationship between some tables in my OpenAccess model. I retrieve all the rows in the parent table and display them in a WPF RadGRidView. I now want to display the children within each parent something like this:
Parent1
... Child 11
... Child 12
... Child 13
Parent2
... Child 21
... Child 22
etc.

I notice at runtime the navigation property collection has no members even though in the database there are children.
How can the navigation property collection be populated and would the RadGridView automatically present them in the layout described above?

Thanks
Craig


Craig
Top achievements
Rank 1
 answered on 27 Mar 2013
2 answers
237 views
If I am in edit mode and try to select the text with my mouse it thinks I am dragging that row. I tried to disable this with this code but it had no effect.

                <Style TargetType="telerik:GridViewCell" >
                    <Style.Triggers>
                        <Trigger Property="IsInEditMode" Value="True">
                            <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="False"></Setter>
                        </Trigger>
                    </Style.Triggers>
                </Style>

I then added code to OnDragInitialize in my DragDropBehavior attached behavior that returns if the current cell is in edit mode. It does stop the drag from happening but it also interferes with the user from selecting the string. It stops after the first character and changes the cursor to an arrow.

        private void OnDragInitialize(object sender, DragInitializeEventArgs e)<br>        {<br><div><span style="font-size: 11px; line-height: 1.4;">            var radGridClientObject = sender as RadGridView;</span><br></div>            if (radGridClientObject != null)<br>            {<br>                if (radGridClientObject.CurrentCell.IsInEditMode)<br>                {<br>                    return;<br>                }<br>            }<br><div></div>

How can I disable drag/drop when in edit mode?
Thanks, Valerie

Valerie
Top achievements
Rank 1
 answered on 27 Mar 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
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?