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

not change the width in the incell edit mode

7 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 04 Nov 2016, 11:17 PM

Hi,

We allow users to change the the value in each cells. However, the user doesn't like to see the width changes from displaying text to a textbox mode. Is there any way we can stop it so we keep the same width for the displaying text and textbox?

 

thanks!

7 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 08 Nov 2016, 06:33 AM
Hello Robert,

Generally, the width should be kept the same:
http://demos.telerik.com/aspnet-mvc/grid/editing

Here is a live dojo sample you can experiment with and match a specific configuration:
http://dojo.telerik.com/ayiLo

Regards,
Eyup
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
0
Robert
Top achievements
Rank 1
answered on 08 Nov 2016, 08:10 PM

After some tests, I found it happens when .Scrollable(s => s.Enabled(false)). 

However, I need to have all rows to the users and the cell width should not change in the edit mode. Is there way I can make it happens when scroll-able is false?

 

thanks

0
Eyup
Telerik team
answered on 10 Nov 2016, 12:59 PM
Hello Robert,

You could remove both the Scrollable and Pageable properties. However, in general this should not be a problem, as you can check in the live demo provided in my previous reply.

If the issue remains, you can modify the dojo example to demonstrate your specific configuration and send it back to us for further investigation.

Regards,
Eyup
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
0
Robert
Top achievements
Rank 1
answered on 23 Nov 2016, 08:05 PM

Hi Eyup,

Sorry, I am still busy with other issues, I will try to see if I can create an empty MVC project for this. However, I could not use dojo because this happens by setting scrollable extension to false in cshtml file

.Editable(editable => editable.Mode(GridEditMode.InCell))
.Selectable(s => s.Enabled(true))
.Sortable(s => s.Enabled(false))
0
Robert
Top achievements
Rank 1
answered on 23 Nov 2016, 08:06 PM
.Sortable(s => s.Enabled(false))
0
Robert
Top achievements
Rank 1
answered on 23 Nov 2016, 08:09 PM

sorry please disregard the previous codes

 

I mean 

.Scrollable(s => s.Enabled(false))

or

// .Scrollable()
0
Eyup
Telerik team
answered on 25 Nov 2016, 02:17 PM
Hello Robert,

This is strange, indeed. If you cannot demonstrate the issue with the following dojo sample, you can open a new formal support thread to send us a runnable application:
http://dojo.telerik.com/ayiLo/4

Regards,
Eyup
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Robert
Top achievements
Rank 1
Share this question
or