Telerik Forums
UI for WPF Forum
9 answers
336 views

I have a requirement to handle a large number of records in a grid. So my radgrid is set to deferred scrolling and is lazy loading the records using VirtualQueryableCollectionView. That works really well.

My problem is in the scroll position indicator. I can't bind it to a property in the record because they are not loaded yet. Setting scroll mode to real time is not an option. What would be best solution here?
Vinay
Top achievements
Rank 1
 answered on 27 Jul 2018
1 answer
292 views

Is it possible? If so, can someone show me how?

Thanks ... Ed

 

Martin Ivanov
Telerik team
 answered on 27 Jul 2018
1 answer
139 views

Hello.

Sorry I didn't follow your indication to open a new ticket.

There it is.

Here is my problem: 

1) I create a recurrent appointment (i.e.:  every week day at some time).

2) I make an exception (i.e.: I move one occurrence on the week to one our later)

3) I persist the data

4) When I reload from DB, both the occurrence and the exception are shown.

I attached one pic (recurrence.png) showing this.

I managed to create a project where I show how I save and recover the appointment and the exception. The example shows exactly how I do it, except for the persistence layer) (see SchedulerTest.png, which is a zip file in fact)

To make clear my point, I took a screen shot of the sample project showing what I want to fix (scheduletest.png).

There is something I am missing, but can't figure out what.

Thanks.

 

 

Richard
Top achievements
Rank 1
Iron
 answered on 27 Jul 2018
5 answers
305 views

Hi there,

 

I'm trying to hide the labels of the bar and I want to move the lines to the bottom.

 

I found out that I can hide labels by setting the LabelUseRangeColor to true. I don't think this is the correct way. Can anyone help me with this? 

I also want to move the lines from the top top the bottom of the RadHorizontalLinearGauge. 

 

01.<telerik:RadHorizontalLinearGauge Width="250"
02.                                  Height="100"
03.                                  telerik:StyleManager.Theme="Windows8">
04.    <telerik:HorizontalLinearScale Min="0"
05.                                   Max="100"
06.                                   LabelLocation="CenterInside"
07.                                   LabelUseRangeColor="True"> <!-- LabelUseRangeColor turns off the label -->
08.        <telerik:HorizontalLinearScale.Indicators>
09.            <telerik:BarIndicator Value="60"
10.                                  UseRangeColor="True" />
11.        </telerik:HorizontalLinearScale.Indicators>
12.        <telerik:HorizontalLinearScale.CustomItems>
13.            <Border BorderBrush="#FF606060"
14.                    BorderThickness="1,0"
15.                    telerik:ScaleObject.Value="50"
16.                    telerik:ScaleObject.Location="OverCenter"
17.                    telerik:ScaleObject.RelativeHeight="0.14*"
18.                    telerik:ScaleObject.RelativeWidth="0.8*">
19.                <Border.LayoutTransform>
20.                    <RotateTransform Angle="90" />
21.                </Border.LayoutTransform>
22.            </Border>
23.        </telerik:HorizontalLinearScale.CustomItems>
24.        <telerik:HorizontalLinearScale.Ranges>
25.            <telerik:GaugeRange Min="0"
26.                                Max="20"
27.                                IndicatorBackground="Red" />
28.            <telerik:GaugeRange Min="20"
29.                                Max="40"
30.                                IndicatorBackground="OrangeRed" />
31.            <telerik:GaugeRange Min="40"
32.                                Max="100"
33.                                IndicatorBackground="LimeGreen" />
34.        </telerik:HorizontalLinearScale.Ranges>
35.    </telerik:HorizontalLinearScale>
36.</telerik:RadHorizontalLinearGauge>
Dilyan Traykov
Telerik team
 answered on 26 Jul 2018
1 answer
279 views

Hi!

I need to implementation auto start begin edit cell in the same row and next column, after click in previous column.
In begin my table, code works correctly. But in the last row and in penultimate column code doesn't work correctly, it begin start edit in the last row and in third column.
But after how I write value by myself, code start to work correctly. I use telerik framework.
Thank you for your responses!

var element = sender as FrameworkElement;
        ConditionsRadGridView.CommitEdit();
        var parentCell = element.GetVisualParent<GridViewCell>();
        if (parentCell != null)
        {
            var index = ConditionsRadGridView.Columns.IndexOf(parentCell.Column);
            if (index != -1 && index < parentCell.ParentRow.Cells.Count)
            {
                var nextCell = parentCell.ParentRow.Cells[index] as GridViewCell;
                if (nextCell != null)
                {
                    ConditionsRadGridView.CurrentCellInfo = new GridViewCellInfo(nextCell);
                    ConditionsRadGridView.BeginEdit();
                }
            }
        }
