Telerik Forums
UI for Universal Windows Platform Forum
1 answer
10 views

HI

Q3 2024 462

When The table contains a large number of rows. (I checked 550 rows and 30 columns (Example) ).
When I scroll with the scroll with the arrow on the screen reduced to the width, the scrolling is reasonable and smooth.
But if I'm on a widescreen the scrolling is stuck and not smooth.
For this purpose, I reduced the screen width and clicked on the scroll down arrow. And in 550 lines it took about 18 seconds to get from top to bottom. On a wide screen it took 50 seconds to scroll from top to bottom
I did the test on a static table that only loaded simple information and presented it without events or other manipulations on the table.
In the real world it is much worse because there are also online updates on the table and formatting. And if there are many rows in the table many times the screen freezes on scrolling.

Please your urgent help.

Example:

using System;
using System.Data;
using System.Windows.Forms;
using Telerik.WinControls.UI;

namespace WindowsFormsApp2
{
    public partial class Form1 : RadForm
    {

        int colCount = 30;

        public Form1()
        {
            InitializeComponent();
            this.Width   = 650;
            this.Height = 1050;
            this.StartPosition = FormStartPosition.CenterScreen;
            radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.None;
      }

        private void radButton1_Click(object sender, EventArgs e)
        {
            AddColumnsAndRows();
        }

        private void AddColumnsAndRows()
        {
            DataTable dt = new DataTable();
            for (int i = 0; i < colCount; i++)
            {
                dt.Columns.Add("ColName_" + (i + 1), typeof(string));
            }

            for (int row = 0; row < 550; row++)
            {
                DataRow dr = dt.NewRow();
                for (int col = 0; col < colCount; col++)
                {
                    dr[col] = "DataTest_C" + (col + 1) + "_R" +  (row + 1);
                }

                dt.Rows.Add(dr);
            }

            radGridView1.DataSource = dt;
            radGridView1.BestFitColumns();
        }
    }
}

Nadya | Tech Support Engineer
Telerik team
 answered on 11 Oct 2024
1 answer
28 views

I have Telerik SDK reference in my project. I have been building it on my machine so far. But we have to move to Azure build pipelines.

How to I get this SDK refer in the build server

Didi
Telerik team
 answered on 04 Jun 2024
0 answers
172 views

My App Center crash logs show a crash on ScrollIndexIntoView on a RadDataGrid. I've seen the crash about a dozen times in the last month on a variety of computers, but haven't been able to duplicate it myself. There are a variety of spots in my project where I scroll to particular entry on a page that the user previously clicked on. My code usually looks something like this. Assume ClientGrid is the RadDataGrid and its ItemSource is ViewModel.Clients.

foreach (var eachClient in ViewModel.Clients)
{
    if (eachClient.ID == SelectedClient.ID)
    {
        try
        {
            ClientGrid.ScrollItemIntoView(eachClient);
        }
        catch (Exception ex)
        {
            // log error
        }
        break;
    }
}

This works perfectly for me when I use it, and I suppose it does for everyone else 99% of the time. It just occasionally crashes. Note, sometimes in my project, I use ScrollIndexIntoView and other times I use ScrollItemIntoView. Both of them ultimately call ScrollIndexIntoView in the Telerik code. I can't actually tell from the App Center crash logs if the crash is from one of my ScrollItemIntoView or ScrollIndexIntoView calls. They follow this same code structure though.

Also, I tried wrapping the ScrollItemIntoView call inside a try/catch, but it's never actually hit the catch block (I didn't include it above, but I have some error reporting code in the catch) and doesn't prevent the crashes.

Is there some way to prevent this from crashing? I assume that somehow the grid just isn't ready to scroll yet. Is there a property on the grid I can call to verify that it's loaded before I call ScrollItemIntoView? It's fine with me if on these rare occasions I can't scroll to the appropriate row. I just want it to do nothing instead of crashing. Here's the stack trace

