linking list and grid

i want to link list and grid.when i click list item i want the grid content to load

$$("mylist").attachEvent("onItemClick", function(id){ $$("mygrid").show(); $$("mygrid").load("data.php?set="+id); //or any other data url })

can i fetch value from json apart from their id. so that i can compare the values and filter the grid accordingly…

Yep, sure, you can use

this.item(id) - which will return json object

if (this.item(id).some_property) do_some();

can i link using dataprocessor

Not quite sure what do you mean.
Please provide some more details about expected use-case