We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid and ootb AddEdit screens

Thread ID:

Created:

Updated:

Platform:

Replies:

117992 Jan 17,2015 12:02 PM UTC Jan 27,2015 08:50 AM UTC LightSwitch HTML 5
loading
Tags: Grid
Carsten Kreißl
Asked On January 17, 2015 12:02 PM UTC

Hi, all.
Is it possible to use lightswitch out-of-the-box AddEdit screens with the grid control?
Regards, Carsten

Ragavee U S [Syncfusion]
Replied On January 19, 2015 03:42 PM UTC

Hi Carsten

Currently we are working on your requirement to use lightswitch out-of-the-box AddEdit screen in grid control, for editing/adding a record to the grid. We are facing few complexities i.e, the fields are disabled while adding. So we will analyze and update you the response on Jan 20, 2015. We will appreciate your patience until then.

Thanks & Regards

Ragavee U S



Ragavee U S [Syncfusion]
Replied On January 20, 2015 03:13 PM UTC

Hi Carsten

We regret for the inconvenience caused.

Since we are still facing complexity, while adding new record to the grid using the lightswitch out-of-the-box AddEdit Screen, we need some more time to analyze the issue. So we will update you the response on or before Jan 22, 2015. We will appreciate your patience until then.

Regards

Ragavee U S



Alan Sangeeth S [Syncfusion]
Replied On January 23, 2015 03:58 AM UTC

Hi Carsten,

Thanks for your patience.

We are glad to let you know that we have achieved your requirement (“AddEdit screen in grid control, for editing/adding a record to the grid”) and the same can be downloaded from below link.

Sample: http://www.syncfusion.com/downloads/support/directtrac/117992/local-lightswitch1153915538.zip

In the above sample, on toolbar Add/Edit button click event we have prevented the default action and displayed Lightswitch AddEdit Screen and after saving the record in AddEdit Screen we have refreshed Grid to reflect the changes. Please refer the following code snippets.

itemTemplate.ejGrid(

            {

...

toolbarClick: function (args) {

                    switch (args.itemName) {

                        case "Add":

                            args.cancel = true; //Prevented default action

                            myapp.showScreen("AddEditTable1Item", null, {

                                beforeShown: function (addScreen) {

                                    var ord = new myapp.Table1Item();

                                    addScreen.Table1Item = ord;

                                }

                            });

                            break;

                        case "Edit":

                            if (!($.isEmptyObject(selectedData))) {

                                args.cancel = true; //Prevented default action

                                myapp.showScreen("AddEditTable1Item", [selectedData])

                            }

                            break;

                    }

                }

myapp.AddEditTable1Item.beforeApplyChanges = function (screen) {

    // Write code here.

    var obj = $("#Table1Item").ejGrid("instance");

    obj.refreshContent();

};

Please let us know if you need any further assistance.

Regards,
Alan Sangeeth S



Carsten Kreißl
Replied On January 23, 2015 05:13 PM UTC

Hi.
Thanks a lot. I will give this a try!
Carsten

Ragavee U S [Syncfusion]
Replied On January 27, 2015 08:50 AM UTC

Hi Carsten,

Thanks for your update.

Please try the sample and get back to us if you have any further queries. We will be happy to assist you.

Thanks & Regards

Ragavee U S



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;