Dan Appleyard
Dan Appleyard

Reputation: 7445

Can an individual RadGrid row be selectable based upon a condition?

I have a RadGrid that has a GridClientSelectColumn. I have the AllowRowSelection setting set to true. Is there a way on the server end that I can conditionally set whether an individual datarow in selectable or not? I want some rows to be selectable on the client-side, but not others.

Thanks!

Upvotes: 1

Views: 1782

Answers (2)

Kevin Babcock
Kevin Babcock

Reputation: 10247

Check out my blog post on this subject to learn how to implement conditional client-side row selection with the RadGrid for ASP.NET AJAX.

I hope it helps.

Upvotes: 1

zincorp
zincorp

Reputation: 3282

I don't know whether you can easily accomplish that by setting a single property, but alternatively you could attach events to the onclick of the rows in question to cancel events/event bubbling so that the Row Selection event never fires.

Upvotes: 0

Related Questions