EasyUI Forum
April 29, 2024, 02:16:03 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 2 3 [4]
46  General Category / General Discussion / Combogrid strange behavior on: February 04, 2014, 10:15:11 PM
This is my combogrid ;

  $('#cg_odanum').combogrid({
        panelWidth: 130,
        url: 'odalar_getdata.php',
        idField: 'odano',
        textField: 'odano',
        mode: 'remote',
        fitColumns: false,
        columns: [
            [
                {
                    field: 'odano', title: 'Oda No', width: 60, sortable: true
                },
                {
                    field: 'tip', title: 'Tip', width: 50
                }
            ]
        ]
    });


If I dont use the below code the combogrid works fine, but when I use the code below,

1) The combogrid search function don't work as aspected. For example: If  I type "a"  it doesn't find the lines which has "a" inside. After typing the whole text then it finds it.
2) fitColumns definition is set to false. If I don't use the code below it works fine, but when The code below starts working  , The combogrid behaves like the fitColumns is set to true.


  $('#cg_odanum').combogrid({
        onChange: function() {
            var modano = $('#cg_odanum').combogrid('getValue');
            var modatip = "";

    if(modano != "") {
        var cgrid = $('#cg_odanum').combogrid('grid');   // get datagrid object
        var rowgrid = cgrid.datagrid('getSelected');   // get the selected row
        modatip = rowgrid.tip;
        $("#cg_odatip").combogrid('setValue', modatip);
        $('#cg_odatip').combogrid('readonly', true);
    } else {
        $("#cg_odatip").combogrid('setValue', '');
        $('#cg_odatip').combogrid('readonly', false);
    }
        }
    });

Is this a bug ? or can I find another way to solve this. All I want is to trigger a function  using  combogrid's onchange event
47  General Category / General Discussion / Re: How to Disable Right Mouse Click on DataGrid on: January 03, 2014, 11:02:20 PM
Thank you stworthy. I catched  the trick Wink
48  General Category / General Discussion / How to Disable Right Mouse Click on DataGrid on: January 03, 2014, 08:31:39 AM
As I mentioned in the title, when I right click on the lines of datagrid I want to disable the popup menu
49  General Category / Bug Report / Linkbuttons don't display properly (THEMES problem) on: January 02, 2014, 09:35:44 PM
In version 1.34 I was using the default theme and the linkbuttons were displaying normally. After I upgraded to vers. 1.35  the linkbuttons are now displaying not in their older position. After a little search I found out that the css files of linkbuttons are not the same as the ones before.  I solved the problem by using the vers. 1.34 themes.
Pages: 1 2 3 [4]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!