jQWidgets Forums
Forum Replies Created
-
Author
-
April 28, 2016 at 1:22 pm in reply to: Remove sorting and filtering applied on columns at once Remove sorting and filtering applied on columns at once #83986
I guess I am asking whether it would be possible to implement a new function within jqxGrid() to clear all without initiating a new AJAX call back to the server. I am controlling three grids with a search box, but two of the grids are dependent on a click action for the first grid, which means when a new search is entered, the data in the two other grids becomes invalid. So I would want to “clearall”, so that when the first grid is rendered a second time and cell clicked, then the two other grids do not still have filters/sorts applied.
I can deal with this for now as it is currently an edge case, but I think your suggestion of the bindingcomplete callback is a bad idea as it may cause issues with the valid grid data being applied, unless I added some messy code to track different stages of the grid rendering.
April 27, 2016 at 7:33 pm in reply to: Remove sorting and filtering applied on columns at once Remove sorting and filtering applied on columns at once #83940Is there any effort to fix this bug? It is almost 1.5 years old.
I am trying to call “clear”, then “clearfilters”, then “removesort” without having to “destroy” and reinitialize.
April 19, 2016 at 5:06 pm in reply to: Changing AJAX request, new data fails to bind Changing AJAX request, new data fails to bind #83657Figured this out. Needed to add to the rendergridrows callback function of the jqxGrid() initialization:
rendergridrows: function(data){ dataAdapter.records = data.data; return dataAdapter.records; },
I had my root set to “data”, which is why the initialization worked properly. Why didn’t it work on the update?
April 19, 2016 at 1:14 pm in reply to: Grid "rendered" function fires twice Grid "rendered" function fires twice #83650I could not find anything in the documentation on the “type” variable that you have going into that callback function. Can you please elaborate on what this variable is and does?
Thank you
April 18, 2016 at 3:06 pm in reply to: Grid "rendered" function fires twice Grid "rendered" function fires twice #83599Is this a known issue that will be fixed in a later version?
Sorry, I don’t want my post to get buried and this library is business-critical for my company.
April 15, 2016 at 12:43 pm in reply to: Grid "rendered" function fires twice Grid "rendered" function fires twice #83532Is this a known issue that will be fixed in a later version?
I was worried that the event wouldn’t properly bind to the cells, so I have created a boolean variable that will check if the rendered callback has run already instead of what you suggested.
July 18, 2014 at 3:48 pm in reply to: Buttons in Grid Disable Events Buttons in Grid Disable Events #57416Just a side note: This same thing happens when I resize the page, and I have had similar problems with a grid where I have files in it and embed a progress bar for each file in the grid.
Ah nevermind I got it!
I did a
var settings = {
formatData: function(data){
data = JSON.stringify(data);
return data;
}
}
var myDataAdapter = new $.jqx.dataAdapter(mySource, settings);I can’t seem to change the format of the data going to the server. When I console.log inside the formatData method, it looks like what I should be sending to the server an object with all of its properties, but then it still sends it as param1=1¶m2=2¶m3=3&etc…
Any ideas how to do this?
OK thank you.
If I use the formatter, will it convert a string to another type? Or does it have to be cast as the column field’s set type before it is bound?
-
AuthorPosts