Telerik Forums
UI for WPF Forum
0 answers
13 views

I have a grid where some rows have a sub grid.  If the user clicks the row's toggle button, it shows the grid.

The problem happens if the user does anything on the page to show a modal. We do this by adding our dialog view to the outer region, then blocking. As soon as the block is called you can see it drops all columns of the grid but the first. The grid remains that way after you close the dialog. This is not limited to this view, I have found other places where we have a GridView in a row and it behaves the same when a modal is shown.

You can see this in the attachments.

Any help would be appreciated.

EDIT: added snippet showing dialog open

Ken
Top achievements
Rank 1
 updated question on 07 Jul 2022
1 answer
22 views

Hello, 

In line with your recommendation to set a fixed height on the radgridview to get good performance (ref.https://www.telerik.com/account/support-center/view-ticket/1568065)  we have set a custom height on the content presenter that hosts the radgridview.

  <ContentPresenter ContentTemplate="{StaticResource PerBondTraderControlsKey}" Content="{Binding BondControlsVM}"
                                  Width="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadLayoutControl}, Path=ActualWidth}">
                                <ContentPresenter.Height>
                                    <MultiBinding Converter="{StaticResource HeightConverter}">
                                        <Binding Path="ActualHeight" RelativeSource="{RelativeSource AncestorType=Grid}" />
                                        <Binding Path="." RelativeSource="{RelativeSource AncestorType=Grid}" />
                                    </MultiBinding>
                                </ContentPresenter.Height>
                            </ContentPresenter>

 

The presentor is hosted on a grid and the objective is for it to resize based on the collapsible layoutcontrolexpandergroup placed above it. Refer to the attached file for the complete page hosting both controls. What we require is for the contentpresentor hosting the radgridview to resize to fit the available space based on the collapsible layout control's expanded status. Please suggest on how this can be implemented.

 

Thanks

Reshma

 

Dilyan Traykov
Telerik team
 answered on 06 Jul 2022
1 answer
25 views

Getting difficulties to override RecognizesAccessKey="False" for RadComboBox control using custom Style.

Does anybody has a sample to accomplish it?

Original problem: drop-down box is not displaying the very first underscore char. Example: combo box items a_b, c_d_e. Selecting any will renders as 'ab', not 'a_b' and 'cd_e' instead of 'c_d_e'

Above solution was proposed long ago (2010 source)  are there another solutions for the problem?

Thank you

Vladimir Stoyanov
Telerik team
 answered on 30 Jun 2022
0 answers
12 views

We have a strange issue that I've not seen posted or reported anywhere after two days of research

We have RadGridViews where we manage persistence using the Telerik PersistenceManager Class.

The grids are set as follows

    theGrid.ShowGroupPanel = false;
    theGrid.FilteringMode = Telerik.Windows.Controls.GridView.FilteringMode.FilterRow;
    theGrid.CanUserGroupColumns = false;
    theGrid.CanUserReorderColumns = true;

We gather data from a web service in the form of a data table and bind to the Grid.

When a filter is applied at the column level (for example a part number using the "Is Equal To"  filter) we save the grid stream, submit the query, retrieve the data, bind to the grid, Reload using the persistence manager.  

pseudo code

 

  • Gather Filter info
  • Save aStream
  • Get Data
  • Bind
  • PersistenceManager.Load(theGrid, astream);

The strange behavior is that I can consistently filter on a particular part number (String) and everything works as expected (A single result in the grid), but another part number results in a blank grid after calling the Manager.Load() code.  

In the second scenario, the underlying data table has one row, but it does not display in the grid.  If I comment out the code to load, then the value displays.  Using this, we lose the persistence, and can't "Clear filter" at the column level.

Long story short, the PersistenceManager.Load(theGrid, astream); seems to be failing, resulting in a blank Grid even though the underlying data table has one row.  Since this is Telerik code, we have no way to debug it.

 

Thanks in advance for any help.  I've attached a screen shot of the resulting grid, when the "Load" fails

John
Top achievements
Rank 1
 asked on 29 Jun 2022
0 answers
20 views
I have an odata entity that has been expanded to include 2 other tables. When I try to filter the entity by one of the columns I am greeted with a LINQ error (I will include a screenshot of the error). I was wondering if there is anyway to be able to filter by one of the expanded columns? I am using a QueryableDataServiceCollectionView that populates my RadGridView. 
Josh
Top achievements
Rank 1
 asked on 28 Jun 2022
3 answers
15 views

I have a problem with RadNumericUpDown control. I'm not able to display edge values of double type (e.g. NaN or Infinity). Every time I try to bind to property with these values I've got a Binding error.

Is it even possible to achieve it utilizing RadNumericUpDown?

Thanks!

Lukasz
Top achievements
Rank 1
Iron
 updated answer on 28 Jun 2022
0 answers
8 views

My requirement is to place a set of RadGridView horizontally, there's a ScrollViewer and ItemsControl, see code below.

 <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled">
	<Grid>
		<ItemsControl Name="GridItemsControl" HorizontalAlignment="Left" HorizontalContentAlignment="Left"
					  ItemsSource="{Binding Results}">
			<ItemsControl.ItemsPanel>
				<ItemsPanelTemplate x:Uid="ItemsPanelTemplate_1" x:Name="GridItemPanelTemplate">
					<DockPanel x:Uid="DockPanel_1" />
				</ItemsPanelTemplate>
			</ItemsControl.ItemsPanel>
			<ItemsControl.ItemTemplate>
				<DataTemplate x:Uid="DataTemplate_5">
					<telerik:RadGridView Grid.Row="0"
									 Margin="8"
							 ItemsSource="{Binding Items}" 
							 AutoGenerateColumns="False" 
							 IsReadOnly="True"
							 GroupRenderMode="Flat"
							 ShowGroupPanel="False"
							 CanUserSortColumns="False" 
							 ShowColumnSortIndexes="False"
							 RowIndicatorVisibility="Collapsed" 
							 CanUserGroupColumns="False"
							 SelectionMode="Extended"
							 ClipboardCopyMode="All" >
						<telerik:RadGridView.Columns>
							<telerik:GridViewDataColumn Width="Auto"
														Header="Depth"
												IsFilterable="False"
												ShowToolTipOnTrimmedText="True" 
												TextAlignment="Right"
												DataMemberBinding="{Binding Depth}">
							   
							</telerik:GridViewDataColumn>
						</telerik:RadGridView.Columns>
					</telerik:RadGridView>
				</DataTemplate>
			</ItemsControl.ItemTemplate>
		</ItemsControl>
	</Grid>
</ScrollViewer>

The UI got stuck while the program was running, but when replace RadGridView by DataGrid, it can run, and if I replace the Grid with ListView, the UI can work, but the function not meet my requirement

Guang
Top achievements
Rank 1
 asked on 27 Jun 2022
1 answer
26 views

Hello everyone. I have this problem when generating a table of contents. It is happening to me that when the document is exported to Word, for some reason (or if it is the correct behavior) the text is scrolling down on the next page. What I want to achieve is that the TOC can be generated if scrolling down occurs or, failing that, eliminate the space between the phrase "GENERAL CHARACTERISTICS" and the top of the header of that page. The document is already created and is imported into the application. I'm using an example that I found in the forum (I don't remember the name of the person, credits to him) and I'm adapting it to what I need

