jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Jqxgrid width column jqxdatetimeinput
This topic contains 7 replies, has 2 voices, and was last updated by Hristo 8 years, 9 months ago.
-
Author
-
Hi,
I have columns where I´m using jqxdatetimeinput. When I start edition mode the icons ‘time’ and ‘calendar’ cuts a piece of text. I want alter width columns based in width jqxdatetimeinput.
See print.
https://postimg.org/image/7hcuf6vn5/
I can view only “7/27/2016 14:0”, but I need view all information: “”7/27/2016 14:06:55”
Obs: this occurs after use $(“#jqxGrid”).jqxGrid(‘beginrowedit’, row);
Best Regards.
Hello GabrielCostaAlves,
Try to change the width of that column.
Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHi, I need change the width column based in width jqxdatetimeinput and only in edition Mode. Can I do this?
Best Regards
Hello GabrielCostaAlves,
You could use
createeditor: function (row, cellvalue, editor) { // Do something }
for particular column to set desirable settings.
Please, take a look this example:
https://www.jseditor.io/?key=grid-and-datetimeinput-with-own-widthBest Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHi Hristo, Can not increase width column base in width jqxdatetimeinput?
In your example, The width columns is 85 and the width jqxdatetimeinput is 140. I wanted it to be 140 width column.
width column equals width jqxdatetimeinput: 140
Best Regards.
Hello GabrielCostaAlves,
If I understand you on a right way you could use setcolumnproperty method to change settings of the column.
Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHi, when I use $(‘#jqxGrid’).jqxGrid(‘setcolumnproperty’, ‘columName’, ‘width’, 200); in initEditor funtion, I have one error:
“Maximum call stack size exceeded”;
Again, I need increase width column base in width jqxdatetimeinput when initEditor function is called.
Best Regards
Hello GabrielCostaAlves,
If you would like could try to use those
cellbeginedit
andcellendedit
events from the Grid.$("#jqxGrid").on('cellbeginedit', function (event) { $('#jqxGrid').jqxGrid('setcolumnproperty', 'columName', 'width', 200); }); $("#jqxGrid").on('cellendedit', function (event) { $('#jqxGrid').jqxGrid('setcolumnproperty', 'columName', 'width', 85); });
But maybe the result could not be very well. For that reason I would like to suggest you to change only width of the cell that is edited.
Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.