Bind Datatable to Grid on button click

5 posts, 0 answers
  1. Ajay
    Ajay avatar
    13 posts
    Member since:
    Nov 2010

    Posted 25 Dec 2013 Link to this post

    I am trying to bind a data table to Grid on button click.
    I am able bind data, however
    1. I want to show a blank grid when the page is loaded
    2. Show data only on button click
    When I bind the grid, the json response is coming as a JavaScript file to download
    I have attacked the code of controller and view that I am using 
    Also the screenshot 
  2. Dimo
    Dimo avatar
    8485 posts

    Posted 25 Dec 2013 Link to this post

    Hello Ajay,

    Generally, there is no problem to show an empty Grid. You should either bind it to an empty collection initially, or use Ajax binding and set AutoBind(false).

    It looks like you want to pass aditional (filtering) parameters to the Grid Read action method. In this case you can configure a Javascript function to be executed when the Grid datasource's client read() method is called.

    The fact that Internet Explorer offers to open/save the JSON response, suggests that the JSON response is sent with a wrong content-type, and/or that the browser doesn't support the response content-type. This is not related to Kendo UI.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Ajay
    Ajay avatar
    13 posts
    Member since:
    Nov 2010

    Posted 25 Dec 2013 Link to this post

    in case of chrome it is showing json response.
  4. Phillip
    Phillip avatar
    1 posts
    Member since:
    Dec 2019

    Posted 08 Nov 2020 in reply to Dimo Link to this post

    Hi Dimo,

    This link you provided above:

    is coming back not found - I think this documents exactly what I am after, could you please provide a working link?



  5. Georgi Denchev
    Georgi Denchev avatar
    110 posts

    Posted 10 Nov 2020 Link to this post

    Hi Phil,

    In order to pass additional parameters when making a CRUD request, you can use the data method.

    The JQuery syntax and the MVC syntax.

    Best Regards,
    Georgi Denchev
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at

Back to Top