Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
Problems with get_gridResponseObject()
posted

Hi everyone !!!

I'm having a problem with WebDataGrid. I'm using 13.1 and in DataFiltered client side event I'm trying to obtain a parameter that I put in server side on Page_Load event.

Page_Load event (server side)

GridView1.CustomAJAXResponse.AdditionalProperties.Add("rowCount", -1);

Javascript Client Side

function GridView1_DataFiltered(sender, eventArgs) {
   ///<param name="sender" type="Infragistics.Web.UI.WebDataGrid"></param>
   ///<param name="eventArgs" type="Infragistics.Web.UI.DataFilteredArgs"></param>

   //Add code to handle your event here.
   var rowCount = eventArgs.get_gridResponseObject().AdditionalProperties.rowCount;
   if (rowCount != -1) {
      $("#lblTotal").text("Total: " + rowCount + " Registro(s)");
   }
}

Until yesterday, I was trying to fix another problem I had with paging behavior but, after fix it, I encountered with the filtering problem.

Thanks a lot !!!!

Gustavo.-