<telerik:RadGridView ValidatesOnDataErrors="InViewMode"                      
                     Name="ConditionsRadGridView"
                     Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
                     Margin="6 3 6 6" HorizontalAlignment="Left"
                     RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False"
                     CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False" CanUserReorderColumns="False"
                     FrozenColumnCount="1"
                     CanUserFreezeColumns="False"
                     ItemsSource="{Binding Conditions}" EnableColumnVirtualization="False"
                     RowStyle="{StaticResource ValidationFixStyle}"
                     SelectionMode="Extended" 
                     cal:Message.Attach="[Event PreviewKeyUp] = [Action ConditionsKeyUp($this.SelectedItems, $eventArgs)]">
        <telerik:RadGridView.Columns>
            <telerik:GridViewDataColumn CellStyle="{StaticResource SelectedCellStyle}" Header="{x:Static properties:Resources.Station}" DataMemberBinding="{Binding Name, Mode=TwoWay}"
                                CellTemplateSelector="{StaticResource ConditionNameTemplateSelector}"/>
                <telerik:GridViewColumn IsVisible="{Binding IsHaveGroups}">
                <telerik:GridViewColumn.CellTemplate>
                    <DataTemplate>
                        <CheckBox Visibility="{Binding IsGroup, Converter={StaticResource BoolToVisibilityConverter}}" IsChecked="{Binding IsSplitUp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                  cal:Message.Attach="[Event Click] = [Action IsSplitUpClick($datacontext)]" />
                    </DataTemplate>
                </telerik:GridViewColumn.CellTemplate>
            </telerik:GridViewColumn>
    <telerik:GridViewDataColumn Header="{x:Static properties:Resources.AffinityOperator}" ColumnGroupName="Affinity"
                                    DataMemberBinding="{Binding AffinityOperator, UpdateSourceTrigger=PropertyChanged}" TextAlignment="Center" IsReadOnly="True">
          <telerik:GridViewDataColumn.CellTemplate>
            <DataTemplate DataType="{x:Type vm:StationConditionViewModel}">
              <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <controls3:RadComboBox IsEnabled="{Binding IsRowEnabled}" SelectionChanged="StartEditNextCell"
                                       SelectedItem="{Binding AffinityOperator, UpdateSourceTrigger=PropertyChanged}"
                                       ItemsSource="{Binding Operators}" VerticalAlignment="Center" HorizontalAlignment="Stretch"/>
                </Grid>
            </DataTemplate>
          </telerik:GridViewDataColumn.CellTemplate>
        </telerik:GridViewDataColumn>
    <telerik:GridViewDataColumn Header="{x:Static properties:Resources.AffinityValue}" ColumnGroupName="Affinity" IsReadOnlyBinding="{Binding AffinityIsReadOnly}"
                                     DataMemberBinding="{Binding Path=AffinityValue}" TextAlignment="Right">
      <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate DataType="{x:Type vm:StationConditionViewModel}">
          <TextBlock Text="{Binding AffinityValue, StringFormat={}{0:N2}}" Visibility="{Binding AffinityVisibility}" VerticalAlignment="Center" HorizontalAlignment="Right" />
        </DataTemplate>
      </telerik:GridViewDataColumn.CellTemplate>
    </telerik:GridViewDataColumn>
Martin Ivanov
Telerik team
 answered on 26 Jul 2018
1 answer
166 views

Hello,

 

I would like to have fixed heights for the slots even when I change the Minor/MajorTickLength.

Currently I get this (5minutes.jpg, 15minutes.jpg and 30minutes.jpg)

and the result I would like to have is: 5minutesRight.jpg, 15minutes.jpg, 30minutesRight.jpg

I tried setting the VerticalWeekMinor/MajorItemTemplate or the MinAppointmentHeight to fixed height but that didn't yield the result I was looking for.

Any help would be appreciated.

 

Best regards!

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Jul 2018
2 answers
95 views

Hi ,the png display July,i want to get all the date in the png , from June 25 to August 5。

How can i do that ?

And How can i get all the date when i clicked the RepeatButton to MoveLeft or MoveRight ?

 

Thanks.

guo
Top achievements
Rank 1
 answered on 26 Jul 2018
3 answers
241 views
Our enterprise has chosen Telerik as our tool to convert XLSX files to PDF.  One limitation that has become an issue for our clients is that Telerik's API doesn't seem to support images in the XLSX header/footer.  I've been trying to get around this limitation using the Telerik.Windows.Documents.Spreadsheet.Model.Shapes.FloatingImage class, but when I move the image past the top margin into the header region, the image gets cut off.  Is it possible to work around this somehow?  I was hoping to see a z-index parameter in the FloatingImage class, but nothing like that seems to exist.
Tanya
Telerik team
 answered on 25 Jul 2018
11 answers
2.2K+ views

I have two columns in the GridView. I want one column's text(including header) is on the left, the other column is on the right.

<telerik:GridViewDataColumn  Header="Content" DataMemberBinding="{Binding Content}"  TextAlignment="Left" HeaderTextAlignmemt="Left" />
    
   <telerik:GridViewDataColumn  Header="Date" DataMemberBinding="{Binding Date}"  TextAlignment="Right" HeaderTextAlignmemt="Right" />

But it is not working, two columns are always aligned to the left. Then I used Visual Tree to check the properties. For the GridViewCell.

PART_CellBorder [Border]
   Background_Over [Border]
   Background_Selected[Border] etc

The default HorizontalAlignment is Stretch. I am not sure how to set the styles for the alignment.

Thanks.

Dilyan Traykov
Telerik team
 answered on 25 Jul 2018
6 answers
398 views

I'm looking for a way of not just selecting files for upload but entire folder structures. I was hoping I could use the CreateOpenFileDialog delegate to return the RadOpenFolderDialog however this function expects a return type of Microsoft.Win32.OpenFileDialog which the Telerik controls do not inherit from.

Any suggestions?

Neil
Top achievements
Rank 1
 answered on 25 Jul 2018
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?