Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Call URL from other View. #1978


User avatar
0
huntethan89 created

Hi, I have 3 menu items on left side. i opened first menu and there is some grid on that form. On click of row of grid i want to call 2nd menu item page.

this is my navigation menu :- ... AddItem(new MenuItemDefinition( PageNames.App.Tenant.DMS, L("DMS"), url: "Mpa/DMS", icon: "glyphicon glyphicon-book" ).AddItem(new MenuItemDefinition( PageNames.App.Tenant.BuilderInformation, L("BuilderInformation"), url: "Mpa/BuilderInformation", icon: "glyphicon glyphicon-book" ) ).AddItem(new MenuItemDefinition( PageNames.App.Tenant.DeveloperInformation, L("DeveloperInformation"), url: "Mpa/DeveloperInformation", icon: "glyphicon glyphicon-book" ) ).....

now assume on DMS page i have grid. i clicked one of the row of grid. On click it should get id and open builder information page. How can i go to that page which click on menu ?


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I couldn't understand the problem very well. You can redirect to "Mpa/BuilderInformation" with any parameters you want when user clicks a row in the grid.

    In the jtable definition, use it's display option. See <a class="postlink" href="http://jtable.org/ApiReference/FieldOptions#fopt-display">http://jtable.org/ApiReference/FieldOpt ... pt-display</a>.

    Your display function will be something like this.

    display: function (data) {
            return '<a href="@Url.Action("Index","BuilderInformation",new {area = "MPA"})">Go To Builder</a>';
        }
    
  • User Avatar
    0
    huntethan89 created

    Hi, This worked for me.

    Thanks