This is a migrated thread and some comments may be shown as answers.

Disable ClientEvents OnRowDblClick on Filter Row

3 Answers 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Scott Marx
Top achievements
Rank 1
Scott Marx asked on 05 Feb 2012, 06:57 PM
How do you disable the ClientsEvents OnRowDblClick on the Filter Row?
I tried;
if (e.Item is GridFilteringItem)
{
    RadGrid1.ClientSettings.ClientEvents.OnRowDblClick = "";
}

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 06 Feb 2012, 05:42 AM
Hello Scott,

Try the following code in ItemCommand event.
C#:
protected void grid_ItemCommand(object sender, GridCommandEventArgs e)
{
  if (e.CommandName == RadGrid.FilterCommandName)
  {
    grid.ClientSettings.ClientEvents.OnRowDblClick = "";
  }
}

-Shinu.
0
Scott Marx
Top achievements
Rank 1
answered on 06 Feb 2012, 07:49 PM
How about client side?
0
Tsvetoslav
Telerik team
answered on 08 Feb 2012, 12:19 PM
Hello Scott,

The row double click event is not attached to the grid's filter row so it won't be triggered anyway - why then disable it? Could you epxlain what exactly you are trying to achieve. 

Regards,
Tsvetoslav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Grid
Asked by
Scott Marx
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Scott Marx
Top achievements
Rank 1
Tsvetoslav
Telerik team
Share this question
or