How to make unigrid row selectable?

Mani SJ asked on June 25, 2020 08:42

I have a unigrid with 3 columns actions,name,id. Actions is an icon column, by clicking on icon I am able to get id of particular row. Now I want unigrid row selectable by click. I tried grid option "ShowSelection" but it adds column of checkbox.I don't want that. I need entire row selectable, once selected that row wil be blue colour and what ever function happened on icon click must happen in row selectable function.

Recent Answers


Brenden Kehren answered on June 26, 2020 00:23

Does this question help you?

0 votesVote for this answer Mark as a Correct answer

Mani SJ answered on June 26, 2020 01:09

Brenden, they are using ShowSelection=true which adds a column of checkbox in unigrid. I don't want that feature.

0 votesVote for this answer Mark as a Correct answer

Mani SJ answered on June 29, 2020 08:01

Below needs to be defined in ExternalDataBound event

((System.Web.UI.WebControls.GridViewRow)parameter).Attributes["OnClick"] = ((CMS.Base.Web.UI.CMSGridActionButton)((System.Web.UI.WebControls.GridViewRow)parameter).FindControl("aselect")).OnClientClick;

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.