Hi expert,
I have a Grid with some columns that allow filters. When the page is rendered for the first time, I hided all filters using this client side code :
function pageLoad(sender, args)
{
$find('<%=Grid.ClientID %>').get_masterTableView().hideFilterItem();
}
for each column that allow filter, I want to show the filter on the click on this column. I use the ColumnClick event to do that, but I'm not able to do that. I want some client side code like :
function ColumnClick(columnName)
{
var masterTable = $find('<%=Grid.ClientID %>').get_masterTableView();
masterTable.get_columns()[columnName].AllowFiltering = true;
}
I know that I can do that using server side code, but I don't want to that.
I hope that you have some Javascript code to acheive my goal.
thank you for you help.
Hakim
I have a Grid with some columns that allow filters. When the page is rendered for the first time, I hided all filters using this client side code :
function pageLoad(sender, args)
{
$find('<%=Grid.ClientID %>').get_masterTableView().hideFilterItem();
}
for each column that allow filter, I want to show the filter on the click on this column. I use the ColumnClick event to do that, but I'm not able to do that. I want some client side code like :
function ColumnClick(columnName)
{
var masterTable = $find('<%=Grid.ClientID %>').get_masterTableView();
masterTable.get_columns()[columnName].AllowFiltering = true;
}
I know that I can do that using server side code, but I don't want to that.
I hope that you have some Javascript code to acheive my goal.
thank you for you help.
Hakim