问题描述
点击列上的链接打开模态弹出窗口时遇到问题,
我的代码是。
I am facing problem in opening a modal popup when click on a link on columns,
my code is.
@Html.Grid(Model.VehicleAddList).Columns(columns =>
{
columns.Add(c => c.VehicleNo).Titled(Vehicle No.)。Sanitized(false).Encoded(false).RenderValueAs(c => Html.ActionLink(c。 VehicleNo,Index,Home,new {VehicleNo = c.VehicleNo,DriverName = c.DriverName,Id = c.pkAddListId,Href =#edit,VehicleName = c.VehicleName,GPSName = c.GPSIMEI}, null));
columns.Add(c => c.VehicleNo).Titled("Vehicle No.").Sanitized(false).Encoded(false).RenderValueAs(c => Html.ActionLink(c.VehicleNo, "Index", "Home", new { VehicleNo = c.VehicleNo, DriverName = c.DriverName, Id = c.pkAddListId, Href = "#edit", VehicleName = c.VehicleName, GPSName = c.GPSIMEI }, null));
columns.Add(c => c.VehicleName).Titled("Vehicle Type").Filterable(true);
columns.Add(c => c.DriverName).Titled("Driver Name");
columns.Add(c => c.GPSIMEI).Titled("GPS IMEI");
}).WithPaging(4).Sortable(true)
在地址栏中排除后
[]
i想打开这个模态弹出窗口
after excuting in a adddress bar
http://localhost/Elite.GPS.UI.WebAdmin/Home/Index/3?VehicleNo=Narendra&DriverName=Newton&Href=%23edit&VehicleName=FordIcon&GPSName=divya[^]
i want to open up this modal popup
<div id="edit" class="modal hide fade in" style="display: none;">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>Edit/Delete vehicle</h3>
</div>
<div class="modal-body">
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="#">Vehicle No</label>
<div class="controls">
<input type="text" id="#" placeholder="Ex : KA M5123">
</div>
</div>
<div class="control-group">
<label class="control-label" for="#">Vehicle Type</label>
<div class="controls">
@Html.DropDownList("VehicleId", new SelectList(Model.VehicleNames.ToList(), "PkVehicleId", "VehicleName"), "--Select Option--")
</div>
</div>
<div class="control-group">
<label class="control-label" for="#">Driver name</label>
<div class="controls">
@Html.DropDownList("DriverId", new SelectList(Model.DriverNames.ToList(), "PkDriverId", "DriverName"), "--Select Option--")
</div>
</div>
<div class="control-group">
<label class="control-label" for="#">GPS IMEI</label>
<div class="controls">
<input type="text" id="#" placeholder="Ex : IMEI JK44">
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn btn-success">Save</button>
<button type="submit" class="btn btn-danger">Delete</button>
<button type="submit" class="btn">Cancel</button>
</div>
</div>
</form>
</div>
</div>
请帮助我很快就解决了?pls
pls help me with the solution soon?pls
推荐答案
这篇关于单击Grid.MVC中的超链接列时如何打开模式弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!