EasyUI Forum
May 15, 2024, 01:39:27 PM *
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: Datagrid automatic width on: September 25, 2013, 05:51:08 AM
The best solution I managed to come up with is this function:
   function resizeDg() {
        $('#dg').datagrid('resize', { width: $('.datagrid-btable').width()+2 });
    }

For now it is being called after right after data load (had to override the loader and put it right after _698(data)), and works most of the time.
However it still performs the resize incorrectly when there is a delay between the moment when data is loaded and the moment when data rows are displayed with calculated width.

So the questions still stand.
Is there a better way do to this?
Is there an event that fires once rows are displayed with calculated width?
2  General Category / EasyUI for jQuery / Datagrid automatic width on: September 23, 2013, 11:29:39 PM
Hello,

The issue I am facing is as follows:
Datagrid pager and header take 100% of the page width, while actual data columns take much less
space.
So datagrid-btable is 487px wide which is exactly how wide I want my datagrid to be.
In the meantime datagrid-body and the rest of divs are 1888px wide.

Whats the best way to make the whole datagrid as wide as datagrid-btable?

I considered resize function, but can't seem to find an event (after datagrid widths are set) on which to fire it.
3  General Category / EasyUI for jQuery / Re: [Solved] Display text in propertygrid remote combobox on: August 26, 2013, 12:46:11 PM
This is exactly the solution I was looking for.

Thanks for all the help.
4  General Category / EasyUI for jQuery / Re: Display text in propertygrid remote combobox on: August 23, 2013, 12:11:59 AM
Thanks for your reply. Unfortunately I still need to send combobox value to server on submit. So
Value should be kept while text is displayed.
In short here's what happens:
Property grid is created with remotely passed json object containing combobox editor with
numeric id value and url that will provide the same numeric id and text definition for it.
When combobox row is focused the text is shown as expected, but in other cases user is presented by a meaningless id number, which however is the one that should be fed to the server on submit.
5  General Category / EasyUI for jQuery / [Solved] Display text in propertygrid remote combobox on: August 22, 2013, 06:14:01 AM
Rephrasing my previous post:

Whats the best way to get a remotely populated propertygrid row combobox to display text instead of value?
The combobox editor object and row has only value and when remotely populated does not even have a data array, so using a formatter like in Row Editing in DataGrid demo does not seem be the way to go.

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