Custom Position of Add/Create link

5 posts, 1 answers
  1. MiracleMan
    MiracleMan avatar
    11 posts
    Member since:
    Aug 2015

    Posted 14 Sep 2015 Link to this post

    Hello, I'm currently evaluating the MVC controls. I've created a custom control panel where the user can filter  or create new items on the table.  Currently the filter is working perfectly using javascript. The create button is not.  I added the class k-grid-add but no luck. I look at the link the grid creates when using the standard create button in the toolbar and it looks something like this: tblAgents_Read?grid-mode=insert  . I've tried adding this link to my custom link but it will return all data in a json file.  Any help?

     

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 15 Sep 2015 Link to this post

    Hi,

    Would you try the approach suggested in the following thread and see how it works for you?


    In case the behavior persists please share the definition for the grid widget.


    Regards,
    Viktor Tachev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. MiracleMan
    MiracleMan avatar
    11 posts
    Member since:
    Aug 2015

    Posted 15 Sep 2015 in reply to Viktor Tachev Link to this post

    But this code is to create a custom Toolbar. I don't want to use a toolbar because we need the controls at another location. 
  5. Answer
    Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 16 Sep 2015 Link to this post

    Hi,

    In order to add new record to the grid with an external button you can use an approach similar to the following:


    <button  onclick='createRow(); return false;'>
        add new row
    </button>


    function createRow() {
        grid = $("#Grid").data("kendoGrid");
        grid.addRow();
    }



    Regards,
    Viktor Tachev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. MiracleMan
    MiracleMan avatar
    11 posts
    Member since:
    Aug 2015

    Posted 16 Sep 2015 in reply to Viktor Tachev Link to this post

    Yes. That worked!!! Thanks.
Back to Top
UI for ASP.NET MVC is VS 2017 Ready