lorife

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 69 total)
  • Author
    Replies
  • in reply to: problem with responsive option #127692
    lorife
    Participant

    Hello, I will try to create a demo too

    in reply to: problem with responsive option #127690
    lorife
    Participant

    Hello,

    I’m using jqgrid 5.5.5, bootstrap v.4.5.0, jquery 3.6.0

    all setups are standard, nothing customized.

     

    thank you!

    in reply to: remapColumns with subgrid and checkbox #127677
    lorife
    Participant

    I created a jsfiddle.

    in this test I would like to have name, id, button but keep the subgrid in the beginning:

    https://jsfiddle.net/lorife/dusqww2w/

    consider that if I set:

    subGrid: false

    it works

    • This reply was modified 4 weeks ago by lorife.
    in reply to: jqgrid 5.5.2 problem after downloading a file #127563
    lorife
    Participant

    I will try to create a working demo.

    as it will take some time, I wanted to let you know the problem because maybe you already knew something about it considering the changes from 5.5.1 to 5.5.2

    I will let you know.

    thank you,

    Lorenzo

     

    in reply to: some problems #127394
    lorife
    Participant

    Hello,

    do you have any news regarding autosize when the name of the column is longer than it’s content?

    It’s so ugly to see all column names truncated.

    Thank you!

    Lorenzo

    in reply to: jqgrid and select 2 problem #127393
    lorife
    Participant

    Hello,

    I understand.

    I tried to create a jsfiddle but how can I simulate an ajax call as in “select 2 function” – row 9 ? I lost an hour trying to do it but it does not work.

    Sorry for not saying it but I’m using last version of everything. So last available version of jqgrid and select2.

    If you want a can create a demo and send it do you then you can adapt it.

    Lorenzo

     

     

    in reply to: jqgrid and select 2 problem #127388
    lorife
    Participant

    Hello,

    I tried to put it on jsfiddle but it’s not working. I don’t know how to make that kind of ajax call.

    I will try to write the code here hoping you can simulate it.

    MAIN JAVASCRIPT:

    SELECT2 FUNCTION

    PHP:

     

    So as you can see PHP returns ID, text, and level.

    When outside of jqgrid I can do

    var ExtraData = $(this).select2(‘data’)[0];
    if(ExtraData){
    vLev = ExtraData.level;
    }

    But When inside jqgrid it looks like it returns just id and text but it’s missing all the extra values.

    in reply to: Reordering rows #127329
    lorife
    Participant

    thank you!

    in reply to: some problems #127254
    lorife
    Participant

    I’m sorry I have one last question.

    Is there a way to reduce row height?

    I tried:

    padding-top: 0.1rem;

    padding-bottom: 0.1rem;

    but it just changes padding top (no bottom).

    Any ideas?

    in reply to: some problems #127253
    lorife
    Participant

    Ok thank you for the suggestion!

    in reply to: some problems #127251
    lorife
    Participant

    Also, please try to consider what I suggested regarding the header.

    I would like to use this new function but I cannot because the grid in my project starts empty and it displays all the columns name truncated. It’s really bad to see.

    thank you again.

     

     

    in reply to: some problems #127250
    lorife
    Participant

    Thank you.

    for some reason your suggestion did not work but it worked this:

    .ui-jqgrid .ui-jqgrid-btable tbody tr.jqgrow td {
    padding-right: 0.75rem;
    }

     

    in reply to: some problems #127248
    lorife
    Participant
    1. You might add 2 new parameters, like: MinAutoWidth, MaxAutoWidth (for each column) so that it will never go too short or too long
    2. Ok I will not use autowidth on that column, which is not a bad idea.
    3. ok, also if right padding is not that bad to add…

    Just to give you a second opinion: I program also in delphi and I use devexpress grid. Those grids function like that:

    • BestFit is on the cell but if it’s shorter than the header they use the header
    • Each column has BestFitMaxWidth, MinWidth properties
    • right padding is the same of left padding

    this is just to give you some ideas.

     

    in reply to: some problems #127242
    lorife
    Participant

    probably you were still releasing because now I see some changes and some other problems too:

     

    1. if the width of content of the cell is lower than the name of the column the width should be based on the name of the column
    2. the button really does come up bad…width is not handled correctly and paddings are 0.
    3. check for example the first column, I really think the right padding should be the same of left padding. Of course if the longest is the cell header the right padding should be the same of the left padding of the header.

    what do you think?

    i updated jsfiddle

    • This reply was modified 1 year, 10 months ago by lorife.
    • This reply was modified 1 year, 10 months ago by lorife.
    in reply to: some problems #127241
    lorife
    Participant

    Hello,

    thank you for answering me and for the great support.

    However, I tried but I do not see it working. Could you check my jsfiddle? first column still have missing numbers

    Thank you,

    Lorenzo

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

Stay connected with us in your favorite flavor!