tony

Forum Replies Created

Viewing 15 replies - 301 through 315 (of 7,981 total)
  • Author
    Replies
  • in reply to: How do I only have only 1 subgrid expanded at any time? #115113
    tony
    Keymaster

    Hello,

    One possible solution is to use subGridBeforeExpand event.
    The event raises before expanding the new row.
    The code can be something like this – use grid options:

    Kind Regards

    • This reply was modified 11 years, 4 months ago by tony. Reason: adding a comment
    in reply to: Edit a predefined format number #115106
    tony
    Keymaster

    Hello,

    I have fixed the problem and have prepared the demo.
    You can look it here
    If you want to use the fixed version you can download it. See the links in the code tabs.

    Please let me know if this fixes for the problem.

    Kind Regards

    in reply to: JqGrid change table structure/layout #115103
    tony
    Keymaster

    Hello,

    I’m not sure that I understand the problem, but you can use the pivotgrid for this purpose.
    See our demo here and documentation here

    Kind Regards

    in reply to: Edit a predefined format number #115100
    tony
    Keymaster

    Hello,

    I have found a little bug while preparing the example. I will fix them and make the needed, so that you can use the inline editing in this case without problems.

    Thanks for finding this issue.

    Kind Regards

    in reply to: Edit a predefined format number #115094
    tony
    Keymaster

    Hello,

    To be a honest I do not have tested this.
    So my question is:
    Which editing module do you use?
    Form edit, inline edit or cell edit?
    Every such module has its own serialize function.

    I will check this and will try to prepare a example, since this is a basic question.

    Kind Regards

    • This reply was modified 11 years, 4 months ago by tony.
    in reply to: Edit a predefined format number #115089
    tony
    Keymaster

    Hello,

    The documentation explain it very goog. JavaScript does not understand numbers with decimal separators. Such numbers are treated as string. That is the reason that we display in grid the number with decimal separator as comma, but when edit it the predefined formatter convert it to a way that it can be understand for JavaScript.

    In order to solve your problem you will need to use custom formatter and unformat function and then use serializeRowData to convert back the number to a valid number, since your database understand numbers with decimal separator as point.

    Below is the code:

    Hope this helpls

    Kind Regards

    • This reply was modified 11 years, 4 months ago by tony.
    in reply to: CRUD updating grid after addRow or Edit #115082
    tony
    Keymaster

    Hello,

    I think that if your adding in database is ok, then the reason for this is tha initially your grid is sorted in some way and after adding the record , the grid is reloaded and your record is not visible. reloadAfterSubmit set to false will solve the problem.

    Another way with reloading the grid is to use appropriate sorting fields, so that the record can be visible after adding.

    Kind Regards

    in reply to: update a detail grid with two fields as primary key #115080
    tony
    Keymaster

    Hello,

    Curently we do not support multiple primary keys when updating the table.

    You can solve the problem in two ways:

    1 You will need to update your table to have a primary key.
    Just add a auto increment field in your detail table and the problem will be resolved.

    2. You can get the posted data when the operation is update and manually build your query.
    The code snip let can look like this:

    Kind Regards

    • This reply was modified 11 years, 4 months ago by tony.
    in reply to: jqGrid Download Builder #115011
    tony
    Keymaster

    Hello,

    I have added the download builder. Note that this download does not contain the demo files for grid, pivot and treegrid. In order to get your own build, please visit the download page here

    Kind Regards

    • This reply was modified 11 years, 4 months ago by tony.
    in reply to: custom view in FormEdit #114892
    tony
    Keymaster

    Hello,

    To create a textarea for that you use the setColProperty as follows:

    edittype = texarea and you use the editoptions to define the size of the text area…

    If you want only to view the field you can set it as readonly.

    The final code can look like this

    • This reply was modified 11 years, 4 months ago by tony.
    in reply to: Some advice to dinamically build combos #114874
    tony
    Keymaster

    Hello,

    In case of dynamic lists I think that this is a good implementation.
    Thanks for sharing

    Kind Regards

    in reply to: ajaxDelOptions is not working properly in 4.6 & 4.7 #114872
    tony
    Keymaster

    Please look at this demo in order to see the difference.

    Regards

    • This reply was modified 11 years, 4 months ago by tony.
    in reply to: ajaxDelOptions is not working properly in 4.6 & 4.7 #114871
    tony
    Keymaster

    Hello,

    The problem is that ajaxRowOptions belongs to the grid options, while the ajaxDelOptions belongs to the navigator (or delGridRow) method and this should be passed to the method.

    in reply to: jqGrid Download Builder #103905
    tony
    Keymaster

    Hell,

    Yes we plan to add this next week.

    Kind Regards

    in reply to: Help needed ! Custom formatting groupText #103860
    tony
    Keymaster

    Hello,

    This currently not possible and to be a honest a lot os users ask me this.
    I will try solve the problem.
    Will be happy if you post this as new feature in the UserVoice

    Kind Regards

    • This reply was modified 11 years, 4 months ago by tony.
Viewing 15 replies - 301 through 315 (of 7,981 total)

Stay connected with us in your favorite flavor!