Hello,
I have problem with performance of GridView in self referencing hierarchy mode. I am working on move up/down function to move specific row up or down. I need to move it also in my underlying list, so I move it first in my list and then clear BindingList for GridView and add new items. This is done in DoRefreshEditorItems method of TestParEditorCollection class:
private void DoRefreshEditorItems()
{
EditorItems.Clear();
maxGridId = 0;
foreach (var item in Items)
{
var editorItem = new TestParEditorItem(item, ++maxGridId);
EditorItems.Add(editorItem);
if (item.HasSubItems)
AttachSubItems(editorItem);
}
RenumberRows();
}
Each call to EditorItems.Add() takes cca 100ms and whole refresh of 20 rows takes cca 2s. It looks like this:
I also tried to set DataSource to null, refresh binding list and set DataSource back, but it looks very similar. I have attached test project, it's TelerikTestReal project in solution.
My current version is 2024.1.312.40
I tried to load a layout (xml file) saved in a previous version RadGridView and get an error that I cannot intercept. In which way I can either catch this exception or disable their occurrence for the user?
The exception occurs in the method: rdgvMain.LoadLayout(reader) and try is not working;
strLayout, reader, stream are not empty
try
{
using (var stream = new StringReader(strLayout))
{
var reader = XmlReader.Create(stream);
rdgvMain.LoadLayout();
stream.Close();
reader.Close();
}
}
catch (Exception ex)
{
AddInfo(ex.Message);
}
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.WinControls.UI.GridRowBehavior.OnMouseMove(MouseEventArgs e)
at Telerik.WinControls.UI.BaseGridBehavior.OnMouseMove(MouseEventArgs e)
at Telerik.WinControls.UI.RadGridView.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.WndProc(Message& m)
at Telerik.WinControls.UI.RadGridView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Thanks,
Is there a way to detect when the user clicks on the column header to sort.
An event like SortStarted and SortFinished?
I'd like to capture that event to perform some special processing.
Hi,
When form loads scroll bar missing as well as summary also missing but when i resize the form it appear and work appropriately.
I believe this is some visual glitch. Please provide me some solution for this.
I am attaching gif image which ca explain you my concern.
Check the below attached zip file for more reference.
Hi,
I have a radgridview with fullrowselect enabled. When i select a cell, the row is selected correctly, but the selected cell changes padding or width slightly which seems to affect the entire column.
It's just a minor visual annoyance, but is there a way to prevent this?
Thanks,
Philip
Hello, I am trying to use the gridview to try to display data...this is kind of a work in progress as I don't know what best approach is that I should be taking to display the data or if I am even using the right control. I am trying to piece things together from some of the examples I can find. My questions are:
1. In the column named "img" is it possible to just hide that header and place the image next to the text?
2. Can those expanded columns be auto sized instead of manual sized?
3. Is there an example of a dropdown box in one of these expanded row?
Here is my rough code creating the expanded rows:
'create out custom datasource containing all the appsHello,
I contact you because I have 2 questions about the events of RagGridView control.
Thank you
Fabrizio
Hello everyone,
I have a problem, please help me solve it.
How to realize the function of GridView, item (8, a) in GridView with RadGridView control.