Asshiah

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 49 total)
  • Author
    Replies
  • in reply to: French translation #96609
    Asshiah
    Participant

    Does anybody have a better translation?

    Asshiah
    Participant

    Yes, this problem was not present in some previous version.

    Thanks you for your time Tony.

    in reply to: Issues with populating subgrid #95141
    Asshiah
    Participant

    I am not quite sure but I think you shouldn't specify that you only want the first page directly in the url where the subgrid load the data from. You are not specifying it on the subgrid construction but you are when selecting a row on the master grid. As you are using pagers for both your master and detail grid, you should rely on it to specify the desired page to the server.

    But I don't think the problem comes from here.

    Also, have you checkec that your databse actually return a positive count when querying the folowwing query directly?:

    “SELECT COUNT(*) AS count FROM invlines WHERE inv_id=6”

    in reply to: Clientside – paging/editing/sorting queries #95139
    Asshiah
    Participant

    Hello,

    1) If you are already retrieving the data from the server using AJAX call and storing the gathered data into a js object in order to use it to populate jqgrids afterwards, it is possible to obtain what you are looking for. Since you already have a js object that contains all the data you are needing, you can configure the jqgrids to work on local data and point out the js object containing the previously loaded data from the server. You will then be able to use sorting and pagination on the localdata.

    Please refer to the jqgrid version 3.7 demos here in “New in version 3.7″ then “Load array data at once”:

    http://www.trirand.com/blog/jq…..qgrid.html

    If you want to load it from the server using jqgrid's inbeded AJAX support, you can also obtain what you desire.

    Please refer to the jqgrid version 3.7 demos here in “New in version 3.7″ then “Load at once from server”:

    http://www.trirand.com/blog/jq…..qgrid.html

    2) You can use custom formatter to define how your data should appear in the grid (couple of radio buttons, etc.). It is also possible to permit the user to click on the radio buttons directly without entering editmode. But you won't be able to use any automated way to save the data in the grid and in the cache object. You will have to specify yourself how the data should be saved in the grid and cache object.

    For instance, here is an example of a custom checkbox formatter enabling the user to click directly on the checkboxes in order to save the new data in the grid. (Here I am not working on local data but with the server so you will have to adapt the solution to your needs):

    function ajaxSaveColumns(rowid, colid) {

    in reply to: n is undifined error #95138
    Asshiah
    Participant

    Can you please explain a bit more what you are trying to do before encountering the problem and maybe post some code sample for us to look at it?

    I think the very least in your case would be to post the code that generates the json data your server send back to the jqgrid.

    Or an sample of the resulting json data.

    in reply to: how to add a name:value pair to json data? #95137
    Asshiah
    Participant

    You can find what you need here:

    http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data

    You should specify some userdata in the jsonreader to match the json data your server return.

    You can then get this data in the client side using jQuery(“grid_id”).getGridParam('userData') for instance.

    in reply to: Missing CSS on 3.7.1 #95134
    Asshiah
    Participant

    The different jquery-UI themes can be downloaded directly from the jquery-UI site:

    http://jqueryui.com/download

    You should use a ui.jqgrid.css file AND a jquery-ui theme css file in order for the grid to display correctly.

    The second one should be loaded first in your page.

    in reply to: Possible to check search filters before submit? #94982
    Asshiah
    Participant

    I have found how to enable function to be sent in the json string by the server, but it appears that the gridImport method won't work if a function is present in the configuration string.

    in reply to: Possible to check search filters before submit? #94981
    Asshiah
    Participant

    In fact, I am using the gridImport method in order to load the grid configuration.

    Is it possible to specify the dataInit attribute in colModel with a function when using the import method?

    Because on the server side, I can only specify a string, an integer, a boolean, but not a function directly.

    If i write the function in a string, is it possible to make the gridImport method to understand it as a function?

    in reply to: Possible to check search filters before submit? #94978
    Asshiah
    Participant

    Adding a datepicker to certain fields in advanced seaching is not possible then?

    in reply to: Possible to check search filters before submit? #94971
    Asshiah
    Participant

    I have tried using a datepicker to obtain the desired behaviour.

    But I can't get this working.

    I am using the colModel searchoptions for the date columns like this:

    in reply to: empty cell borders on IE7 #94782
    Asshiah
    Participant

    I couldn't find the problem but I did find a turnaround.

    I just made sure that if a cell is supposed to be empty in the database, I write ” ” in the jqgrid cell.

    Then the borders are shown normally in IE7 too without changing anything in other browsers.

    Asshiah
    Participant

    Hello,

    I Have a similar problem,

    I use the column chooser in order to allow the user to show/hide/reorder columns.

    But the thing is, when the user hides a column using the column chooser, and then uses it again to show the same column, I want this column to get back to its original position.

    Presently, the column is put at the end of all the columns shown in the grid.

    I could always use the column chooser's “done” fonction to reorder the columns as is the colmodel when showing columns (the columns order in this one is not modified when just hiding a few columns), but the user will not be able to reorder columns anymore, only show/hide them.

    In clear, is there a way to use the column chooser in order to show/hide/reorder columns, but being sure that a column that is hiden then shown us put back to its anterior position before being hiden?

    Thanks.

    in reply to: checkbox formatting and editing #94745
    Asshiah
    Participant

    In fact, this code fixes the problem in IE 8 but not in IE7 because in IE7 the behaviour when clicking a box is not the same.

    I also had to use this code in order to work in any current navigator plus IE7:

    function ajaxSaveUsers(rowid, colid) {

    in reply to: checkbox formatting and editing #94726
    Asshiah
    Participant

    Ok.

    I found the solution.

    It seems IE doesn't write checked in the html code of the checkbox input but write CHECKED in CAPS.

    So I had to use this code for the unformatter in order for it to work on any navigator:

    jQuery.extend($.fn.fmatter.checkboxcustom , {

Viewing 15 replies - 1 through 15 (of 49 total)

Stay connected with us in your favorite flavor!