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 7166425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:24:40+00:00 2026-05-28T14:24:40+00:00

I have telerik grid on my page. But it working not correctly. Problem: when

  • 0

I have telerik grid on my page. But it working not correctly. Problem: when I click button edit calling method button’s select.
My grid view

@(Html.Telerik().Grid(Model)
    .Name("Grid")
    .DataKeys(keys => keys.Add(c => c.CommandId))
        .DataBinding(dataBinding => 
            {
                dataBinding.Server().Update("Update", "CommandEntity");
                dataBinding.Server().Select("Print",  "CommandEntity");
                dataBinding.Server().Delete("Delete", "CommandEntity");
            })
    .Columns(columns =>
    {
        columns.Bound(o => o.Date).Format("{0:dd/MM/yyyy}").Width(100);
        columns.Bound(o => o.Number).Width(40);
        columns.Bound(o => o.Employees).Width(240);
        columns.Bound(o => o.DayCount).Width(40);
        columns.Bound(o => o.Destinations).Width(220);
        columns.Bound(o => o.ShortTarget).Width(200);
        columns.Bound(o => o.TypeAssignment).Width(90);
        columns.Command(commands =>
        {
            commands.Edit().ButtonType(GridButtonType.Image);
            commands.Delete().ButtonType(GridButtonType.Image);
            commands.Select().ButtonType(GridButtonType.Image);
        }).Width(100).Title("actions");
    })
    .Scrollable(scrolling =>
    {
        scrolling.Enabled(true);
        scrolling.Height("500px");
    })
    .Editable(editing => editing.Mode(GridEditMode.PopUp))
    .Sortable(sorting => sorting.Enabled(true))
    .Pageable(paging =>
        {
            paging.Enabled(true);
            paging.PageSize(15);
        })
    .Filterable(filtering => filtering.Enabled(true))
    .Groupable(grouping => grouping.Enabled(true))
    .Footer(true))

Methods:

[AcceptVerbs(HttpVerbs.Post)]
    public ActionResult Delete(Guid id)
    {
        new DataManager().RemoveCommandEntity(id);
        return RedirectToAction("Index", "CommandEntity");
    }

    [AcceptVerbs(HttpVerbs.Get)]
    public ActionResult Print(Guid id)
    {
        byte[] rep = Reports.ReportBuilder.CreateReport(id);
        return File(rep, System.Net.Mime.MediaTypeNames.Application.Pdf);
    }


    [AcceptVerbs(HttpVerbs.Post)]
    public ActionResult Update(CommandEntity obj)
    {
        new DataManager().UpdateCommand(obj);
        HttpContext.Session["Entities"] = null;
        return RedirectToAction("Index", "CommandEntity");
    }

should call Update method but called called Print. While there was no Select method everything worked fine.
what’s wrong here?

  • 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-05-28T14:24:41+00:00Added an answer on May 28, 2026 at 2:24 pm

    I think the problem is here:

    DataBinding(dataBinding => 
                {
                    dataBinding.Server().Update("Update", "CommandEntity");
                    dataBinding.Server().Select("Print",  "CommandEntity");
                    dataBinding.Server().Delete("Delete", "CommandEntity");
                })
    

    Databinding should be used for Ajax or Web Service binding. When you want to use server binding then you simply bind to the model an then you doesn’t need to use DataBinding method at all.

    I think you should change this part of code to:

    DataBinding(dataBinding => 
                {
                    dataBinding.Ajax().Update("Update", "CommandEntity");
                    dataBinding.Ajax().Select("Print",  "CommandEntity");
                    dataBinding.Ajax().Delete("Delete", "CommandEntity");
                })
    

    Or if you want to populate grid by server binding, then:

    DataBinding(dataBinding => 
                {
                    dataBinding.Ajax().Update("Update", "CommandEntity");                    
                    dataBinding.Ajax().Delete("Delete", "CommandEntity");
                })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem to render column template with Telerik Grid for MVC. I'm
I am using ASP.NET MVC architecture.I have a telerik window on a button click,
I have a telerik rad grid with PageSize=10. The problem is if I have
I have problem, I have dropdownlist in mvc telerik grid every thing is ok
I have a very similar problem to the post located here: Telerik grid with
I have a page in MVC3 using a Telerik grid. In the grid, for
I started using the Telerik Html.Grid today and have already run into a problem.
I have a problem with a telerik RadGrid where the paging section is not
We have a Telerik Grid (i.e. enhanced version of ASP.Net vanilla grid). On some
I have been successful with creating a Telerik grid to display a list of

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.