Internal.Runtime.CompilerHelpers    ThrowHelpers.ThrowIndexOutOfRangeException ()
Telerik.UI.Xaml.Controls.Grid    IndexStorage.ValueForIndex (Int32, Boolean)
Telerik.UI.Xaml.Controls.Grid.Model    GridModel.ScrollIndexIntoView (ScrollIntoViewOperation`1)
Telerik.UI.Xaml.Controls.Grid.Model.GridModel    <>c__DisplayClass147_0.<ScrollIndexIntoViewCore>b__0 ()
System    Action.Invoke ()
Telerik.UI.Xaml.Controls.Primitives    DelegateUpdate`1.Process ()
Telerik.UI.Xaml.Controls.Primitives    UpdateServiceBase`1.ProcessUpdatesQueue ()
Telerik.UI.Xaml.Controls.Primitives    UpdateServiceBase`1.OnUpdateCallback ()
Windows.Foundation    DeferralCompletedHandler.Invoke ()

 

Thanks for any help!

Tyler
Top achievements
Rank 1
 asked on 04 Aug 2023
0 answers
126 views

Hi,

I have a data set similar to List<List<string>> DataSet.  Where each row's data is a list of strings.

Is there anyway to bind this type of structure to a RadDataGrid rather than having each row bound to a specific data member?

Thank you

R-2112
Top achievements
Rank 1
 asked on 28 Jun 2023
0 answers
127 views
Hi,

My DataGrid uses an Expando object. When pressing and holding the keydown or keyup, the grid behaves incorrectly. I tried to set the RowHeight to see if it would help, but no.

The scroll viewer is kind of reset and for each reset, the offset is getting smaller and at some point, it stops doing the bug.

Sébastien
Sébastien
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 20 Jun 2023
0 answers
149 views

Multiple users have generated a crash log via AppCenter that suggests I have some sort of Telerik error, but I haven't been able to duplicate it myself. Here's the error.

ComCallHelpers.Call (__ComObject, RuntimeTypeHandle, Int32, Void*)

EETypeRva:0x00067310(System.Runtime.InteropServices.MissingInteropDataException): System.Collections.Generic.IList`1[Windows.UI.Xaml.Automation.Peers.AutomationPeer] is missing interop type marshalling data. To enable interop type marshalling data, add a MarshalObject directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965

 

Here's the stack trace

  • System.Runtime.InteropServices
    __interface_ccw.Allocate (ComCallableObject, RuntimeTypeHandle)
  • SharedLibrary!<BaseAddress>+0x6f7813
  • System.Runtime.InteropServices
    CCWLookupMap.GetOrCreateCCW (Object, RuntimeTypeHandle, IntPtr&)
  • SharedLibrary!<BaseAddress>+0x6f769f
  • SharedLibrary!<BaseAddress>+0x6f7667
  • SharedLibrary!<BaseAddress>+0x6f75eb

  • __Interop
    ComCallHelpers.Call (__ComObject, RuntimeTypeHandle, Int32, Void*)
  • __Interop.ForwardComStubs.Stub_3[TThis, TResult](__ComObject, Int32) + 0x2c
  • Telerik.UI.Automation.Peers
    DataGridCellsPanelAutomationPeer.GetChildrenCore ()
  • Windows.UI.Xaml.Automation.Peers.AutomationPeer.global::Windows.UI.Xaml.Automation.Peers
    IAutomationPeerOverrides.GetChildrenCore ()

  • __Interop
    ComCallHelpers.Call (__ComObject, RuntimeTypeHandle, Int32, Void*)
  • __Interop.ForwardComStubs.Stub_3[TThis, TResult](__ComObject, Int32) + 0x2c
  • Telerik.UI.Automation.Peers
    RadDataGridAutomationPeer.GetChildrenCore ()
  • Windows.UI.Xaml.Automation.Peers.AutomationPeer.global::Windows.UI.Xaml.Automation.Peers
    IAutomationPeerOverrides.GetChildrenCore ()

  • __Interop
    ComCallHelpers.Call (__ComObject, RuntimeTypeHandle, Int32, Void*)
  • __Interop.ForwardComStubs.Stub_3[TThis, TResult](__ComObject, Int32) + 0x2c

  • Telerik.UI.Xaml.Controls.Grid.SelectionService
    <RaiseAutomationSelection>d__43.MoveNext ()
  • System.Runtime.ExceptionServices
    ExceptionDispatchInfo.Throw ()

  • Telerik.UI.Xaml.Controls.Grid.SelectionService
    <Select>d__13.MoveNext ()
  • System.Runtime.ExceptionServices
    ExceptionDispatchInfo.Throw ()

  • __Interop
    ComCallHelpers.Call (__ComObject, RuntimeTypeHandle, Int32)
  • __Interop
    ForwardComStubs.Stub_22[TThis] (__ComObject, Int32)
  • Microsoft.AppCenter.Utils
    ApplicationLifecycleHelper.<ctor>b__17_1 (Object, UnhandledErrorDetectedEventArgs)

 

Does anyone have any thoughts about what this might be related to? Thanks!

Tyler
Top achievements
Rank 1
 asked on 05 May 2023
1 answer
176 views
How to set focus to textbox in edit of Raddatagrid in Tappped command
Lance | Senior Manager Technical Support
Telerik team
 answered on 27 Mar 2023
0 answers
137 views

We use a Telerik RadGrid to display data from our tables on a page. The page is done in old C# .NET Framework 4.8.  Our Telerik version is 2023.1.117.45.

The page allows the user to edit the data from the DB. When they click a button the page displays an edit control with the data from a given row that has a save button and a cancel button. When the cancel button is hit the RadGrid sends a "Cancel" command to the code-behind, even though nothing in the code-behind responds to this command the edit form is removed.

On some of our other pages when the save button is hit it runs the update/insert code behind, and also removes the control. But I recently added a new page, based upon the old one, but the new one does not remove the edit control when a save it done. My code on the new page is obviously slightly different, but I cannot find what I changed that stops the removal of the edit form once the data is saved. The cancel button on this new page does this, but again, neither page has any code-behind that responds to the cancel button.

Is there documentation on how the cancel command works? It seems to be done auto-magically by Telerik without the code added by the developer running. Is there an explicit way to trigger this effect?

My previous experience doing front end stuff was using JavaScript and in that I would just edit the dom to remove the control, or hide it. But that is never done on any of the page using Telerik here.

Terry
Top achievements
Rank 1
 asked on 22 Mar 2023
1 answer
190 views
Hi,

This is a bug in my opinion, this a line can be drawn from 2 points.

While this will probably never fixed in the UWP project, I'm 99% sure the bug is in the WinUI project too since most of the rendering code is surely shared.

To repro the bug, just comment the 3rd data in the MainPage.xaml.cs file.

Sébastien
Didi
Telerik team
 updated answer on 23 Jan 2023
1 answer
178 views

I Have A RadDatagrid and I want to customize the External Editor is layout and access the save/apply button and need some examples of using BeginEdit() and CommitEdit()

Thanks.

Didi
Telerik team
 answered on 26 Dec 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Peter
Top achievements
Rank 1
Iron
Iron
Iron
Jarne
Top achievements
Rank 2
Iron
Steve
Top achievements
Rank 2
Iron
Iron
Iron
abdul
Top achievements
Rank 1
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Peter
Top achievements
Rank 1
Iron
Iron
Iron
Jarne
Top achievements
Rank 2
Iron
Steve
Top achievements
Rank 2
Iron
Iron
Iron
abdul
Top achievements
Rank 1
SUNIL
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?