Login Register

filtering

Columin search/filtering Zoho-style

Hello!

I'm looking for suggestions (that is, some indication to help me find the way) in order to create a Dojo DataGrid with search capabilities in the header of every column. This is a screenshot (coming from Zoho Creator) which illustrates what I'd like to accomplish:

http://www.cattlegrid.info/files/zohocreator.jpg

Basically, you click on a button and an extra header appears, with two search fields: one to select the "operator" and the other for the search string (the server will then process this thing).

Commas in dijit.form.FilteringSelect value clause cause unexpected results

If a FilteringSelect dijit contains a comma in the value clause, things don't work as expected. Consider the following code:

<select value="comma, test" dojoType="dijit.form.FilteringSelect">
    <option value="value one">one</option>
    <option value="comma, test">two</option>
    <option value="value three">three</option>
</select>

You'd expect that the option with the label "two" would be selected. In Firefox 3, nothing gets selected, but Firebug reports no errors. In IE 6, an error is thrown: '0.oper' is null or not an object.

How to change the color of single options of a FilteringSelect

I'm a newbee to dojo and build up a little app...
but now I'm on a point where i can't find help.
I had an PHP-Array and built up a FilteringSelect with this. The Point is to colorize single options in red.

here is the code:

...
$dozentenliste = get_dozentenliste($semid, $datum, $kolleg);
?>

dojo.data query populated store

What I would like to do is:
instantiate store -> call fetch to get the data -> at a later time, run queries on this already populated store to return by a particular attribute in the store.

For instance, this will populate the store:

var store = new dojo.data.ItemFileReadStore({jsId:"cacheFirst",
url:"getCache.php?test_ids="+test_ids+"&page_id="+page_id+"&min_time=first&max_time=first&order=ASC&limit="+limit });
var processCache = function(items,request){
cache_first = items;

/* default to the first item */

Syndicate content