Telerik Forums
UI for WPF Forum
4 answers
313 views

Hello ,

             I am new to telerik tool and upgrading the old asp.net application to WPF browser application which extensively uses the grid view control.

             I am trying to replicate following functionality from old application to new application and not sure what is the best approach and how to do it .

             1.Grid view is binded to database object and  based on the certain value present in particular field I need to show the edit button in each row, If that value    is not present then I need to hide the button.

             2. On click of this edit button, I need to show the update and cancel button in place of edit button as well as show the combo box with selections in different column (only this column need to be editable).

 

Thanks

Andy

 

            

Martin Ivanov
Telerik team
 answered on 02 Jul 2018
4 answers
483 views

Hi,

I'm trying to pass the window object of a window type RadWindow as command parameter to the code behind - however not RadWindow will be passed, but some helper windows classes of type WindowHostWindow.

The XML look like this:

<telerik:RadRibbonButton Text="Speichern"
                                             AllowDrop="True"
                                             LargeImage="..\Images\save.png"
                                             Size="Large"
                                             telerik:ScreenTip.Title="Speichern"
                                             telerik:ScreenTip.Description="Einen neuen Task anlegen."
                                             telerik:KeyTipService.AccessText="S"
                                             IsEnabled="{Binding CanSave}"
                                             Command="{Binding SaveCommand}"
                                             CommandParameter="{x:Reference Name=taskwindow}"
                                             IsDefault="True"/>

 

The Code behind(implementation of the command):

private void SaveProcess(object obj)
{

...

RadWindow wnd = (RadWindow)obj; <= this cast already fails as some helper class will be passed instaed of the expected RadWindow

 

Using the "normal" Window class instaed of the Telerik one, the code runs without any issues.

 

Looking forward to your answer.

 

Thanks,

Joachim

 

 

 

Joachim
Top achievements
Rank 1
 answered on 02 Jul 2018
5 answers
190 views
Hi,

I have a docking with some tabPane that I dedock and maximize in a second monitor. When I minimize my application and then maximize it, the tabPane isn't maximized anymore. Is there a way to fix this problem ?

Thank you,

Etienne
Kalin
Telerik team
 answered on 02 Jul 2018
2 answers
122 views

Hello,

I have a situation where I will have a collection of multiple RadDocuments that I would like to merge together into one document (and eventually create a PDF). I am able to accomplish this, but any lists that may be contained in those documents do not come out properly. Is there something I have to do other than using CreateDeepCopy to retain those liststyles? My code is doing something like this:

    Dim mergedDocument As Telerik.Windows.Documents.Model.RadDocument = New Telerik.Windows.Documents.Model.RadDocument()

                For Each section As Section In document.Sections             

                    Dim copySection As Section = TryCast(section.CreateDeepCopy(), Section)
                    copySection.PageMargin = section.PageMargin
                    copySection.PageSize = section.PageSize
                    copySection.CopyPropertiesFrom(section)

                    mergedDocument.Sections.Add(copySection)
                Next

            Return mergedDocument

Tom
Top achievements
Rank 1
 answered on 28 Jun 2018
1 answer
979 views

Hi , 

I am facing an issue of SelectionChangeEvent when customizing the RadTabItem Header using Header Template in Style . Following Style for HeaderTemplate 
 <Setter Property="HeaderTemplate" >
                             <Setter.Value>
                                 <DataTemplate>
                                          <StackPanel Orientation="Horizontal" VerticalAlignment="Center" >
                                         <TextBlock Text="{Binding   TabHeader}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5,0,5,0"></TextBlock>
                                         <Button Content="x" BorderThickness="0"  Background="Transparent" HorizontalAlignment="Center" Margin="0,0,5,0" V ></Button>
                                     </StackPanel>
                                 </DataTemplate>
                             </Setter.Value>
                        </Setter>

 

Using Following Template Style

<Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type telerik:RadTabItem}">
                                <Grid>
                                    <Border Name="Border" Background="#FF6E6C67"
                                            
                                            BorderThickness="1,1,1,1" 
                                            CornerRadius="5"
                                            >
                                        <ContentPresenter
                                            x:Name="ContentSite" 
                                            ContentSource="Header"
                                            VerticalAlignment="Center"
                                            HorizontalAlignment="Center" 
                                            RecognizesAccessKey="True"/>
                                    </Border>
                                 
                                </Grid>
                                <ControlTemplate.Triggers>
                                    <Trigger Property="IsSelected" Value="True">
                                        <Setter TargetName="Border" Property="BorderThickness" Value="2,2,2,0"></Setter>
                                        <Setter TargetName="Border" Property="Margin" Value="0,-3,0,0"></Setter>
                                        <Setter TargetName="Border" Property="Background" Value="Red" />
                                    </Trigger>
                                    <Trigger Property="IsEnabled" Value="False">
                                        <Setter TargetName="Border" Property="Background" Value="Green" />
                                    </Trigger>
                                </ControlTemplate.Triggers>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>

