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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:56:20+00:00 2026-06-11T08:56:20+00:00

i have my main page and also two partial views. One partial view is

  • 0

i have my main page and also two partial views. One partial view is a menu and the other is a telerik grid.
What i want to achieve is selecting a row in the grid and when i click a button in the menu i want the page to navigate to that action passing the selected row (id).
i want to refresh the entire page and not only the div with the grid.

I tried using document.location = "/Pedido/DetalhePedido/" + id; but i don’t receive the id n the controller.
I also tried using $.get('@Url.Action("detalhePedido", "Pedido")', data, function (result) { }); usually i use this to refresh a div and i can’t seem to make this work with the entire page (and it probably shouldn’t ).

Wich methods do you usually use in your web apps to reproduce this sort of behaviour?

  • 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-11T08:56:21+00:00Added an answer on June 11, 2026 at 8:56 am

    Because clicking on the row happens on the browser, you can’t depend on anything from the controller or model unless it’s already somewhere in your original model. I implement this by adding a hidden Id column to the grid and model it uses for rendering, then add client events and handlers to the grid and view. Check out the samples provided for the Grid under Client-Side Events for some of the different client events you can take advantage of.

    On your grid, first add the Id column (hidden if you like):

    .Columns(columns =>
    {
       columns.Bound(o => o.Id).Hidden(true);
    }
    

    Then add ClientEvents and wire up onRowSelect like so:

    .ClientEvents(events =>
    {
        events.OnRowSelect("onRowSelected");
    }
    

    Then add a function to handle this event like so:

    function onRowSelected(e) {
        var id = e.row.cells[0].innerHTML;
        window.location = "Something/Details/" + id;
    }
    

    UPDATE

    Sounds like you are doing everything right on the client. The problem is likely elsewhere, in your Action or Bindings. But to be certain, take a look at what /Pedido/DetalhePedido/” + id actually is with an alert before venturing down that path. You should be able to take that and enter it directly into the url of your browser and hit your action as long as your action is correctly defined, accepting an int called id.

    If its still a problem, you need to look at you action. Is it marked for Post? If it is Window.Location wont work because it’s not a post. Is the argument it accepts named Id and of type int? If not, should it be? Have you changed your Routes, and if so does your Url match any routes defined?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a grid view in my main page and I display some data
I have two layouts(xml files) and I want to flip from one page to
I have in the main page with two principal parts : in the left
I have an PHP/HTML main page, in which I include different other PHP files
Scenario: I have a View and inside that view I also a partial view.
I have a two pages say Main.xaml and Details.xaml .Each page has a ListBox
I have a main page from where I am making a call to load
I am using jQuery for a simple website and have a main page 'index.html'
The Idea I have a main PHP page that loads content in DIV's from
I have a page (main.php) which loads content from an external PHP file (rpc.php).

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.