The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
How can I know the size of a virtual grid before it actually display on the control? I have a list of virtual grids to show in one panel, so I have to calculate the size of each one to decide the location of the next one. Do you have any experience on this?
RCRajadurai C Syncfusion Team November 2, 2009 02:10 PM UTC
Hi Chen,
Thanks for your interest in Syncfusion Products.
The size of the grid whether it is virtual or not, can be get through the ClientSize property of grid. Based on the width retrieved from the client size of one grid, you can place the next grid in panel accordingly.
Regards, Rajadurai
CYChen YujunNovember 3, 2009 10:25 AM UTC
Hi Rajadurai,
Thanks for replying!
I hook up these events for virtual grid: QueryRowCount, QueryColCoun, QueryRowHeight and QueryColWidth. But they are not called when I get the ClientSize of the gridControl. Instead it return a very strange size. Is there anything I must do before I call ClientSize?
Regards, Chen
CYChen YujunNovember 3, 2009 10:44 AM UTC
Another thing to mention,
I try to call ResetVolatileData before get ClientSize, but still doesn't work. Anything wrong?
RCRajadurai C Syncfusion Team November 3, 2009 12:45 PM UTC
Hi Chen,
Thanks for your update.
The clientsize of the grid can be changed only by changing the grid size at design time or when the grid is resized which can be done only by setting ClientSize property, wherever needed at runtime. It doesn't depend on the type of the grid whether it is virtual or not.
The clientsize doesn't differ because of any actions handled other than those mentioned above.
Please let me know if you need any further assistance.