Current position:  Home > Default > Retaining the Color of the row when it is refreshed in Javascript

Retaining the Color of the row when it is refreshed in Javascript

Time:October 11
Advertisement
Hi,
I have a checkbox when it is checked it will highlight the row with the color. When it is unchecked the color will go off. This is happening fine.
But the problem i have is that when i refresh the page or goes to some other page and come back the color is not retained eventhough the checkbox is checked.
I want the color to be retained even when the page gets refreshed.
Please do provide a solution for this since it is urgent. I will be waiting for ur replies..
Thanks,
M.Ananthu
Advertisement
try to make a hidden form that will hold the value of the colored form
ex. <input type="hidden" name="name" value="<%=colorOfForm%>"
you can pass this value to the next page.. so that when you go back to that page.. you will get the value of the hidden using request.getParameter(''name"); and set the color of the form using javascript

Can you change the color of a row in a SUD

2015-10-11

Is it possible to change the color in a selected row in a SUD? I have multiple tables in my SUD were the user can select multiple rows from each table. The problem is that when the user selects rows in another table the last one selected in the previ

How do I change the background color of a row in a table indicator?

2015-10-11

Hello,   How do I change the background color of a row in a table indicator? I know how to change the background color in a active cell, but that is not what I want. My first intent is to make the background color of the first row a unique color, suc

To color a specific row in a Table UI element

2015-10-11

Hello Experts, We have a requirement to highlight (with distinguish color) a specific row of a table UI based on column data. Suppose we have a table with 5 column and 10 row, now if the data on 5th column greater than some XYZ value then we need to

How to change a color for a row in ALV grid display

2015-10-11

Hi,    how to change a color for a row in ALV grid display based on a condition.Any sample code plzHello Ramya, Did you check in [SCN|How to color a row of  alv grid] Thanks!Read other 2 answers

How to change the color of specific row in ALV tree

2015-10-11

Hi, I m using method set_table_for_first_display of a class CL_GUI_ALV_TREE. The req is to change the color of specific row. Now can anybody tell me how to change the color of ALV tree. As in ALV tree and in this method 'set_table_for_first_display',

Color a specific row in ALV GRID display when user clicks on that row

2015-10-11

hi i have the entire code ready of how to check the line selected by the user and also to color that line but after settings those parameters for to refresh the GRID so that the row apppears coloured .plz reply soon.... points will be awarded..... wa

Change the background color of selected row in adf table

2015-10-11

Hi, Can somebody guide me in changing the background color of a row when its being selected. In my ADF table, one of the column is of type Command Link. So whenever i click this command link on any particular row that complete row color should change

How to set  color of a  row depending on the value of column in JTable?

2015-10-11

Hi All, I have a JTable that add rows when the user clicks on the button. In this way there can be any no. of rows in my table. My table contains five columns. When a new row is added , it is added with new data each time. Also the data of the rows k

Alternate color to the rows with sorting

2015-10-11

I have a table which has alternate color to the rows.one row in white and other in blue.when sorting is used, the blue-highlighted lines on the table are randomely re-located. They should not be impacted by the sorting.But they are getting effected.I

Change background color of alternating rows in listview

2015-10-11

Hi all, Does anyone know how to change the background color of alternating rows in a listview in Visual Basic 2013? Best regards, Randy BoulterYou can set the OwnerDraw property of the ListView to true and use the DrawItem event: Private Sub ListView

Set the color of a row depending the value of the column in JTable?

-0001-11-30

Hi All, I have a JTable that add rows when the user clicks on the button. In this way there can be any no. of rows in my table. My table contains five columns. When a new row is added , it is added with new data each time. Also the data of the rows k

How to apply different colors to specific rows in JTable

-0001-11-30

hi, Anybody could tell me the way of colorising the rows in jtable.. I want to apply different colors to diff rows.. If i get a piece of code that could help me a lot.. thanks in advance, Sapnayou'll find the answer at http://www2.gol.com/users/tame/

How do you change the background color of certain rows in a Datagrid?

-0001-11-30

How do you change the background color of certain rows in a Datagrid?Hee is a great example: http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=487 TracyRead other 2 answers

Change colors of entire row according to another

-0001-11-30

Just to keep you guys busy: I have a crosstab layout and I want to change the color of the entire row according to one column, is that possible??Hi Wendy This is a simple one to answer because the answer is no. Coloring of individual rows of data is

How to set text and background color of current row in a adf table?

-0001-11-30

Hi, In jdev 11.1.2.3, How to set text fond and background color of current row in a adf table? I tried to set Background color in table property, but that is not what i want. Thanks.Hi, We almost had the same requirement, but we just needed to color

PWA 2010 timesheet: 2 different colors for the rows "Actual " and "Planned

-0001-11-30

Hello, To make timesheet easier to read and fill, is it possible to have 2 different colors for the rows "Actual " and "Planned"? Thanks, soudhaHello Soudha, By default the timesheet grid shows the cells in white color. But if you have

Color of Table row

-0001-11-30

I created a table at design time and binded data from model. I want to change tables first row to red color. I tried to change at design time but all rows colour are being changed. Can any one tell me how to do it?Hi, Create a value attribute "cellEd

To display color for the rows in alv

-0001-11-30

hi,      i want to add colors to  all rows.for that i have declared an extra field in st_ekpo i.e  ' line_color(4) type c '.And in layout i passed it like this'   wa_layout-info_fieldname = 'line_color' . and finally i populated like this loop at it_

HOW TO ADD COLORS TO JTABLE ROWS??

-0001-11-30

I want to change the colors of alternate rows in my JTable. I am doing so using CellRenderer, but then I am not able to view the selected rows. tell me how can I change the row color as well as a selected row should be identifiable from others, as or