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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Externale element on CRUD

Thread ID:

Created:

Updated:

Platform:

Replies:

128215 Jan 9,2017 10:37 AM UTC Jan 25,2017 12:13 PM UTC ASP.NET Core 3
loading
Tags: Grid
Nicholas Picardi
Asked On January 9, 2017 10:37 AM UTC

Hi all,
I have a question on CRUD model,
I have the ability to add an external command type CRUD in addition to the usuaL Add, Edit, Delete?
because I wanted to insert an external command in the toolbar.

Regards,

Nicholas

Jayaprakash Kamaraj [Syncfusion]
Replied On January 10, 2017 01:05 PM UTC

Hi Nicholas, 
 
Thank you for contacting Syncfusion support. 
 
Query 1: I have the ability to add an external command type CRUD in addition to the usuaL Add, Edit, Delete? 
 
We suspect that you want to perform Excel-like editing in Grid. We will maintain the batch changes before the save operation in Grid, in order to save bulk records(added/edited/deleted). 
 
Please refer to the below online sample link to know more about performing Excel-like editing in Grid. 
 
 

 


Query 2: I wanted to insert an external command in the toolbar. 
 
We are unclear about your query, please share clear information to serve you better.  
 
Regards, 
 
Jayaprakash K. 


mani
Replied On January 24, 2017 04:26 PM UTC

Nicholas,
I tried inserting an external "Add" button in the tool bar and it seem to be working.  Try this :
        <ej-grid id=....

            <e-toolbar-settings show-toolbar="true" 
            custom-toolbar-items='new List<object>() { new Syncfusion.JavaScript.Models.CustomToolbarItem() {TemplateID = "#AddRecord"} }'   <== Add button will appear in toolbar
                                toolbar-items='@new List<string> {"search", "excelExport", "pdfExport", "wordExport"}' />
        ...
        ...
        </ej-grid>

Add script with Controller and action to call external view in an anchor tag.  you can pass a query string to indicate it is a new.  I had used Id as -1 to add a new data..

    <script id="AddRecord" type="text/x-jsrender">
        <a class="right" rel='nofollow' href="Controller/Action?Id=-1">Add</a>
    </script>

Jayaprakash Kamaraj [Syncfusion]
Replied On January 25, 2017 12:13 PM UTC

Hi Nicholas, 
 
Please refer the documentation link of about CustomToolbarItem in Grid , 
 
 
Regards, 
 
Jayaprakash K. 


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

;