cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Is there a way to restrict max no of rows selection in a grid.

sbt
15-Moonstone
15-Moonstone

Is there a way to restrict max no of rows selection in a grid.

Hello,

I have the data bound to a grid with column1(string),column2(checkbox).

we have around 32 rows.

I should allow max 16 rows to be checked and allow only 16 rows to be passed as parameter to the service.

Can we achieve it in the grid.

Also if there are any other option, how can i do it.

 

 

Thanks

Sunay

5 REPLIES 5

Not out of the box with the grid widget, you may think of an UI with two grids, one for selected rows and the other with available rows, and you can move the rows from one grid to the other, that way you can limit to whatever you want ( as you will need a service to build the Selected Rows Grid )

Leigh
Emeritus
(To:sbt)

Hi Sunay,

Did Carles reply solve your issue? If so, could you mark this as an Accepted Solution, and if not, let us know what the current situation is?

 

Thanks!

Leigh

sbt
15-Moonstone
15-Moonstone
(To:Leigh)

Carles,

Current situation is, i am processing the top 16 selected rows irrespective of the no of rows selected.

But i tried with two grids, after every selected checkbox, i have pushed the row to other grid, but what should i do if the user selects 17th check box..?

 

Thanks

Sunay

Same as you said, just add only the 16 first.

sbt
15-Moonstone
15-Moonstone
(To:CarlesColl)

:-) :-)

Announcements


Top Tags