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

RowClick namespace

2 Answers 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Reuven
Top achievements
Rank 1
Reuven asked on 06 Sep 2010, 06:49 AM
Wondering what namespace the RowClick commandname is in, would rather use that then the literal...all the other commands are in

Telerik.Web.UI.RadGrid


Reuven

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Sep 2010, 07:29 AM
Hello Reuven,


You can simply check for the e.CommandName with the string value, as shown below.

Code:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
    if (e.CommandName == "RowClick") // When setting EnablePostBackOnRowClick to True
    {
        // Your code here
    }
}


-Shinu.
0
Reuven
Top achievements
Rank 1
answered on 06 Sep 2010, 07:38 AM
I know you can, but my question is where is that stored, would rather use a reference than the literal...ie, e.CommandName==Telerik.Web.UI.RadGrid.UpdateCommandName

Reuven
Tags
Grid
Asked by
Reuven
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Reuven
Top achievements
Rank 1
Share this question
or