Hi All,
I have a problem. i have a rad grid in which i bound some fields and i also use template field.
I bind my grid using client side API. it words fine when my function returns data but when my function does not return any data i want to show empty grid with message that "There is no data to display."
my code for binding data is.
var data = [{Text: "Click Me"}];
tableView = $find("<%= rgAddress.ClientID %>").get_masterTableView();
if (result != "")
{
tableView.set_dataSource(result[0].objStudentAddressCollection);
tableView.dataBind();
}
else
{
tableView.set_dataSource(data);
tableView.dataBind();
}
Above code shows one row in grid along with template column. How can i show empty grid using client side api.??????
And i have also used "NoRecordsTemplate"
Any help please. its urgent.
I have a problem. i have a rad grid in which i bound some fields and i also use template field.
I bind my grid using client side API. it words fine when my function returns data but when my function does not return any data i want to show empty grid with message that "There is no data to display."
my code for binding data is.
var data = [{Text: "Click Me"}];
tableView = $find("<%= rgAddress.ClientID %>").get_masterTableView();
if (result != "")
{
tableView.set_dataSource(result[0].objStudentAddressCollection);
tableView.dataBind();
}
else
{
tableView.set_dataSource(data);
tableView.dataBind();
}
Above code shows one row in grid along with template column. How can i show empty grid using client side api.??????
And i have also used "NoRecordsTemplate"
Any help please. its urgent.