Telerik Forums
UI for WPF Forum
1 answer
69 views

Hey i dont want to use the integrated version of the Searchpanel because my design has it a different possition than direktly above it.

So i want to use  <telerik:GridViewSearchPanel   /> but i dont know how to bind it to the RadGridView.

Thanks

Dominik

 


Martin Ivanov
Telerik team
 answered on 24 Nov 2023
1 answer
76 views

Hi,

I'm trying to debug the salesdashboard source and receive the following error? Not sure how to resolve, can someone help please?

System.Data.Services.Client.DataServiceQueryException
  HResult=0x80131509
  Message=An error occurred while processing this request.
  Source=Microsoft.Data.Services.Client
  StackTrace:
   at System.Data.Services.Client.QueryResult.EndExecuteQuery[TElement](Object source, String method, IAsyncResult asyncResult)
   at System.Data.Services.Client.DataServiceRequest.EndExecute[TElement](Object source, DataServiceContext context, String method, IAsyncResult asyncResult)
   at System.Data.Services.Client.DataServiceQuery`1.EndExecute(IAsyncResult asyncResult)
   at SalesDashboard.MainRepository.<>c__DisplayClass22_1.<GetDailyActualsVsTargetsByProduct>b__1() in C:\Users\robertf\Downloads\SalesDashboard_WPF_Dev_2023_3_1114_SourceCode\SalesDashboard\ViewModel\MainRepository.cs:line 126
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

  This exception was originally thrown at this call stack:
    [External Code]

Inner Exception 1:
DataServiceClientException: <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
  <code></code>
  <message xml:lang="en-US">An error occurred while processing this request.</message>
</error>

Martin Ivanov
Telerik team
 answered on 24 Nov 2023
0 answers
87 views

Hi,

We have an old application (VB6) that we are migrating to WPF and .NET 8. I use your WPF controls in this application. We use this application to creat test templates for different instruments.
Each test template consists of one or more subtest templates. Each subtest template consists of a test grid with different number of rows and columns, depending of instrument and type of test.
The subtest template grids data is stored in a database. Each subtest are stored in one table, each column number is stored in one table with foreign key to the subtest table, each cells value and row number is stored in one table with foreign key to the column table.  

So far I have managed read data to my gridview with the help of your article https://docs.telerik.com/devtools/wpf/controls/radgridview/how-to/use-mixed-clr-dlr-properties.

First question,
I want the 4 first rows to be comboboxes, different combobox data for each row. I have been able to get comboboxes with DataTempletSelector, DataTemplate and RadGridView_AutoGeneratingColumn,
with help from this forum post from Petar Mladenov https://www.telerik.com/forums/unable-to-use-datatemplates-with-gridview-dynamic-data-not-even-with-icustomtypeprovider.
But my problem is that I don't get any data in the comboboxes. So how should I define my combobox so it databinds to my collection of comboboxdata? 

Second question,
If I manage to fill the comboxes with data I don't know how to databind selectedvalue to my ObservableCollection<MyDataRow>, so how can I do that?
The rest of the gridcells are textboxes and they databinds automatically and updates my ObservableCollection<MyDataRow> when I change a value in a cell.

This is my gridview,

                    <telerik:RadGridView  x:Name="TestCasesGridView"
                                          ItemsSource="{Binding SubtestTestCases, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, BindsDirectlyToSource=True}"
                                          IsFilteringAllowed="False"
                                          CanUserSortColumns="False"
                                          ShowColumnHeaders="True"
                                          ShowSearchPanel="True"
                                          SearchMode="MatchAllTerms"
                                          SearchPanelCloseButtonVisibility="Collapsed"
                                          IsSynchronizedWithCurrentItem="False"
                                          AutoGenerateColumns="True"
                                          AutoGeneratingColumn="RadGridView_AutoGeneratingColumn"
                                          Margin="10"
                                          IsReadOnly="False"
                                          ShowGroupPanel="False"
                                          RowIndicatorVisibility="Collapsed"
                                          Height="Auto"
                                          Width="Auto"
                                          ScrollMode="Deferred"
                                          ClipboardCopyMode="Default"
                                          ClipboardPasteMode="AllSelectedRows"
                                          SelectionMode="Single"
                                          SelectionUnit="FullRow"
                                          ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                          ScrollViewer.VerticalScrollBarVisibility="Auto"
                                          CanUserSelectColumns ="False"
                                          GroupRenderMode="Flat">
                    <telerik:RadGridView.Columns>
                        <helper:MyColumn Header="#"
Width="30" TextAlignment="Center"/>
                    </telerik:RadGridView.Columns>
                    <telerik:RadGridView.Resources>
                        <helper:MyCellTemplateSelector x:Key="myCellTemplateSelector">
                            <helper:MyCellTemplateSelector.ColumnNames>
                                <DataTemplate>
                                    <telerik:RadComboBox ItemsSource="{Binding ColumnNames}" DisplayMemberPath="KBE_Ben" OpenDropDownOnFocus="True"/>
                                </DataTemplate>
                            </helper:MyCellTemplateSelector.ColumnNames>
                            <helper:MyCellTemplateSelector.ColumnUnit>
                                <DataTemplate>
                                    <telerik:RadComboBox ItemsSource="{Binding ColumnUnits}" DisplayMemberPath="KEN_Kod" OpenDropDownOnFocus="True"/>
                                </DataTemplate>
                            </helper:MyCellTemplateSelector.ColumnUnit>
                            <helper:MyCellTemplateSelector.ColumnInfo>
                                <DataTemplate>
                                    <telerik:RadComboBox ItemsSource="{Binding ColumnInfos}" DisplayMemberPath="INF_InfoRad" OpenDropDownOnFocus="True"/>
                                </DataTemplate>
                            </helper:MyCellTemplateSelector.ColumnInfo>
                            <helper:MyCellTemplateSelector.ColumnProperty>
                                <DataTemplate>
                                    <telerik:RadComboBox ItemsSource="{Binding ColumnProperties}" DisplayMemberPath="KEG_Namn" OpenDropDownOnFocus="True"/>
                                </DataTemplate>
                            </helper:MyCellTemplateSelector.ColumnProperty>
                        </helper:MyCellTemplateSelector>
                    </telerik:RadGridView.Resources>
                </telerik:RadGridView>

 

Stefan
Top achievements
Rank 1
 asked on 23 Nov 2023
1 answer
111 views
Hi Telerik,
I have 30+ columns in my RadGridView and using CellTemplate and CellEditTemplate for most of the columns.
I want to reorder a column in runtime. When I click and drag a column header to extreme right or left, the horizontal scroll bar in the RadGridView is not scrolling automatically.
Is it a default behavior? Or do we have any property to enable this feature.
Please let us know ASAP.

Thank you.

Regards,
Muhammad Azhar Shah.
Martin Ivanov
Telerik team
 answered on 22 Nov 2023
1 answer
83 views

Hello, telerik,

I tried to upgrade my old WPF apps from 2021 R3 to 2023 R3, which was based on .NET 5.0.

When running the upgrade wizrad, it says that no Telerik project found,though there are 45 projects.

OTOH my old WPF apps which has been made on .net 4.6 upgraded to 2023 R3 without problem.

So, I opened C:\Program Files (x86)\Progress\Telerik UI for WPF R3 2023\binaries folder,

but there are every .net version dll folders except .NET 5.0.

Is .NET 5.0 not supported any more or something I forget to read  ?

 

thanks.

Kang


Stenly
Telerik team
 answered on 20 Nov 2023
1 answer
88 views

Hello all,

I'm using Telerik in WPF application and there are some pdf files that are not shown, the specificity of the files is that they are scanned .

 

Please can any one has this pb before?

 

Thank

Dimitar
Telerik team
 answered on 20 Nov 2023
5 answers
205 views
Hi,
Is it posible to modify RadDiagramConnection to draw lines with 45, 90, 135, 180 ... degrees. Something like in Paint when I want to draw line, with shift button(showed in .gif). Gif from paint show what I want to do in RadDiagram using RadDiagramConnection
Robby
Top achievements
Rank 1
 updated answer on 16 Nov 2023
1 answer
66 views

I'm trying to apply command from ViewModel to events like DragDrop.DragOver

<telerik:RadListBox>
 <telerik:EventToCommandBehavior.EventBindings>
     <telerik:EventBinding EventName="DragDrop.DragOver" Command="{Binding CommandCmd}"/>
 </telerik:EventToCommandBehavior.EventBindings>
</telerik:RadListBox>
But such code will not work. How to do this?
Dinko
Telerik team
 answered on 16 Nov 2023
1 answer
135 views

Hi

I attached a simple program that import a html file (with format and images) and export it.
The exported file is very different from the original, without format and without images.

Thank you 

Luigi

Vladislav
Telerik team
 updated answer on 16 Nov 2023
1 answer
99 views
I am using filtering with a custom DataProvider for my Virtual Grid.   Users use the popup dialog to set filter conditions.  It works well. 

I understand how to retrieve the filter descriptors from one grid and to apply them to another.  But how may I persist them?

I want to save to a text file a set of filters from VirtualGrid A.   Then, later on, I wan to  set VirtualGrid B columns to to use those same filters purely from that persisted text? 


I can see that ColumnFilterDescriptor.ToString() will give me what looks like a full  persistable filter expression.  At least it looks like a meaningful expression.  But I canntot see a method to go the other way
Dimitar
Telerik team
 answered on 14 Nov 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?