I am using a Q1 2015 Winforms RadGrid, added a checkbox column, made EnabledHeaderCheckbox = true, added following event and now want to select all rows in the grid when header checkbox is checked, but it is giving object reference error. Here is the code examples -
private void _sampleRadGridView_HeaderCellToggleStateChanged(object sender, GridViewHeaderCellEventArgs e)
{
if (e.State.ToString() == "On")
_sampleRadGridView.SelectAll();
else
_sampleRadGridView.ClearSelection();
}
Please help. Thanks
Hello,
I have two Grid Views with drag and drop behavior. working perfect.
Gesture is enabled on both.
However, When I try to use Touch (on Tablet) to drag row from Grid1 to Grid2 is not working, What am I missing ?
Thank You
Mansi Mansi
I have Error : "Object reference not set" when use with document tab strip object
i want to set the following:
Dim Doctab as New DocumentTabStrip
Doctab.DockManager.Dock=DockStyle.Fill
Bug:
When I use the backspace key in RadRichTextEditor it causes visual artifacts to be left behind. It doesn't matter if I am deleting a selection or just one character. The artifacts disappear as soon as I press or click anything else (including pressing backspace again, on the KeyDown event).
See attached image.
Solution:
The control (or affected visual area) should be invalidated when the backspace key is pressed.
Hack:
I was able to eliminate all artifacts by overriding the KeyDown event and forcing the control to invalidate whenever the backspace key is pressed:
protected
override
void
OnKeyDown(System.Windows.Forms.KeyEventArgs e)
{
base
.OnKeyDown(e);
if
(e.KeyCode == System.Windows.Forms.Keys.Back)
{
Invalidate();
}
}
Hi,
I have a multicol combo with 5 columns and I have enabled filtering on each column :
multiColumnComboElement.EditorControl.EnableFiltering = true;
multiColumnComboElement.EditorControl.ShowHeaderCellButtons = true;
The issue I'm having is that when a user clicks on the OK button in the available filter list (see attached image) the main dropdown closes.
What I would like to happen is when the user clicks OK on the filter button the main drop down is still available but only showing the matching rows.
So for example and using the attached image as reference, if the user checks 19, 21, 30 and clicks OK the main dropdown remains open so the user can select from the filtered rows.
Not explaining this very well, but hope you get the idea.
I have managed to create a work around but its not ideal, basically on dropdown close I cancel if selectedIndex < 0, on dropdownopening I set selectedindex = -1.
Thanks for your help.
Cheers
Shaun
Hello everyone,
After I have updated my UI for WinForms to 2015.1.331.40, I am encountering strange problem with RadCommandBar control. If I create a new project in Visual Studio Community 2013 (VS 2012 Express as well) and drag, lets say, RadGridView into my RadForm everything is ok and i can change control Name as i like. However, as soon as I add RadCommandBar control to my form, if I try to change other control Name property i get following message:
Property value is not valid.
Details:
Unable to cast object of type:
'Telerik.WinControls.UI.RadGridView' to type
'Telerik.WinControls.RadItem'.
Does anyone have the same problem? If i add other controls (except RadCommandBar) everything is working as intended. My colleague is encountering the same problem on his computer (he is working on Win8, I am working on Win7).
Any tips would be appreciated.
Thanks for your time,
Mateusz
Hi,
In the attached is a grid layout. I have grouping on column Abbreviation. There is also sorting on Document Amount column (from the lowest to the largest).
I would like to change the way group is sorted (programmatically). The group should sort base on aggregated values (sum of Document Amount column).
AUT: 102,08
AIR: 592,98,
ARU: 3 918,40
AKE: 4 750,00
BER: 6 024,00
ANG: 33 630,00
ALBER: 124 729,22
and so on...
Is it possible?
Hello!
What's the proper way to dispose of a radform to ensure that all of the added controls also gets removed? As it is now, each time i start the form and then close it, memory consumption goes up with about 10mb. The core issue here seems to be that even though the form calls .Dispose() when it's closed the controls added to the form does not get cleared. I've tried setting all of the controls in the form to null on close, but this did not have any effect on the memory issue.
To make sure that it was an issue with the specific form, i created an empty form and instead opened that one, and when that form closed, memory did not increase, which leads me to be pretty sure that it has something to do with the controls added to the form not getting disposed.