开发者

How to call these type of things using Javascript?

  <%= Html.Trirand().JQGrid(Model.OrderGrid,"Grid1")%>

I need to call this using javascript?

Can anybody tell me?

<%= Html.Trirand().JQGrid(Model.OrderGrid,"Grid1")%> 

I have a Grid1 and Grid2 in my user control both are under div tag. I need to 开发者_运维知识库display one Grid based on user clicks on Row of first Grid1. so My intention was to write

 $(doucment).ready(function() { 
     $("#table").click(function() { 
        // Here I need to display Grid2? 
        // I need to call <%= Html.Trirand().JQGrid(Model.OrderGrid,"Grid2")%> 
     }); 
 }); 


The code you posted is a server-side call, not a client-side one. Most likely, the Trirand() method emits a bunch of HTML, and possibly some Javascript, to the browser, thus creating a grid.

If you want to manipulate the grid with Javascript, you need to refer to the grid that is rendered in the browser, not to the server-side call. But you haven't given me much information about what it is exactly you want to do.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