Hello,
Sorry, but I have difficulty to understand the problem.
Can you please explain it more detailed and possible with example?
Thank you
Kind Regards,
Will
Guriddo Support Team
Hello,
I’m not sure that I understand the requirement.
Can you please provide simple example so that we understand correct exactly what you mean?
Thank you for your efforts.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you very much finding this problem.
I need to note that this problem exist only if the option sortname in grid options is not set. In case it is set there it is working correct. The sortname in grid options is used as a last sort column.
The fix provided here IMHO is not correct, since if the user want to add additional sorting it will be not send to the server.
We have fixed the problem in GitHub and you can try it.
The fix look like this
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
var tmpordarr = []; // add temp array to store the group sorting for(gi=0;gi<grp.groupField.length;gi++) { var index = grp.groupField[gi]; $.each(ts.p.colModel, function(cmIndex, cmValue) { if (cmValue.name === index && cmValue.index){ index = cmValue.index; } }); tmpordarr.push(index +" "+grp.groupOrder[gi]); // column push the sort string } gs = tmpordarr.join(); // build the grouping sort string if( $.trim(prm[pN.sort]) !== "") { // if sortname is set add it with the sortorder prm[pN.sort] = gs + " ,"+prm[pN.sort]; } else { // is not remove the sort order in order to prevent any inconsistency prm[pN.sort] = gs; prm[pN.order] = ""; } |
Kind Regards,
Will
Guriddo Support Team
Hello,
Correct – the value which is passed to the custom excel formatter is already formated – i.e it contain $, which causes the problem. The bug here is that the value should be passed as it comes from the server or from the local data of it original format.
Kind Regards,
Will
Guriddo Support Team
Hello,
The problem is that your value already contain “$” in the value and Excel format it again, which causes this error.
To resolve currently the situation (until we fix the problem) you will need to define a replace_format function in your export options to replace the $ like this:
|
1 2 3 4 5 6 7 8 |
... exportoptions : { excel_parsers: false, excel_format : "[$$-45C]\ #,##0.00_-", replace_format : function(v) { return v.replace('$',''); } } |
Kind Regards,
Will
Guriddo Support Team
Hello,
Sorry for this inconvenience. The problem is that your post contain link and in this case it automatically is going to pending moderation. No option to disable this.
Our problem was that we do not enable notifications when a message is in moderation mode.
Fixed now.
Thank you
Kind Regards,
Will
Guriddo Support Team
Hello,
As promised – we investigate and accept your solution for this problem. It is published in GitHub and will appear in the next release.
Thank you very much
Just small note – it is not a info_dilaog function, but a alert message that appear in navigator when try to edit row without selection.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thanks. We will investigate the problem and replay ASAP.
Kind Regards,
Will
Guriddo Support Team
Hello Kris,
We have fixed the problem in GitHub. You can check it.
Thank you very much.
Kind Regards,
Will
Guriddo Support Team
Hello,
We have fixed the code for issue1. The build is in GitHub.
Thank you
Guriddo Support Team
Hello Kris,
Thanks. I will investigate the problem and replay ASAP.
Kind Regards
Will
Guriddo Support Team
Hello,
Thank you very much for the description of the problems and solutions provided.
Issue1: Yes you are right and solution provided seems to be ok, but I want to extend this idea and use the existing options in coloptions. I think there is a situation, where the sorting on grid header should be enabled, while the sorting should not appear in column menu. I suggest to use the following:
|
1 2 3 4 5 6 |
cm = ts.p.colModel[index], op = $.extend({sorting:true, columns: true, filtering: true, seraching:true, grouping:true, freeze : true}, cm.coloptions); ... if(op.sorting && ts.p.colModel[index].sortable) { // build here the menu } |
This way if sortable options is false, sorting will not appear. It will not appear if the sorting options in coloptions is false too.
Issue2: The icons in header sorting and its appearance I think should be not connected with these in column menu. For now I will make no changes in this problem.
Thank you again
Kind Regards
Will
Guriddo Support Team
Hello,
Can you please post working demo or send us a link to the problem?
Kind Regards,
Will
Guriddo Support Team
Hello,
It depends where you want to add the new data – local or server side. Inpriciple to clone(copy) row you can use method to get the selected rows and add it to the grid – see methods getRowData and addRowData see docs here
After you add the rows with certain ids(see addRowData) you can simple call the form method to edit them.
Since your explanation is very common, I can give you a common answer in principle.
Kind Regards,
Will
Guriddo Support Team
Hello,
I’m not sure that I correctly understand the question.
Did you mean that the selected data should be copied in some buffer and then pasted to a edit form.
Can you please explain the requirement more detailed?
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top