PDA

View Full Version : [CLOSED] RowEditing Save Button



adelaney
Jun 15, 2012, 8:38 PM
Is there a way to update the RowEditing's save button text on the fly? I want to use the rowEditing for adding or updating records and want to have the button read "Add" or "Update" as is appropriate. I tried this (I gave my plugin and ID to make it easy to access):


App.rowEditor.saveBtnText="Add"

But that doesn't seem to work. However, if I go directly against the generated buttonID, e.g.


$("#button-1085-btnEl").text("Add")

That works fine, but I don't want to have to rely on that.

Daniil
Jun 17, 2012, 6:57 PM
Hi,

Please use:

App.RowEditing1.editor.floatingButtons.getComponen t("update").setText("Hello")