OlegK

Forum Replies Created

Viewing 15 replies - 781 through 795 (of 968 total)
  • Author
    Replies
  • in reply to: Could jqGrid remove a column? #95863
    OlegK
    Participant

    You can use hideCol method instead.

    in reply to: Width of input elements in edit form not correct (3.8 beta) #95862
    OlegK
    Participant

    Hi Richard,

    It looks more like that you defined the size of input elements very large (see editoptions). Moreover default width of form dialogs is 300. You can change it including width: 400 for example in the list of options of

    in reply to: Does jqGrid provide multi-layor filter #95861
    OlegK
    Participant

    Yes it is Advanced Searching

    in reply to: Lock in primary sort #95856
    OlegK
    Participant

    Multi-Sorting feature is a nice feature, but it is not yet exist in jqGrid. On the main page you can vote for “Sort by multiple columns“. Recently I wrote the answer http://stackoverflow.com/questions/3632526/how-can-i-add-multi-column-sorting-to-jqgrid. If it was not your question the information could be probably interesting for you, but it contain no solution.

    Probably if Tony look at your question he will answer when the feature could be implemented.

    Best regards
    Oleg

    in reply to: Issue Sorting Json in jqGrid 3.6.1 #95855
    OlegK
    Participant

    I recommend you to use jqGrid 3.7.2 or jqGrid 3.8 beta from http://github.com/tonytomov/jqGrid/tree/dev. Nobody (probably only Tony) have the version or will be test the retro version specially for you.

    In the current version there there are nice parameter loadonce:true. It switch datatype: 'json' to datatype: 'local' for you. Moreover in the current version there are full local sorting, paging and searching support. So your server can just send back the whole data.

    Moreover local sorting and server side paging is not logical, because sorting are means through all data and not inside a page only. If you already implemented server side paging, that server side sorting will be only some lines of cod (probably only one line).

    If you will have problem with the usage of last version or find a bug you will be quickly receive help from developers and from

    in reply to: Problem updating 3.6.4 to 3.7.1 or 3.7.2 #95852
    OlegK
    Participant

    You have wrong JSON data. Correspond to http://www.json.org/

    in reply to: Get correct row data with virtual scrolling #95849
    OlegK
    Participant

    Try to include key: true in the declaration of the 'ID' column.

    Best regards
    Oleg

    in reply to: Abort XmlHttp Request On Sort in jqGrid #95847
    OlegK
    Participant

    Hello!

    I find your suggestion very intersting. Currently you can use /jqgridwiki/doku.php?id=wiki:events&s[]=loadbeforesend#list_of_events, http://www.w3.org/TR/XMLHttpRequest/#error-flag

    in reply to: what is the form id #95846
    OlegK
    Participant

    Hi stephen!

    You make very simple error. jQuery objects are a wrapper over array of DOM objects and the DOM object itself. If you use

    var x = $(“#blabal”);

    then x will be a wrapper to the arrays of DOM objects found by selector #blabal. It x.length === 0 then no elements are found. If do some elements are found, then you can access the elements with x.

    So to display the id of the form identified by the jQuery object form you should use not the syntax alert(form.id) but alert(form[0].id):

    beforeSubmit : function(postdata, form) {

    in reply to: Header not wrap in IE6 #95845
    OlegK
    Participant

    Look at this answer. I don't have IE6, but I hope the solution will work also for the browser.

    Best regards
    Oleg

    in reply to: force a toolbar search? #95844
    OlegK
    Participant

    Look at my http://stackoverflow.com/questions/3311929/is-there-a-way-to-programatically-set-a-filter-in-jquery-jqgrid/3337327#3337327 and http://www.trirand.com/blog/?page_id=393/help/toolbar-search-case-insensitive/.

    I hope after examin this examples you could impement what you want.

    To your other question. Parameter postData is very usefull if you want send additional information from the client to the server. For example url: “http://my.com/Svc”, postData: {country: “Germany”, langage: “german”} in case of HTTP GET requests follow to usage of url like http://my.com/Svc?country=“Germany”&langage=”german”. In case of HTTP POST request the data from postData will be placed to the HTTP body.

    Usage of userData is a standard way to send an additional information from the server to jqGrid (see /jqgridwiki/doku.php?id=wiki:retrieving_data#user_data). jqGrid knows the parameter and save tha data as a part of internaldata. To get the data later from the jqGrid you can use jQuery(“grid_id”).getGridParam('userData').

    Best regards
    Oleg

    in reply to: Changing the color of a cell based on incoming data. #95840
    OlegK
    Participant

    You can examine the data received from the server inside of /jqgridwiki/doku.php?id=wiki:events#list_of_events as an example).

    Another way would be defining of custom formatter and custom unformatter.

    Regards
    Oleg

    in reply to: Combine Ajax & Local Data #95839
    OlegK
    Participant

    Hi sternr,

    It seems to me it is very simple to implement your requirements. To be able to load local json you should define data: myData and datatype: 'local' or datastr: myJsonDataAsString and datatype: 'jsonstring' (depend on whether you have you JSON data alredy as an object myData or as a JSON string myJsonDataAsString). After the grid is created you can imediately change the grid datatype to 'json' with respect of setGridParam method (without calling of trigger('reloadGrid')):

    jQuery(“#list”).jqGrid('setGridParam', { datatype: 'json' });

    Next refresh of the grid (also sorting of a column or searching) will be send to the server. If you want that switching to the server data will be a little later, you can call setGridParam later.

    Best regards
    Oleg

    in reply to: what is the form id #95838
    OlegK
    Participant

    It is just a small bug in the documentation. formid is not a string like if described in the documentation. It is just jQuery object for the form. The corresponding line looks like

    if( $.isFunction(rp_ge.beforeSubmit))

    in reply to: Toolbar Search – Case Insensitive? #95837
    OlegK
    Participant

    Hi!

    New 3.8 version of jqGrid which will be soon released has additional defaultSearch

Viewing 15 replies - 781 through 795 (of 968 total)

Stay connected with us in your favorite flavor!