Hello friends,
I have a jquery grid columns defined like this..
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Trirand.Web.Mvc;
using System.Web.UI.WebControls;
namespace JQGridMVCExamples.Models
{
public class OrdersJqGridModel
{
public OrdersJqGridModel()
{
OrdersGrid = new JQGrid
{
Columns = new List<JQGridColumn>()
{
new JQGridColumn { DataField = "OrderID",
Width = 50 },
new JQGridColumn { DataField = "OrderDate",
Width = 100,
DataFormatString = "{0:d}" },
new JQGridColumn { DataField = "CustomerID",
Width = 100 },
new JQGridColumn { DataField = "Freight",
Width = 75 },
new JQGridColumn { DataField = "ShipName" }
},
Width = Unit.Pixel(640)
};
OrdersGrid.ToolBarSettings.ShowRefreshButton = true;
}
public JQGrid OrdersGrid { get; set; }
}
}
and in the view I am caling like this
<div>
<%= Html.Trirand().JQGrid(Model.OrdersGrid, "JQGrid1") %>
</div>
I am getting result perfect..
but for column Freight in the Jquery grid I need to place a dropdown list dynamically for all result rows..
can anyone help me out..
THanks