In an Iggrid, is there a way to enable the Done button programmatically?
Building a site for translation of texts from one language to another, so there are 2 columns, TextToTranslate and TranslatedText
The scenario is as follows:
1. The user click on a row in the grid
2. An Ajax Call take the TextToTranslate in the selected row, translate it "automatically" and put it in the TranslatedText column
$("#igGridText").igGridUpdating("editorForKey", "TranslatedText").igEditor("value", translateTextToAnotherLanguage);
Everything is fine until here... the Done button is not enabled, which is fine, but..
3. We happens to be able to verify that the text is "good enough", and if it is.... We like to enable the DONE button programmatically, so that the user just have to klick it!
Is this possible!?
Regards
Mikael Segerby
Hello Mikael,
There is no public method or property to enable the done button programmatically. However there is a private method _notifyChanged which you can use like this:
$("#igGridText").data("igGridUpdating")._notifyChanged();
Hope this helps,Martin PavlovInfragistics, Inc.
This seems does not work anymore in version 16.2.
Hello Martin,
Can you show a demo code that clears me the correct position to write the code $("#MyGrid").data("igGridUpdating")._notifyChanged(); , I want these buttons (Done/Cancel) to be show on single click row selection. It is gigving me error Uncaught TypeError: $(...).data(...)._notifyChanged is not a function
Actually, the main problem we facing that if we access this IgGrid on a phone which has small resolution so on double tapping,the browser on that respective phone first zooms in and than on tapping again double it allows to open row in edit mode,so here if are able to enable the Done/Cancel buttons on single click probably the problem can be solved.
It did the job!
Thank you, for a fast reply.