jqgrid data is reordering automatically , in collapsegrid - jqgrid

when I am providing the dataobject to the jqgrid its getting reshuffled , not able to identify the cause, please see the working fiddlle fiddle jqgrid
the rows are not displaying in the order they are supplied, any help will be really appreciated.
Required out put is that all data should come in the order provided, please refer this fiddle
for more info.

I'm not sure that I correctly understand your requirements. I suppose that you should replace the options
"groupText":["getGrouptext"]
"datatype":"local"
"data":[...]
to
"groupText":["{0}"]
"datatype":"jsonstring"
"datastr":[...]
See http://jsfiddle.net/OlegKi/47g5pLv4/2/

Related

Google Sheets - QUERY order by dependent drop down

I am trying to setup a QUERY with dynamic ordering. I've tried to link the ORDER BY function to the output of the dropdown menu but that doesnt seem to work. I have recreated the problem with a simple example: https://docs.google.com/spreadsheets/d/1m3Lhm5lp2DW7XF8hRbDAiOAAsOyCXrie-Nc-0bWG6hA/edit?usp=sharing
I've created a table (3x4) with three variable and would like to dynamically sort the table by each variable through QUERY both ascending and descending.
Would also be interested to learn if it's possible to dynamically setup the direction (ACS or DESC).
Any suggestions would be much appreciated.
Kind regards,
Webko
try:
=QUERY({A2:C6}, "order by Col"&MATCH(F1, A2:C2, 0)&" "&G1)
where G1 dropdown is asc,desc

dynamic filters in ssrs to let user enter values

I have a report which displays Activity, product, Customer etc values. I need to provide filters (textboxes) so that the user entries values to it and based on that the rows get filtered(after refresh). Is this possible to achieve in ssrs. If yes, please help with how
Refer below links for SSRS :
http://www.sqlcircuit.com/2013/09/ssrs-how-to-add-input-parameters-in.html
https://romiller.com/2008/07/29/searchable-dependant-parameters-in-ssrs/
Local reports (RDLC) don't have the parameter bar. But you can make your own controls on the page to get the parameter values, and then use code to pass those in to your local report.
Googling RDLC parameter gives lots of advice, for example this video which shows how to do it:
How to create RDLC report with parameters

Magento collection order by name - string value

I have a grid in front end. and i need to put sort function for that grid column. I need to sort by billing name. I add bellow code into my collection;
if(!empty($data['sort_billto'])){
$collection->addAttributeToSort('billing_name', $data['sort_billto']);
}
From $data['sort_billto'] i am getting asc oe desc. That's fine, because this way works for int values. But not working for string, billing name.
Can anyone please help me.
Thank You
Usually your code should work, the problem may seem elsewhere. Give this a try
$collection->setOrder('billing_name', $data['sort_billto'])
If this doesnt work, debug your complete code.
HTH

JqGrid sorting & grouping dates

I have the following issue: I have a large grid, that is primarily sorted by date since the load. This particular table also has the ability to group, as shown in the following image:
(Sorry for posting an image like this, but thanks to the spam filter, i cant directly insert one here)
Issue is that when i group by date (do note that this behavior is not observed in other columns other than date) this happens:
But if i order the date in to the other way, such behavior is no longer observed
I should note also that this implementation is under ASP.MVC 3. I tried to format the date differently, but without avail.
Thanks for your time
If the problem is only the order of sorting (see comments to the question) I think one could solve the problem by the usage sorttype as function. See the old answer and this one for details.

JQGrid row selection

Hi
When i try to use JQGrid and load values from server (JSON load) , everything seems to work fine except that any row i click ,only the first rwo is selected. Any pointers as to where i could be going wrong?
Thanks
Sunil
Typically the problem exist if the JSON data has duplicate in the ids. For example if you place the same id in every row posted from the server you will have exactly the same behavior which you describe.

Resources