Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7815175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:26:11+00:00 2026-06-02T05:26:11+00:00

Here i m passing only single param from telerik to javascript function. i need

  • 0

Here i m passing only single param from telerik to javascript function. i need to pass another param also

 <a href="javascript:void(0);" onclick="AddOdometer(<%: b.VehicleRepositoryId %>)"
            title="ADDTrip" id="A1">Add Distance</a>

whole code for reference

 <% Html.Telerik().Grid(Model.VehicleList)
                                .Name("VehiclesRepositoryGrid")
                                    .Columns(colums =>
                                    {
                                        colums.Bound(b => b.TruckNumber).Title("Vehicle Number")
                                            .FooterTemplate(() =>
                       {%>
        Total:
        <%})
                        .Width(100);
                                        colums.Bound(b => b.Month);
                                        colums.Bound(b => b.FuelType).Title("Fuel Type");
                                        colums.Bound(b => b.TotalDistance).Title("Distance")
                        .FooterTemplate(() =>
                        {%>
        <%= Model.VehicleList.Sum(v=>v.TotalDistance)%>
        <%})
                        .Width(100);
                                        colums.Bound(b => b.TotalFuel).Title("Fuel")
                                             .FooterTemplate(() =>
                       {%>
        <%= Model.VehicleList.Sum(v => v.TotalFuel)%>
        <%})
                        .Width(100);
                                        colums.Bound(b => b.Mileage);

                                        colums.Template(b =>
                                          {
        %>
        <% if (b.TotalDistance == 0)
           {%>
        <a href="javascript:void(0);" onclick="AddOdometer(<%: b.VehicleRepositoryId %>)"
            title="ADDTrip" id="A1">Add Distance</a>
        <%}
           else
           { %>
        <a href="javascript:void(0);" onclick="EditOdometer(<%: b.VehicleRepositoryId %>)"
            title="Edit">
            <img src="<%= ResolveUrl("~/Content/Images/Edit.gif")%>" alt="Edit" title="Edit"
                class="vaM" /></a> | <a href="javascript:void(0);" onclick="DeleteOdometer(<%: b.VehicleRepositoryId %>)"
                    id="DeleteVehicle">
                    <img src="<%= ResolveUrl("~/Content/Images/Delete.gif")%>" alt="Delete" title="Delete"
                        class="vaM" /></a>
        <% } %>
        <%
                                          }).Title("Actions")
            .Width(100).HtmlAttributes(new { @class = "taC" });
                                    })
                                     .Groupable(settings => settings.Groups(groups =>
                                     {
                                         groups.Add(o => o.TruckNumber);
                                         if (ViewData["Grouping"] != null)
                                         {
                                             groups.Add(o => o.Month);
                                         }
                                     }))
                                    .Scrollable(scrolling => scrolling.Enabled(false))
                                    .Sortable(sorting => sorting.Enabled(true))
                                    .Pageable(paging => paging.Enabled(true))
                                    .Filterable(filtering => filtering.Enabled(true))
                                    .Footer(true)
                                    .Render();
        %>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T05:26:13+00:00Added an answer on June 2, 2026 at 5:26 am

    Not sure what your question is, is this what you want to achieve?

     <a href="javascript:void(0);" 
        onclick="AddOdometer(<%: b.VehicleRepositoryId %>, <%: b.SecondParam %>)"
        title="ADDTrip" id="A1">Add Distance</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read some posts on here about not mixing parameters when passing into
Possible Duplicate: C#: Passing null to overloaded method - which method is called? Here
Total noobie question here. I'm just learning Java, and studying passing arguments to functions.
Here I'm pasting my codes where I want to retrieve Bundle version from my
I currently have a csv file that I'm parsing with an example from here:
Here is a complete example. I want to forbid using A::set from objects casted
When the form is submitted, I'm calling a function getPosts and passing through a
I am passing some values to database(SQL Server) here one of the field contains
I'm only just learning javascript so I imagine this is relatively simple but it's
I'm trying to parse some XML from the USGS. Here's an example The parameterCd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.