Hello,
In the updateEvent(event) you can use $(event.target).val() to get the the value of the current edited select.
Regards,
Will
Guriddo Support Team
Hello,
The change event should work for the textbox field too. T
Guriddo Support Team
Hello,
Using getRowData when we are in edit mode will cause unexpected result and behaviour. This is well documented in the JavaScript documentation here
As far as understand from the code fragment, you try to post all the grid data when some value was changed. The question which I need to clarify is: if you try to post all the visible grid data is the all data in edit mode or only the current row is in edit mode – that is – you edit one row with inline edit and change some value of it and after this all the grid which is not in edit mode (except the current edited row) will be posted (or other)
Kind Rgards,
Will
Guriddo Support Team
Hello,
Unfortunatley this is not not build in feature. The reason to drop this support is that the AjaxFileUpload plugin is no more supported and it can’t be run with newer versions of jQuery.
Please let us know if you need help using another plugin.
Kind Regards,
Will
Guriddo Support Team
Kindly apologizes that I don’t have this tested.
The problem is that dataEvents is a array of objects – this another array is missed. dataEvents=>array(array(….),…,);
This is tested and work:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
$grid->setColProperty("TestType", array( "label"=>"Type", "width"=>70, "editable"=>true, "edittype"=>"select", "editoptions"=>array( "value"=>"{$types}", "dataEvents"=>array( array( "type"=>"change", "fn"=>"js:function(e){alert('change noted');}") ) ) ), "search"=>false, "sortable"=>true )); |
Sorry again for the inconvenience.
Kind Regards,
Will
Guriddo Support Team
Hello Kris,
You can check the new feature.
To enable this set the new grid option preserveSelection to true.
The code is available in GitHub.
Please let us know if you have any problems with this.
Kind Regards,
Will
Guriddo Support Team
Hello,
Sorry, but I do not have mentioted that you put dataEvents in not correct place – the dataEvents is a part of editoptions. Try this:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
$grid->setColProperty("TestType", array( "label"=>"Type", "width"=>70, "editable"=>true, "edittype"=>"select", "editoptions"=>array( "value"=>"{$types}", "dataEvents"=>array( "type"=>"change", "fn"=>"js:function(e){alert('change noted');}") ) ), "search"=>false, "sortable"=>true )); |
Kind Regards,
Will
Guriddo Support Team
Hello,
In the syntax is missed “js:” prefix. We have described how to work with JavaScript in PHP here
In your case this work you can try with this:
|
1 2 3 |
$grid->setColProperty("TestType",array("label"=>"Type", "width"=>70, "editable"=>true, "edittype"=>"select","editoptions"=>array("value"=>"{$types}"), "search"=>false, "sortable"=>true,"dataEvents"=>array( "type"=>"change", "fn"=>"js:function(e){alert('change noted');}"))); |
Kind Regards,
Will
Guriddo Support Team
Hello,
Thanks for reminder. The work is on progress.
Kind Regards,
Will
Guriddo Support Team
Hello,
We have send you a e-mail.
Kind Regards,
Will
Guriddo Support Team
Hello kris,
Thank you for the suggestion. We will try to implement this feature this week. Unfortunately it will be not available in the upcoming (today) 5.3.1 release. We will notify you when it is ready.
Kind Regards,
Will
Guriddo Support Team
Hello Kris,
This is partially done when this apply to the width – using the two grid options autowidth and responvive – both set to true. The problem is with the height. The setGridHeight method set the height only for the data parat of the grid omitting the other parts like headers, pager toolbars, searchbars and other.
This is really a problem since we do not know if other parts will be created which apply to the grid height (since a external methods are used)
If you have a idea how to resolve the height problem this would be great.
Kind Regards,
Will
Guriddo Support Team
Thank you. Good to know.
We will publish the release at end of this week.
Kind Regards,
Will
Guriddo Support Team
altRows are fixed – check the example provided in my link above.
Guriddo Support Team
We can not reproduce the horizontal scroll. Can you please using the example from my link make the settings so that this problem is reproduced?
Thank you.
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top