Hello,
Â
Your problem is here:
editoptions:{custom_element:function( value , options) {
var elm = $(‘‘);
elm.val( value );
// give the editor time to initialize
setTimeout( function() {
tinymce.init({selector: “textarea#CommentsRestrictions”});
}, 100);
Â
Please look all my code carfully.
Change this to
editoptions:{custom_element:function( value , options) {
var elm = $(‘‘);
elm.val( value );
// give the editor time to initialize
setTimeout( function() {
tinymce.init({selector: “textarea#” + options.id});
}, 100);
Â
Regards
Hello,
Â
Once created the colModel of the grid can not be changed after this.
Â
You can construct the columsn af the grid if you use ajax like this
Â
url : “yourjsonurl”,
dataType: “json”,
success : function(data, status, xhr) {
// get the colmodel form the dat lsomething like this:
var myColModel = data.colModel;
….
Â
$(“#grid”).jqGrid({
….
colModel : myColModel,
…
});
Â
Kind Regards
Hello,
Â
I do not think that this is a bug, as described in the title of the topic, but rather this is a expected behaviour.
Which search module is used – toolbar search or dialog search.
If you use toolbar search you can disable searchonEnter and do the desired behaviour.
For form search this instead is not available.
Â
Please look at the options in toolbar searching in the docs here.
Â
Regards
Hello,
Â
You already have the answer in another post.
Â
Regards
Hello,
Â
It depends which serch you use. See the events in the appropriate search module in the docs.
You will find a event before serching and event after serching which is maybe your solution – i.e befre search set the data type to json and after search set it again to local.
Â
Regards
Hello,
Â
I see where is the problem. – the id of editable cell is not the same as in form edit.
Below is the modified code, which works for me:
{ “name”:”ShipAddress”,
 “index”:”ShipAddress”,
 “edittype”:”custom”,
 “editoptions”:{
     “custom_element”:function( value }, options) {
       var elm = $(‘‘);
       elm.val( value );
       // give the editor time to initialize
       setTimeout( function() {
           tinymce.init({selector: “textarea#” + options.id});
       }, 100);
       return elm;
     },
     “custom_value”:function( element, oper, gridval) {
           var id = element[0].id;
           if(oper === ‘get’) {
               return tinymce.get( id ).getContent({format: ‘row’});
           } else if( oper === ‘set’) {
               if(tinymce.get( id )) {
                   tinymce.get( id ).setContent( gridval );
               }
           }
     }
Regards
Hello,
Did you have included the tinymce javascrip files. I’m going to test this.
Â
Regards
Hello,
Â
In which browser is this? Is this available in all popular browsers – IE, FF, Chrome?
Can you please not use modal option and see if this happen.
You can experiment with z-index – es.
Â
Regards
Hello,
Â
Thanks for the investigation.
You are right – we should made checking in order to have movement only in the current grid (and not in the subgrid or row that is custom created in grid)
Â
I will see if I can fix this for the next release – if so I will let you know.
Â
Kind Regards
Tony
Hello,
Â
We have successfully use tinymce with custom element and custom value function.
Â
Here is a fragment which work fine in form edit. Just try it in inline edit:
{ “name”:”ShipAddress”,
 “index”:”ShipAddress”,
 “edittype”:”custom”,
 “editoptions”:{
    “custom_element”:function( value }, options) {
      var elm = $(‘‘);
      elm.val( value );
      // give the editor time to initialize
      setTimeout( function() {
         tinymce.init({selector: “textarea#ShipAddress”});
      }, 100);
      return elm;
    },
    “custom_value”:function( element, oper, gridval) {
         if(oper === ‘get’) {
            return tinymce.get(‘ShipAddress’).getContent({format: ‘row’});
         } else if( oper === ‘set’) {
            if(tinymce.get(‘ShipAddress’)) {
               tinymce.get(‘ShipAddress’).setContent( gridval );
            }
         }
    }
Â
Try it and let me know if this work in inline edit.
Â
Regards
   Â
Hello,
Â
I’m not sure that I understand the problem.
Â
Regards
Hello,
Â
I’m not sure that this is practical. When you search on different table then they will have different column names whch will cause that data not to be filed.
Just to note that you can use the jqFilter on a diffrent form (not modal only) and in this different form you can add your tables, but you will need to write additional logic to post the table name when search.
Â
Kind Regards
Hello,
Â
Unfortunately no. The pivot gets all the data – convert it to the appropriate way and put it on the grid at once.
Â
Regards
Hello,
Â
Thank you for the investigation and the code posted.
I do not think that this fix is fine, since in a relative big data set (rows) this will slow the processes too much.
Â
Kind Regards
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top