ajax - Webgrid: URL for Sorting and Filtering -


i have webgrid in partialview. parial view contains ajax form pass data webgrid. view looks like

using (ajax.begin("gain", "gaining", new ajaxoptions{updatetargetid="res"})) {  } <div id="res">   <div id="grid">      @{var grid = new webgrid(source: model.mylist, canpage: true, rowsperpage: 25, ajaxupdatecontainerid: "grid",                         cansort: true);     grid.pager(mode: webgridpagermodes.all));     @grid.gethtml(htmlattributes: new { id = "grid" },     columns: grid.columns(     grid.column(columnname: "num", header: "number"),         grid.column(columnname: "name", header: "full name", cansort: true)      ));    }    </div> </div> 

the page displays wells sorting , moving next page not work. when try, grid dissapears. notice when hover on column header, when hover on header sorting links, url still localhost:xxxxx/#. when remove ajaxupdatecontainerid="res", url seems right: localhost:xxx?length=4?sort=name&sortdir=asc, wrong url given data obtained controller, gaining , method, gain

how can work please.or how can debug this? how sorting works?

edit

i confused use of ajaxupdatecontainerid. according this link, did not aid his/her sorting. if remove mine, whole partial view removed when click header link sort, or paging link. use of ajaxupdatecontainerid use then?


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -