function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
shazzshazz 

Need to re-order a table row according to a checkbox selected in that row

Hi

I have a pageblock table in which half some of the columns are getting values from an APi call and some columns are getting values from standard objects. I have to add a radio button in each row of the table such that if one radio button is selected in any one of the row the others get disabled. Also when we select a particular row with its radio button in that case it gets to the top of the table as the first row. Any idea how to do that?

Thanks
Shaz

 



Santhosh KumarSanthosh Kumar

Data stored in the Custom objects is not guranteed to be stored in any particular order. If you are looking for data to be presented in that order, add a custom field and store the sort order. While querying sort using that field.