Skip to Content
0

Can we make a entire row as mandatory in a table

Aug 17, 2017 at 11:17 AM

47

avatar image
Former Member

In a table if a row is empty it should show red border specifying that particular row is mandatory.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Aug 18, 2017 at 08:41 AM
0

actually our requirement is we are in need to create a mandatory field for a row which appears in the middle on clicking the add button...an other doubt it is changing when we are inspecting tat element...but when we apply those changes in the file it doesn't seems to change...since am a beginner i couldn't rectify this..

Share
10 |10000 characters needed characters left characters exceeded
Sharath M G Aug 17, 2017 at 03:09 PM
0

To make the row mandatory and highlight in red, you need to use CSS.

Inspect on the table, there must a unique CSS class assign to your table rows.

In you code, if error condition is met, applyCSS for ".<row css class name" but border as red.

Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Sharath,

Thank you,But can you please explain with some example.

0

Check the attached screenshot. In this, I have mentioned the standard CSS classes for table row, to which you can assign CSS properties in the controller.

Look up on how to assign the CSS properties using JS.

highlightrowred.jpg (241.0 kB)
0
Former Member

thank you so much

0

if its solved your query, please mark the question as answered.

0