tags:

views:

63

answers:

1
<script type="text/javascript">
    var showGrid = function() {
      $("#Grid1").load('/friends/names/fried');
    };
</script>
<div>
    <%= Html.Trirand().JQGrid(Model.OrdersGrid, "JqGrid1")%>
</div>

<div>
</div>

/////// i need to dispaly the Grid1 here? can anyone tell me?

thanks

A: 

Where?, It seems that you simply need to assign the attribute id to the div:

<script type="text/javascript">
    var id_ind = 0;
    var showGrid = function(new_id) {

       if (new_id == undefined)
          new_id = (id_ind++);

      var grid = $("<div id=\"Grid"+new_id+"\"></div>");

      $(grid).load('/friends/names/fried');

      $("#containner").append(grid);
    };
</script>
<div>
    <%= Html.Trirand().JQGrid(Model.OrdersGrid, "JqGrid1")%>
</div>

<div id="containner"></div>
andres descalzo
This ShowGrid i am assiging at serverside like thisgrid.ClientSideEvetns.RowDoubleClick = "showGrid";but this grid is exactly displaying on the other gird but I would like to dislay this on the other div tag.. thanks
kumar
I do not know if this may solve your problem
andres descalzo
srry for late.. sure I will try and let you knowthanks
kumar
Thanks, here i have a question..here I need to pass the string value with /friends/names/friedI am passig like this.. /friends/names/fried + stringbut on controler I am getting this string value as null allways..thanks
kumar