jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 36 total)
  • Author
    Posts

  • Nicolas
    Participant

    No, sorry may be I wasn’t clear enough. There will always be the right number of items in the array returned. But here is what will happen :

    Before :
    [‘lastname’, ‘firstname’]

    After reordering ‘firstname’ :
    [[‘f’,’i’,’r’,’s’,’t’,’n’,’a’,’m’,’e’], ‘lastname’] :

    And if you reorder ‘lastname’ :
    [
    [‘f’,’i’,’r’,’s’,’t’,’n’,’a’,’m’,’e’],
    [‘l’,’a’,’s’,’t’,’n’,’a’,’m’,’e’]
    ] :


    Nicolas
    Participant

    Here is why I need to do that : I first load a grid with initial data. Then, my users are able to modify to grid; they can change filter, sort, grouping, etc. They can also add aggragates that were not in my initial data. Then, they can save the result in the database to load back the page later.

    Of course, I could update my initial data to keep track of all the changes made by the user. But I don’t like this solution, because it makes my code more complex, and there always a risk that I forget to update my data. So this is why I just prefer to merge the values returned by getstate and columns.

    Thank you for your reply. Now I understand why getstate doesn’t returns the aggregates.

    Regards!


    Nicolas
    Participant

    Hi Peter,

    Well, if you have a little bit of time once, this could be something to improvement on the grid.

    And thank you for you great work!

    Regards


    Nicolas
    Participant

    Ok. I’m using getstate to get a json object that I serialize before storing it in a database, so I can load it after when the user is reloading the page.

    So, does it means jqxGrid(‘columns’) will always returns more information about columns than jqxGrid(‘getstate’)?


    Nicolas
    Participant

    Ok thanks!

    In that case, may be I can use the checkbox property. Here’s what I need to do : when the user check/uncheck a checkbox, I need to trigger functionA. But if he clicks on the label of a checkbox, instead of triggering functionA, I need to trigger functionB only.

    Do you see a way to do this? I tried adding a click event, but it was triggering functions A & B at the same time.

    I’m pretty desperate, because I built my entire solution with jqListBox, and didn’t notice that problem. If I can find another workaround, I’ll have switch the entire list plugin.

    Regards


    Nicolas
    Participant

    Ok, I couldn’t reproduce exactly my case, but I think this jsFiddle is still fine to show the problem :
    http://jsfiddle.net/7L2vH/

    First, you need to click on one or more radios. Then, scroll the listbox. In my jsFiddle, you will see that the next line takes the value of it predecessor. In my app, they just always become uncheck each time the user scroll.

    Regards

    in reply to: Bug ? does not seems to work Bug ? does not seems to work #46119

    Nicolas
    Participant

    Oh sorry, I didn’t understand it like that. I thought the delay was set for after the mouse leave the host.

    in reply to: Disable horizontal scrollbar? Disable horizontal scrollbar? #45513

    Nicolas
    Participant

    Thanks Peter! Didn’t thought about this possibility. It works fine! Even if I use a custom renderer!

    in reply to: Disable horizontal scrollbar? Disable horizontal scrollbar? #45467

    Nicolas
    Participant

    Ok thank you! I guess I will will calculate the width of the content I put in the source, and make sure it’s not too big. But may be this could be a nice API to add 🙂

    Regards

    in reply to: No search for this forum? No search for this forum? #45466

    Nicolas
    Participant

    Ok sorry, I should I’ve been more clear. I means there no search box of “sub-forum”. Let’s say I have a question about only jqxListBox, I would like to search only in this part of the forum. Is there a way to do this other than adding the words “jqxListBox” in my search?


    Nicolas
    Participant

    Hi, I just saw that this problem has been fix in the 3.0.4 release! Thank you!


    Nicolas
    Participant

    I think that there is also a problem with the min function. If I ask the min of [null, null, 6], the footer is null. I didn’t try what happen if I have a value less than 0. Max returns me 6 on this example. I really think that there is a problem with our functions when they are handling null values. On my side, I won’t be able to use it because of that.


    Nicolas
    Participant

    Thank you. I already know how to create a custom aggregate, but it would be much more convenient if I could overwrite standard function, something like “$.jqxGrid.aggregate.count = function(…){…}”.

    I would also like to point out that the average function is broken. If you do the average of a column with null values, every null values is treated like it was a 0. It doesn’t make sense, because a null value isn’t 0, it is just null.

    Regards


    Nicolas
    Participant

    And is there a way to overwrite an aggregate function? Let’s say I want to redefine “count” or “avegage”?


    Nicolas
    Participant

    Ok, for now I’ll try to do this : I will create two hidden columns where I will extract the year and the month of the date. And when I’ll catch a groupchange event, I will replace my date column by the year column and the month column.

    But it would be great if there was a more convenient way to do create custom grouping. As it is now, grouping on dates aren’t really useful. Same thing with numeric : it would be much more useful if we could group numeric by range. It is fine if I have to write the function that tells how to group, but right now it is a little bit cumbersome to do it.

    Regards

Viewing 15 posts - 16 through 30 (of 36 total)