Please answer me if there is any issue in the above given Style 
Thanks 

Martin Ivanov
Telerik team
 answered on 28 Jun 2018
1 answer
591 views

I came across a strange issue with the RadGridView and the message queue.  When my application first starts it displays a model dialog box (for licensing).  After leaving this dialog box displayed for a couple of minutes I closed the dialog box.  I then got a trap with the "not enough quota" error and the application crashed.

Running Spy++ shows that there are thousands of events being generated even when the application is sitting idle. 

The events are: ...[Registered: "DispatcherProcessQueue"] wParam:00000000 lParam:00000000

I can reproduce this in my application by including 1 RadGridView.  if I remove all RadGridViews the issue disappears.

The demo WPF application version R2 2018 also demonstrates the issue when you open up the GridView demo. 

The really strange part is that I an only reproduce this on a brand new computer running windows version 1803 (OS Build 17134.112).  

My old PC running windows version 1703 (OS Build 15063.1029) does not exhibit this issue at all.  There are some of the events shown above but not a flood of them.  Both my application and the WPF demo application run just fine. 

Attached is an image of the demo and the output of Spy++ running on the new PC.

 

Thanks,
Phil Young

 

 

 

Stefan
Telerik team
 answered on 28 Jun 2018
1 answer
408 views

Hi Telerik,

I would like to know if WPF SpreadSheet can create advanced excel sheets as for instance EPPLUS library does.

I am using epplus for creating advanced Excel spreadsheets using .NET, without the need of interop right now and also using Telerik components in my project.

I thought if your spreadsheet is better or doing same thing so I would switch into your spreadsheet component.

 

I read a post that was saying they do not do the same thing and both are needed:

https://www.telerik.com/forums/how-to-upload-an-excel-file-and-how-to-read-its-content-row-by-row

Is it so?

 

If your component does so, please come with a sample/example for showing how.

It is urgent so I would appreciate getting the answer as soon as possible.

Thank you.

Best Regards

Kourosh

Boby
Telerik team
 answered on 28 Jun 2018
6 answers
107 views

Hello,

because Telerik has no editable (enter text not contained in list) combobox (and this is really sad) I'm forced to add the standard ComboBox to a gridview column:

 

            <telerik:GridViewDataColumn UniqueName="AccountName" Header="Gegenkonto" Width="250">
                <telerik:GridViewColumn.CellEditTemplate>
                    <DataTemplate>
                        <ComboBox ItemsSource="{Binding DataContext.AccountList, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}"
                                  DisplayMemberPath="AccountName" Text="{Binding AccountName}" IsEditable="True"/>
                    </DataTemplate>
                </telerik:GridViewColumn.CellEditTemplate>
            </telerik:GridViewDataColumn>

The problem is now, that it doesn't move to the next cell when I press the Tab key while editing that column. It works perfectly an the other (telerik) columns.

 

Best Regards,

Raul

 

Petar Mladenov
Telerik team
 answered on 28 Jun 2018
2 answers
256 views

Hi,

I am using a RadGridView with property ShowColumnSortIndexes set as "True".

The index numbers were displaying properly when I did multi column sorting.

But now the sort index numbers are not displayed since we used a template for GridViewHeaderCell to customize the look of header cells.

Could someone please help me to get the sort index numbers back in GridViewHeaderCell template?

Thanks,

Vijay

 

Geoff
Top achievements
Rank 1
 answered on 28 Jun 2018
0 answers
206 views

I have problem with wpf designer from today. In the design view I can only see rad watermark text box and all window controls all others are not visible.

In the output of General and I have these exceptions:

Exception has been thrown by the target of an invocation.
There was an exception when loading the design time assembly '***path***\Design\Telerik.Windows.Controls.Navigation.Design.5.0.dll':

Exception has been thrown by the target of an invocation.
There was an exception when loading the design time assembly '***path***\Design\Telerik.Windows.Controls.Input.VisualStudio.Design.4.0.dll':
Exception has been thrown by the target of an invocation.
There was an exception when loading the design time assembly '***path***\Design\Telerik.Windows.Controls.Input.Design.5.0.dll':
Exception has been thrown by the target of an invocation.
There was an exception when loading the design time assembly '***path***\Design\Telerik.Windows.Controls.Data.VisualStudio.Design.4.0.dll':
Could not load file or assembly 'Telerik.Windows.Controls.Data, Version=2018.1.122.45, Culture=neutral, PublicKeyToken=KEY' or one of its dependencies. The system cannot find the file specified.
There was an exception when loading the design time assembly '***path***\Designer\ShadowCache\i1edbdwb.fee\tj5mcnrj.5ft\Design\Telerik.Windows.Controls.Data.Design.5.0.dll':
Exception has been thrown by the target of an invocation.

Javor
Top achievements
Rank 1
 asked on 27 Jun 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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?