Just as you would apply default search condition for JQGrid its easy to apply multiple search conditions.
But this would need some more parameters, firstly enable multiple searches using the parameter "multipleSearch: true"
The code would as follows :-
$(function () {
var GetFilters = function () {
var filters = null;
var filterData = { groupOp: "OR", rules: [] };
filterData.rules.push({ field: "id", op: "eq",...
public string aboutme {
var known = { { "C#" , "Javascript" }, { "ASP.NET", "MVC" } };
return known.ToJson();
}
Friday, 18 March 2011
Displaying JQGrid with default search condition
Being using JQGrid for sometime, have at one point required to display data in jqgrid but with a default search condition.
Its as simple as just passing data using the parameter serializeGridData in jqgrid
$(function () {
var defaultsearchField = "id";
var defaultsearchString = "5";
var defaultsearchOper = "gt";
jQuery("#grid").jqGrid({
url:'GetDetails.asmx?team=All',
datatype: "json",
colNames:['ID','Name','Country','Progress'],...
Labels:
JQGrid
Thursday, 10 March 2011
Using word wrap for text using css for words with out spaces
Many web pages contains some information which needs to be displayed using word wrap. consider a small example as below:-
Here is some content for the div element
CSS used in the above example will process the text with word wrap but only if it can find a space. If you would like to have a word warp for long words that does not have space then the CSS would be
Here is some content for the div element veryveryveryverylargewordwithoutspace
Three...
Labels:
CSS
Subscribe to:
Posts (Atom)