Need help using Kendo UI grid in my MVC.Net application

Hi Experts,
I am using a Kendo UI grid in my MVC.Net application.
I have added an onclick event to one of my grid's columns.  The event takes 1 parameter (the value of the BatchID columns).
I also want to pass the value of the FileName column a second parameter.  Is this possible to do using the template of a given column?
If so, how?

You can see my code, and an image of my code below:
    function loadLog() {
        var BatchID = $("#hdnBatchID").val();
        $("#ELog").empty();
        $("#ELog").kendoGrid({
            dataSource: {
                type: "ajax",
                transport: {
                    read: function (options) {
                        $.ajax({
                            type: "POST",
                            url: '@Url.Action("GetLog", "EDI")',
                            dataType: "json",
                            data: JSON.stringify({ "BatchID": BatchID}),
                            contentType: 'application/json; charset=utf-8',
                            success: function (result) {
                                var data = result.FileDtls;
                                if (data != null)
                                    options.success(result)
                            }
                        })
                    }
                },
                schema: {
                    data: function (response) {
                        return response.FileDtls;
                    }
                },
                aggregate: [
                                { field: "Filename", aggregate: "count" },
                ]
            },
            height: 550,
            sortable: true,
            resizable: true,
            footer: true,
            selectable: "row",
            editable: false,
            filterable: true,
            toolbar: [{ name: "excel", text: "Export to Excel" }],
            excel: { fileName: "FileDtls.xlsx", allPages: true, filterable: true },
            change: onChange,
            columns: [
                        {
                            field: "Filename",
                            title: "Filename",
                            footerTemplate: "<div style='text-align:left;color:black;'>Total Records:  #= kendo.toString(count, 'n0') #</div>",
                        },
                        {
                            field: "BatchID",
                            title: "Batch ID",
                            template: "&nbsp;<input type='button' value='#=kendo.toString(BatchID)#' class='RoundCorner' onclick='getFile(#=kendo.toString(BatchID)#)' style='width: 90px;border:0; background-color:white; 			                            color:darkblue;' />",
                        },
                        {
                            field: "ClaimCnt",
                            title: "Claim Cnt",
                        },
                        {
                            field: "PostedCnt",
                            title: "Posted Cnt"
                        }

            ]
        });
    }

Open in new window


Image of code (hopefully it helps illustrate what I am trying to accomplish)
Image of code to help illustrate what i want to do
Thank you very much in advance,
mrotor
mainrotorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MishaProgrammerCommented:
When the event comes, work you method  "getFile(#=kendo.toString(BatchID)#)" with one parameter. Can you add the second parameter to this method?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MishaProgrammerCommented:
There is no activity from author
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET MVC

From novice to tech pro — start learning today.