I have been researching the way to do it and I think with "Multi-Range Selection"
(https://docs.telerik.com/devtools/wpf/controls/radrichtextbox/features/selection?&_ga=2.154034736.904289798.1655964538-1262658420.1654800489#members-of-documentselection) between the phrase and the last element of the TOC would work but I haven't managed to capture the last element of the TOC, so I'm stuck with that part. Any idea or way I can take to eliminate that generated (dynamic) space between the phrase the following sheet and the header of that page.

Attached functional solution for testing and images.

Thank you very much

Tanya
Telerik team
 answered on 27 Jun 2022
1 answer
22 views
I want to implement row numbers in the Telerik data grid. Is there any predefined functions to enable? Or do we have any other method to achieve this. Please guide me how to achieve the above process.

Thanks in advance.
Dilyan Traykov
Telerik team
 answered on 27 Jun 2022
1 answer
35 views

Hi

 

I've setup a simple project using a RadRibbonWindow with a ribbon and a few controls. I'm trying to toggle between Light and Dark themes using the StyleManager which is working for the controls but not the Window (Title bar etc).

 

I've gone through a few articles including this one and threads on the forum including this one. Unfortunately I can't get the Window to change theme. Any help would be much appreciated.

 

Thanks Miles

Vicky
Telerik team
 updated answer on 27 Jun 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Toby
Top achievements
Rank 3
Iron
Iron
Benjamin
Top achievements
Rank 2
Iron
Veteran
Bernd
Top achievements
Rank 4
Bronze
Iron
Iron
minh
Top achievements
Rank 2
Iron
Iron
Iron
Sebastien
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Toby
Top achievements
Rank 3
Iron
Iron
Benjamin
Top achievements
Rank 2
Iron
Veteran
Bernd
Top achievements
Rank 4
Bronze
Iron
Iron
minh
Top achievements
Rank 2
Iron
Iron
Iron
Sebastien
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?