I have set Radgrid_NoteBook initially to visible=true and other two are false..
Here`s my javascript code:
function
OnMenuButtonClicked(sender, args)
{
if(args.get_item().get_text() == "Friends")
{alert(args.get_item().get_text());
$find(
"<%=RadGrid_Friends.ClientID %>").get_element().style.display = "";
$find(
"<%=RadGrid_Networks.ClientID %>").get_element().style.display = "none";
$find(
"<%=RadGrid_NoteBook.ClientID %>").get_element().style.display = "none";
}
else if(args.get_item().get_text() == "Networks")
{alert(args.get_item().get_text());
$find(
"<%=RadGrid_Friends.ClientID %>").get_element().style.display = "none";
$find(
"<%=RadGrid_Networks.ClientID %>").get_element().style.display = "";
$find(
"<%=RadGrid_NoteBook.ClientID %>").get_element().style.display = "none";
}
else if(args.get_item().get_text() == "NoteBook")
{alert(args.get_item().get_text());
$find(
"<%=RadGrid_Friends.ClientID %>").get_element().style.display = "none";
$find(
"<%=RadGrid_Networks.ClientID %>").get_element().style.display = "none";
$find(
"<%=RadGrid_NoteBook.ClientID %>").get_element().style.display = "";
}
}