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. Image for the cookie policy date
close icon

Externale element on CRUD

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

3 Replies

JK Jayaprakash Kamaraj Syncfusion Team 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. 



MA mani 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>


JK Jayaprakash Kamaraj Syncfusion Team January 25, 2017 12:13 PM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon