Hi Telerik Teams,
I have a problem,When I filter data in gridview, a RadForm appears. But there are problems with the margins of its 2 buttons. How can I deal with it?
Thanks
Mason Chiu
001.png: On the GridViewComboBoxColumn how do I prevent the drop down from covering the input cell when grid is at the bottom of the screen's viewable area?
I've tried setting the position and location under the CellEditorInitialized event, but had no luck.
private void RadGridARCashReceipt_CellEditorInitialized(object sender, GridViewCellEventArgs e)
To reproduce:
1. Expand a parent row in hierarchical grid.
2. Click on the second tab
3. If the child grid doesn't have any rows, the CurrentViewChanged event will not fire.
Currently, due to the specificity of the internal implementation for this scrolling behavior, the possible solution that I can suggest is to hide the row header by setting the ShowRowHeaderColumn property to false.
this.radGridView1.ShowRowHeaderColumn = false;
To reproduce:
1. Bind a RadGridView to the Northwind.Products table
2. Enable the header checkbox for the Discontinued column
3. Set the ReadOnly property either for the grid or for the specific column.
The header checkbox is not allowed to be toggled. However, you can toggle/untoggle it which affects all the data rows.
If you define which columns to be printed on separate pages and try to use the Print Settings dialog to change the orientation for example, the multi-page printing gets lost:
Here is the code snippet which result is illustrated in the attached gif file:
Private Sub RadForm1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.CustomersTableAdapter.Fill(Me.NwindDataSet.Customers)
Me.RadGridView1.DataSource = Me.CustomersBindingSource
Me.RadGridView1.BestFitColumns()
End Sub
Private Sub RadButton1_Click(sender As Object, e As EventArgs) Handles RadButton1.Click
Dim document As New RadPrintDocument()
document.AssociatedObject = Me.RadGridView1
Dim printStyle As GridPrintStyle = New GridPrintStyle(RadGridView1)
Dim renderer As TableViewDefinitionPrintRenderer = New TableViewDefinitionPrintRenderer(RadGridView1)
renderer.PrintPages.Add(RadGridView1.Columns(0), RadGridView1.Columns(2), RadGridView1.Columns(5))
renderer.PrintPages.Add(RadGridView1.Columns(0), RadGridView1.Columns(1), RadGridView1.Columns(9))
renderer.PrintPages.Add(RadGridView1.Columns(8), RadGridView1.Columns(7))
renderer.PrintPages.Add(RadGridView1.Columns(3), RadGridView1.Columns(4), RadGridView1.Columns(6))
printStyle.PrintRenderer = renderer
RadGridView1.PrintStyle = printStyle
Dim dialog As New RadPrintPreviewDialog(document)
dialog.ShowDialog()
End SubThe main purpose is optimizing memory consumption and performance when generating large pdf documents.
Resource: https://www.telerik.com/blogs/pdf-stream-processing-reliable-and-efficient-processing-of-pdf-files
Hi,
I want to add a MultiComboBoxColumn to a GridView
is it possible to define the columns for this MultiComboBox at design time (in Property Builder editor of Grid) ?
Hi,
I want to extend the RadGridView control, so I do "public class TkGrid : Telerik.WinControls.UI.RadGridView {}"
How do I apply a theme to TkGrid control ? I set "ThemeResolutionService.ApplicationThemeName = "FluentDark" but this doesn't work.
I attached a small project where I have one TkGrid and one RadGridView. On top of form there is a dropdown from where you can change the theme
When I do this, TkGrid is not displayed with the new theme (this works for RadGridView)
p.s. I also added a custom Button, TkButton inherited from RadButton. When I change the theme, the look of TkButton is changed, so this is ok
Please refer to the attached sample project and follow the steps in the gif file.
Workaround: custom filtering to control which rows to be visible or not: https://docs.telerik.com/devtools/winforms/controls/gridview/filtering/custom-filtering
private void radGridView1_CustomFiltering(object sender, GridViewCustomFilteringEventArgs e)
{
e.Handled = true;
e.Visible = e.Row.Cells["Value"].Value.Equals( Double.NaN);
}
Please refer to the attached sample project and follow the steps from the grid file:
Steps to reproduce:
1. Filter the checkbox column to only show unchecked rows
2. Enter "5" for filtering the Name column
3. Click the checkbox column on the bottom row
4. Remove filter value in the Name column
This will result in the unrelated record showing as checked. Scrolling or changing sorting may refresh the cell. If the filter is cleared by using the No filter menu option, the problem is not observed
When the "x" is used it seems that AllowSearchRow is not set to false because the toggle button has then to be pressed twice to show up the search mask again.
Use the following code snippet:
ThemeResolutionService.ApplicationThemeName = "MaterialPink";
radGridView1.ElementTree.EnableApplicationThemeName = false;
radGridView1.ThemeName = "FluentDark";Workaround:
private void radGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
RadDropDownListEditor ddlEditor = e.ActiveEditor as RadDropDownListEditor;
if (ddlEditor != null)
{
RadDropDownListEditorElement el = ddlEditor.EditorElement as RadDropDownListEditorElement;
el.Popup.ElementTree.EnableApplicationThemeName = false;
el.Popup.ThemeName = this.radGridView1.ThemeName;
}
}
Hi There,
This call is only a nice to have, it is not critical at all. It is just a slight annoyance when building the Grid's columns - especially when there are many columns to adjust. My workflow is usually as follow.
Add all the columns needed, then after that I will run through all the columns and want to set the widths. But my speed is broken because I can't tab between the 3 width properties: Width, Min Width, Max Width. I have to click to put focus the the next value.
If possible, please can you correct the tab indexes?
Thank you
Kind Regards
Ben
PS. You may close this ticket immediately - this is only a request.