EasyUI Forum
May 03, 2024, 05:55:32 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: Resize datagrid column width programmatically on: May 15, 2017, 07:56:23 AM
That works, thank you! I should learn to search more haha.  Smiley
2  General Category / EasyUI for jQuery / Resize datagrid column width programmatically on: May 15, 2017, 04:57:41 AM
Hello again, thanks for previous help!

I was wondering if it is possible to change the size of a column in a datagrid programmatically.

Something like:
$('#dg').datagrid('resizeColumnWidth', {field: 'col1', width: 100});

I tried using the cellClass from column options with the jQuery width() method [ $('.' + cellClass).width(100);], and do the same thing in the resize event of the datagrid. That works, but to me it seems like I'm adding unnecessary code.
Sorry if there is an obvious answer; I have been searching the documentation.

Thank you!
3  General Category / EasyUI for jQuery / Re: Resize column in datagrid and cursor sensitivity on: May 10, 2017, 12:54:49 AM
Thank you, that worked out well!
4  General Category / EasyUI for jQuery / Resize column in datagrid and cursor sensitivity on: May 08, 2017, 02:56:58 AM
Hello, hope I'm in the right place to ask this question.

Some of our users find it difficult to resize columns in the datagrids due to the space in which the resize cursor shows is narrow. The resize cursor only appears on the borders between the columns, which is fine, but it seems you have to be very precise to make the resize cursor appear.

Is there a easy way for me as a developer to make it less sensitive so to speak? That is, have the space of which the resize cursor is visible (and the functionality to resize the column) wider?

Thanks.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!