OlegK

Forum Replies Created

Viewing 15 replies - 406 through 420 (of 968 total)
  • Author
    Replies
  • in reply to: Dynamically change column positions. #97705
    OlegK
    Participant

    You can use remapColumns method for example. See the documentation and this old answer.

    Best regards
    Oleg

    in reply to: how to set the column’s data type #97704
    OlegK
    Participant

    Probably there are misunderstanding. The server is the source of the data. The server components should know all informations about the database used to get the data: the database name, connection string, all tables name, the column names and its type. The only advice from the client side is the value of index property of the column where the user choosed to sort the data.

    It you do need the type of data you should describe your situation more exactly. You can use postData parameter of jqGrid to send any additional information to the server. It it is really needed you can send type information or other additional information which need the server with respect of the parameter.

    Best regards
    Oleg

    in reply to: fixing grid width calculation #97700
    OlegK
    Participant

    OK I see now. You merged the fix more quickly as I posted my comments here. 🙂

    Do you read my comment

    in reply to: fixing grid width calculation #97698
    OlegK
    Participant

    I posted my suggestions in GitHub here.

    Best regards
    Oleg

    P.S. If the way is better for you I could make all bug fixes or feature requests with the code in GitHub in the same way. I can additionally post in the Bug forum only my comments to the suggested

    in reply to: fixing grid width calculation #97694
    OlegK
    Participant

    OK I will do this in GitHub.

    If I past the text in the forum I always verify and modify in HTML mode, but I found one more strange behavior. Till you posted your reply, the strikethrough

    in reply to: fixing grid width calculation #97688
    OlegK
    Participant

    Hi Tony!

    I want mention, that now some texts in the code which was displayed as strikethrough (deleted) are displayed now as black. All lines with tw

    in reply to: Jqgrid is not working google chrome version 10 #97678
    OlegK
    Participant

    What you mean under “Alternative color”? jqGrid use jQuery UI temes

    in reply to: Format a date #97675
    OlegK
    Participant

    The end user should has input date in the native comfortable form which correspond to locale which use use. For example I use format like 31.03.2011 because I develop for Germany. It is good to use jQuery UI datepicker integrated in the jqGrid. Beacuse your question has no JavaScript code and no other information it is difficult to explain you more.

    Best regards
    Oleg

    in reply to: hidden rows and sorting #97672
    OlegK
    Participant

    I am not sure that hiding some rows in the grid is so good idea (see here some remarks), but if it is really needed you can use loadComplete as the place where you make rows hidden. Every sorting follow to rebuilding the grid contain, so all typical functions like beforeRequest and loadComplete are called at the end of sorting.

    Best regards
    Oleg

    OlegK
    Participant

    For the grid with local datatype (or in case of remote datatype but loadonce:true) it is better to get 'data' internal parameter of jqGrid. In case of pure remote data you can use getRowData without any additional parameters to get the grid contain.

    If you copy the contain of one grid to another one which are on the same page you should don't forget to assign new unique ids for all rows. The row ids will be used as the ids of

    elements of the corresponding table. How it is well known on one page all ids must be unique. So you have to assign the new ids for the second grid. The simple way can be to change the original ids assigning any prefix to row ids of the new table. For example if the first grid has row id = “1” you can copy it in the secon grid as id = “x1” (with the prefix “x”).

    Best regards
    Oleg

    OlegK
    Participant

    The old grid contain will be deleted inside of addJSONData internal function which will be called inside of $.ajax success handle.

    Just for fun you can include in your jqGrid treeANode: -2

    OlegK
    Participant

    You can call trigger('reloadGrid') from inside of $.ajax in general. Which probelm exist in your code is difficult to say. I am sure that the problem is outside the code which you here posted.

    I recommend you inclue always error handler in the $.ajax call. In your current code no trigger('reloadGrid') will be called in case of any errors.

    Best regards
    Oleg

    in reply to: IE bug? loading…dialog #97656
    OlegK
    Participant

    About the problems in IE compatibility mode I recommend to read this answer inclusive many comments.

    @ganlhi: If there are exist any other problem you should post the demo example (possibly simple) which can be used to reproduce the problem. I recommend everybody to make the demo as simple as possible. Typically during simplification of your original example you will see that after one step the problem is away and you will find the bug in your code.

    Best regards
    Oleg

    in reply to: jqGrid not working in Firefox 4 beta #97655
    OlegK
    Participant

    The information that some grid have some error in Firefox 4 can not help. If you post some bug report you should allways provide the corresponding demo. How you can verify,

    in reply to: Dynamic Control Reference #97651
    OlegK
    Participant

    Hello atrius,

    dynamically creating of the table used for jqGrid work fine. See the demo for example.

    You just have a bug in your code. Typical errors are: 1) use create

    element instead of

    element; 2) you initialize jqGrid (call $(“#MyGridData”).jqGrid({/*parameters of jqGrid*/})) before the corresponding
    element are placed on the page.

    Best regerds
    Oleg

Viewing 15 replies - 406 through 420 (of 968 total)

Stay connected with us in your favorite flavor!