Problem with Editing

I have a button in a grid that changes the inline template and starts editing by calling the 'startEdit' method.

Why does this trigger a 'save' on the current data record?

3 Replies

SS Steve Snell June 18, 2015 08:36 AM UTC

My Code:-
           
col.HeaderText("Actions").Commands(command =>
             {
                 command.Type("detail")
                        .ButtonOptions(new Syncfusion.JavaScript.Models.ButtonProperties()
                        {
                            Size = ButtonSize.Mini,
                            Text = "Result",
                            Click = "onClick",
                        }).Add();
             })

   function onClick(args) {

            $("#Editing").ejGrid("option", { "editSettings": { editMode: "inlineFormTemplate", inlineFormTemplateID: "#result-edit-template" } });

            $("#Editing").ejGrid("startEdit", this.element.closest("tr"));
 
    }



SS Steve Snell June 18, 2015 08:56 AM UTC

After clicking button the inline editor opens then immediately after, as I have said, a save is performed resulting in the inline editor closing .... meaning I never get to edit the record. 


GV Gowthami V Syncfusion Team June 19, 2015 01:01 PM UTC

Hi Steve,

Thanks for using Syncfusion products.

We considered this “inlineFormTemplate editing is not working while using startEdit method” as an issue and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

Please let us know if you have any queries.

Regards,
Gowthami V.

Loader.
Up arrow icon