This is a migrated thread and some comments may be shown as answers.

ResizeToFit Error

6 Answers 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 22 Mar 2017, 06:58 PM

When using the jscript function as this post http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/gridcolumn-object/methods/resizetofit-  with a editable grid in form type cause "InvalidAccessError: A parameter or an operation is not supported by the underlying object" with build 2017.1.213.40.

 

The edit mode enables correctly but the form moves near the last columns of the grid, so scrolling is needed to rearch the edit form.

When the script is removed the jscript error disappear but the columns are not visible as the width of each one is too much small.

Is there any other way to auto fit columns? this error did not happen with previous version

6 Answers, 1 is accepted

Sort by
0
Victor
Top achievements
Rank 1
answered on 23 Mar 2017, 04:58 PM
UPDATE: The position of the editform still at the end of the row even if the width of the columns is set manually
0
Rumen
Telerik team
answered on 27 Mar 2017, 03:52 PM
Hi,

I tried to reproduce the reported error with the local installation of the local grid demos but to no avail. You can see my test in the following video: https://www.screencast.com/t/DbAaq6t23Uu4
Can you please upgrade to version 2017.1.228 and test again. Please, also refer to the online examples and try to implement your code in the shown way.

Best regards,
Rumen
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Victor
Top achievements
Rank 1
answered on 29 Mar 2017, 06:53 PM

Hi Rumen,the error is not visible in your example because the grid is too small, try it with a fixed width grid and add 20 or 25 columns. So when you try to edit the record the edit form appear near the last column of the grid instead of working as adding new record where the edit form appear centered and is not affected by scroll

0
Rumen
Telerik team
answered on 03 Apr 2017, 12:30 PM

Hi Victor,

even with 20+ columns, I am unable to repro the issue - https://www.screencast.com/t/gJbHgggg

Can you modify the example to start showing the problem and send the / for examination?

Regards,
Rumen
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Victor
Top achievements
Rank 1
answered on 17 Apr 2017, 03:14 PM
That's why you are using a custon editform, but when you are not using a custom editform the error is visible
0
Vessy
Telerik team
answered on 20 Apr 2017, 03:55 PM
Hi Victor,

I removed the custom edit form of the lineked example but still not able to reproduce the problem. It will be really appreciated if you modify the attached sample page up to a point where the problem occurs and send it back so we can examine it further.

Thanks in advance for your cooperation.

Regards,
Vessy
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Victor
Top achievements
Rank 1
Answers by
Victor
Top achievements
Rank 1
Rumen
Telerik team
Vessy
Telerik team
Share this question
or