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
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
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
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
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))
.Sortable(s => s.Enabled(false))
sorry please disregard the previous codes
I mean
.Scrollable(s => s.Enabled(false))
or
// .Scrollable()
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