This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Aug 24, 2011, 8:02 AM
31 Posts

How do I filter a dojo grid (Extension Library djxDataGrid) ?

  • Category: Extension Library
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: dojo grid
  • Replies: 0
Hi !
 
When creating a dojo datagrid using pure script, I'm able to filter the grid by saying: grid.filter({lname: filterValue},true).
Filter is a function according to dojo documentation.
 
But, I cannot do this when using the Extension Library dojo grid (djxDataGrid.)
 
I've tried this code:
 
//first get value from input
var filterValue = XSP.getElementById("#{id:inputText1}").value;
function toProperCase(s)
{
  return s.toLowerCase().replace(/^(.)|\s(.)/g,
          function($1) { return $1.toUpperCase(); });
};
filterValue = toProperCase(filterValue);
filterValue = filterValue + "*";

//get a handle to the grid
var gridMail = XSP.getElementById("#{id:djxDataGridMail}");

gridMail.filter({          
      Subject: filterValue
},true);
 
 
This does not work.. I'm getting:  gridMail.filter is not a function..
 
Anyone know how I can filter the Extension Library djxDataGrid clientside (without sending data to the server/making a new query) ?
 
Any information would be greatly appreciated :-)
 
Best regards,
Petter


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal