lorife

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 66 total)
  • Author
    Replies
  • 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, 5 months ago by lorife.
    • This reply was modified 1 year, 5 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

    in reply to: some problems #127239
    lorife
    Participant

    Thank you again.

    Regarding .2 I understand what you’re saying.

    But still, on a configuration like this, shouldn’t you something to fix the view?

    Please check this attachment:

    https://mega.nz/#!2JwWWSQL!QRFay4GIvaEQBgnrxoIxxxiWUFa079becJoDdCukEO8

    i have added some notes

     

    in reply to: some problems #127237
    lorife
    Participant

    Hello,

    first of all thank you so much for your answers and for the fixes.

    1. It is fixed on firefox but not on Chrome (for example)
    2. I’ll try to explain better. Check my example on jsfiddle. Expand row 1 and you will see that the subgrid is wider than the main grid, which is fine. but it’s not very “nice” to see that half of the column is gray, the exceeding part is white. also I can see the vertical margin of the main grid “cutting” the “name” column which it’s not correct I think. subgrid should go “on top”, shouldn’t it?
    3. Check my example on jsfiddle. I added “autosize” in the column and “autoResizing” in the grid. but it does not autoresize anything. Even your demo does not autoresize to me. I am talking about columns not the whole grid. I even try to double click the margin of the column but it does not do anything.
    4. Thank you for that.
    5. Great, thanks.
    6. Good to know, thanks.
    7. This is related to nr 2, column autowith (not grid but column) in nr. 2 I say that I cannot make column autowidth work on jsfiddle. Here i’m saying that on my pc i can make it work but it does not work correctly. a number like 19020012465 looses it’s last numbers. I would like to show you but first I need column autowidth to work on jsfiddle.
    8. This is new. I corrected the language file for Italian. I would like to send it to you so you can check it. You can find it here: https://mega.nz/#!aBJTnK5C!CeRyD7exRu-WikIRpMTLAsNmtV5Y7v6IiHM3CpXJWaM

    Thank you.

    in reply to: actions button #126959
    lorife
    Participant

    For some reason on jsfiddle grid do not appear until i resize the page, this do not happens in the real project. So if you do not see the grid, resize it and you will see the problem with the actions button.

    Also, I found out the problem is with:

    autowidth:true

    with that enabled, i have the problem. If I disable it everything works.

     

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

Stay connected with us in your favorite flavor!