jQWidgets Forums
Forum Replies Created
-
Author
-
December 20, 2013 at 4:19 pm in reply to: Bug? 'groups' returns array of char after reordering groups Bug? 'groups' returns array of char after reordering groups #46835
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’]
] :December 13, 2013 at 2:33 pm in reply to: Aggregates not in getstate value? Aggregates not in getstate value? #46490Here 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!
December 13, 2013 at 1:57 pm in reply to: Why groups are closed when sort/filter change? Why groups are closed when sort/filter change? #46487Hi 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
December 12, 2013 at 9:54 pm in reply to: Aggregates not in getstate value? Aggregates not in getstate value? #46445Ok. 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’)?
December 12, 2013 at 3:26 pm in reply to: Keep state of items when ListBox scrolls? Keep state of items when ListBox scrolls? #46424Ok 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
December 12, 2013 at 2:47 pm in reply to: Keep state of items when ListBox scrolls? Keep state of items when ListBox scrolls? #46421Ok, 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
December 6, 2013 at 3:48 pm in reply to: Bug ? does not seems to work Bug ? does not seems to work #46119Oh sorry, I didn’t understand it like that. I thought the delay was set for after the mouse leave the host.
November 28, 2013 at 8:05 pm in reply to: Disable horizontal scrollbar? Disable horizontal scrollbar? #45513Thanks Peter! Didn’t thought about this possibility. It works fine! Even if I use a custom renderer!
November 28, 2013 at 3:20 pm in reply to: Disable horizontal scrollbar? Disable horizontal scrollbar? #45467Ok 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
November 28, 2013 at 3:17 pm in reply to: No search for this forum? No search for this forum? #45466Ok 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?
November 12, 2013 at 8:59 pm in reply to: Bug? Columns don't keep width when grid is grouped/ungrouped Bug? Columns don't keep width when grid is grouped/ungrouped #32527Hi, I just saw that this problem has been fix in the 3.0.4 release! Thank you!
October 9, 2013 at 9:00 pm in reply to: Suggestion : change aggregate's function count Suggestion : change aggregate's function count #30512I 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.
October 9, 2013 at 5:47 pm in reply to: Suggestion : change aggregate's function count Suggestion : change aggregate's function count #30502Thank 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
October 9, 2013 at 5:23 pm in reply to: Suggestion : change aggregate's function count Suggestion : change aggregate's function count #30499And is there a way to overwrite an aggregate function? Let’s say I want to redefine “count” or “avegage”?
October 9, 2013 at 2:18 pm in reply to: Special grouping for columns with dates? Special grouping for columns with dates? #30494Ok, 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
-
AuthorPosts