tony

Forum Replies Created

Viewing 15 replies - 181 through 195 (of 7,981 total)
  • Author
    Replies
  • in reply to: Save & Load Grid State #124178
    tony
    Keymaster

    Hello,

     

    Export to excel and export to pdf are custom buttons, which are added in dynamically in the PHP code. That is the reason not to restore them.

     

    Custom buttons are not restored, since we do not know about it (not exactly)

    But… I will think about this – maybe we will do something (I do not promise)

     

    Kind Regards,

    in reply to: Reset all search operator when click reset filter #124177
    tony
    Keymaster

    Hello,

     

    What you mean with – “reset operators”?

    Do you want to delete them or do something else?

    Please advise.

     

    Kind Regards,

    in reply to: jqGrid formatter and sorttype different #124170
    tony
    Keymaster

    Hello,

    Sorry that I do not mentioned this.
    Can you please the post the response from the server which causes the problem?
    The demo you provide is working fine.
    Thank you

    Kind Regards

    in reply to: jqGrid formatter and sorttype different #124163
    tony
    Keymaster

    Hello,

     

    sorttype as function have sense only if you use datatype local.

    You problem is in the server side sorting, since you you sorting is performed in server you will need to check your code at the server. jqGrid just accept the response after sorting and put the data in the grid.

     

    Personally I think you should avoid sorttype as function and check your code at server sorting.

     

    Kind Regards,

    in reply to: Save & Load Grid State #124158
    tony
    Keymaster

    Thanks Chris.

    With next release I hope that at end we will have a good docs.

     

    Kind Regards,

    in reply to: Save and Load filters not showing #124157
    tony
    Keymaster

    Hello,

     

    The problem you describe is “correct”.

    I will notify you when the problem is fixed.

     

    Thank you.

     

    Kind Regards,

    in reply to: Save & Load Grid State #124154
    tony
    Keymaster

    Hello Chris,

     

    First of all Thank you very much for posting this solution.

    Currently I do not have idea how to solve your problem with easy.

     

    Maybe you really will need to change the names (id’s) of the grids on the different pages.

     

    Just idea – after saving the grid state you may need to rename the key in localStorage like pagename+gridname, when loading you may need again to rename the key to gridname in order to  display correctly the grid.

     

    Kind Regards,

     

     

    in reply to: Save and Load filters not showing #124152
    tony
    Keymaster

    Hello Chris,

     

    Did you mean SaveState and LoadState jqGrid methods?

    If so, do you mean ToolBar filters?

     

    A small test case will be very helpful.

     

    Kind Regards,

     

    • This reply was modified 10 years, 9 months ago by tony.
    in reply to: jqGrid formatter and sorttype different #124151
    tony
    Keymaster

    Hello,

     

    Can you please post full (or demo) code with test data.
    Thank you.

     

    Kind Regards,

    in reply to: Jqgrid multiselect problem. #124144
    tony
    Keymaster

    Hello,

    I’m not sure that I understand the problem.
    Can you please provide a simple data that comes to the grid.

    maybe you can use http://jsfiddle.net/ in order to post your demo code.

    Regards

    in reply to: Jqgrid multiselect problem. #124141
    tony
    Keymaster

    Hello,

     

    I think that the problem you have is that you have missed to set the key:true option in the grid.

    This option indicates which column will act as id row. For local data sources this is obligatory.

    Try with the following settings:

    Please let me know if this solves your problem.

    • This reply was modified 10 years, 9 months ago by tony.
    in reply to: setValidationRules Documentation? #124104
    tony
    Keymaster

    Hello,

    We have added this feature. In the valiudations array you will need to set displayName property
     

     

    Enjoy

    in reply to: setValidationRules Documentation? #124079
    tony
    Keymaster

    Hello,

     

    The example you point cover the most options used in validation.

    The validation is made with seValidationRules method.

    To this function is passed array with the following options

    minValue => value

    maxValue=>value

    required=> true/false,

    format=> string – the data format that is expected to be checked

    The base types are

    “number”,”float”,”int”,”integer”,”boolean”,”email”,”url”, “date”, “time”, “datetime”, “ip”

     

    you will need to set it to true in order to have effect this – by example to define url you will need to :

     

    “url”=>true

    Additionally to that we have defined some custom types like this:

     

    As can be seen this is a public static array and if requiered there is a way to define your own validation rules. You will need just to extend this array with your own types.
     
    Please let me know if you have any other questions.
     
    Kind Regards,

    in reply to: Save & Load Grid State #124078
    tony
    Keymaster

    Hello,

     

    The method described from Will cover the paging and sorting.

    In order to mark tracks of the actions you point you will then need to use the appropriate events – for resizing, reordering.

    Example – for resizing you will need to use resizeStop , for reordering (sortable columns ) you will need to define the stop event like this

     

    Personally I think that this is not a trivial task and maybe it will require not trivial solution.

    Kind Regards,

    in reply to: jqGrid – Freezing columns with row spanning #124062
    tony
    Keymaster

    Hello,

     

    First of all sorry for the late answer.

     

    Thanks for the test case.

    The problem is not in jqGrid, but a way rowspan works. In order this to work the table must have another column which is not rowspaned. – I will explain.

    The froxzen columns clone the table and removes the columns that are needed to have a frozen property. The remaining table is the inserted into the div and this way we have a frozen property.

     

    In your case the first two column are rowspaned, but there is missing another which column which should fix the issue.

     

    At end we have the following content:

     

     

    You can check it and see that this does not work the way you want.

    In order to fix the issue, either set the city column to be frozen or just add rownumbers : true, which will add the another visible column

    Kind Regards,

    • This reply was modified 10 years, 9 months ago by tony.
Viewing 15 replies - 181 through 195 (of 7,981 total)

Stay connected with us in your favorite flavor!