Hello,
You will need to sort the data by Type, before to use it in grouping. As of version 4.6 or 4.5 (I can not remember exact) the data should be sorted.
Your data is not sorted.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the recommendation. That is actually very good idea.
We will try to implement it in the next release.
Kind Regards,
Will
Guriddo Support Team
Hello,
Suppose that you know the id’s of the main grid that you do not want to expand.
Following this forum post
You can
|
1 2 3 4 5 6 7 8 9 |
... gridComplete : function() { var rowidnottoexpand =...; for(var j =0; j < rowidnottoexpand.length; j++ ) { $("td.sgcollapsed","#"+rowidnottoexpand[j]).empty().unbind("click"); } }, |
Kind Regards,
Will
},
Guriddo Support Team
Hello,
Ok. It is not enought as explanation, but basically you can use subGridBeforeExpand. As of documentation:
The event is raised just before expanding the grid. When set, this event should return true or false. If it returns false the subgrid row is not expanded and the subgrid is not opened.
In your setup you can
|
1 2 3 4 5 6 7 8 9 10 11 |
$(“#jqGrid”).jqGrid({ subGrid: true, subGridBeforeExpand : function (pID, id ) { if(condition not to return rows) { return false; } else { return true; } }, …… }); |
Hope this help for this base requierment.
Kind Regards,
Will
Guriddo Support Team
Hello,
I think it is something out of our support.
Try not to build the list dynamically – i.e put a static list.
If with static list is ok, the the problem is in building our list.
Kind Regards,
Will
Guriddo Support Team
Hello,
I’m really loast on what is your problem.
Please, check your code again.
The expression:
|
1 2 3 |
... select_option=select_option+''+ pipeline_names<em class="d4pbbc-italic"></em>.pipeline_name+''; .... |
is wrong. I think you mix PHP with JavaScript.
Kind Regards,
Will
Guriddo Support Team
Hello,
The question is common and I can not provide you with the right answer.
It is possible that you can know in main grid that there are no subgrid in some rows or you do not know in advance that?
There are different situations. Please, give us more information?
Kind Regards,
Will
Guriddo Support Team
Hello,
When using local data in most cases you will not to configure the jsonReader.
Moreover in case of localData we use localReader.
The last version contain autodetection of the data (in most case). So if you do not have something special you should not configure the reader.
You can look at our documentation page here
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you very nuch for the test case. Only this way we can help quick and in time.
No to the problem.
It seems you forgot to set the datatype to the appropriate type. In your case this is local, since you use a array. We have tested your code and it works when a datatype is set to local and not work when it is left (since default is xml). Here is the working code:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
$.ajax({ mtype:'GET', dataType: "json", //dataType T has to be in UPPER case url:'illumina/xhr_manage_samples_pipeline', success: function(data){ column_name=data.column; //get column names model=data.model; //holds model for column sample_details=data.sample_details; //row datum //json reader $("#grid_illumina_manage_samples2").jqGrid({ jsonReader: { repeatitems: false, id: "" }//json_reader ends colNames: column_name, colModel: model, datatype: "local", data: sample_details, pager: '#pager_illumina_manage_samples2', gridview: true });//grid ends }//successs ends });//ajax ends |
Kind Regards,
Will
Guriddo Support Team
Hello,
Maybe one possible solution is to configure the deep of the search node results. We will see what we can do for this purpose.
Kind Regards
Will
Guriddo Support Team
Hello,
If the grid cell contain input element we do return from the cell before executing any action. The onselectRow and onSelectCell are not executed.
The only event which executes is beforeSelectRow. Note that if this event return stop noting is executed.
To catch the event you can do something similar:
|
1 2 3 4 5 6 7 8 9 10 11 |
beforeSelectRow : function( id, event) { if($(event.target).is(":checkbox")) { if($(event.target).is(":checked")) { // do something } else { // do something } } }, |
Kind Regards,
Will
Guriddo Support Team
Hello,
I highly recommend you to search this forum.
You will need just to use the search word ‘datetimepicker’.
In principle you can use dataInit event in colModel editoption properties to call datatime picker.
Regards,
Will
Guriddo Support Team
Hello,
Not sure hat you exactly mean, but can you please post a example with data? You use jsfiddle to show what you mean.
Thank you.
Kind Regards,
Will
Guriddo Support Team
Hello,
You can load a certain amount of data locally using the loadonce parameter set to true.
This means you can load at client side about 1000 rows and perform what you want.
Sorting can be done at server and this depends on your needs.
You may need to search this forum- there are a lot of post like server side paging and client side sorting or vice versa.
You may look here , but in your case you should change the conditions.
Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top