RE-LOAD JQGRID DATA BASED ON THE ASP COMBOBOX SELECTION

Manoj Bhatt

Total Post:154

Points:1086
Posted by  Manoj Bhatt
 3136  View(s)
Ratings:
Rate this:

Is it possible to reload jqgrid onchange of asp combobox?

Am trying to get dropdown list change like this :

  $("#txtGroupLevel").change($("#table").jqGrid({

  postData: { groupId: $("#txtGroupLevel option:selected").val() },

Is this the right way to do? even though am unable to get the selected value from dropdown.

Kindly assist.

  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: Re-load jqgrid data based on the asp combobox selection

    Hi Manoj, 


    try this:

     $(function () {

            $("#txtGroupLevel").change($("#table").trigger("reloadGrid"));

        });

    postData: { groupId: $("#<%= txtGroupLevel.ClientID %>").val() }

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!