0

In the past when I've used jqgrid all i have done is had a static web service and the grid loads as the page does. Now I need to have a form that i want to send values from to the service, and the results need to be in the grid.

I'm struggling with a couple of things -

  • How do i format the url function in the grid to send parameters with it, in the past i have got away with just url: 'JsonData.asmx/GetData
  • How do i actually call the update method of the grid from a button?

I'm writing the web app in c#, dotnet 4

Thanks Luke

beakersoft
  • 2,316
  • 6
  • 30
  • 40

1 Answers1

0

I see no problem in what you explain. If you could fill the grid data using url: 'JsonData.asmx/GetData' it should continue to work inside of the form. You should only verify the font size which you use in the form to have good look together with the grid.

If you need reload data in the grid you can use $("#grid_id").trigger('reloadGrid',[{page:1}]); (see here).

One other possible problem which you could have: one should create jqGrid once. If you for example need create the form once which contain one grid and later change the for contain to have another grid you could have to use GridUnload method. See here and the demo and here.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798