Hi there,
This is kind of hard to explain. I have 4 columns in a radgrid:
A | B | C | D
A user will use this grid to insert information for each of the four columns. When they click Add, the form inserts their inputted values into each of the four columns.
I need to be able to concatenate the A and B columns into one column. So for instance, the grid will now look like:
I can hide Column A and column B and make column A-B read-only. The reason for this is when they click add, they will be inserting column A and B values separately...so column A and column B must exist but be hidden. So now there will now be 5 columns, Column A, B, C, D, and A-B.
The tricky part is that these columns have to be searchable... so for instance if these were fields in the columns:
If the user puts "1" in the search box for the A-B column, the number 1-2 will show up. If they put "6" in the search box, the number 5-6 will show up.
How on earth can I get this to work? I'm lost :confused: How do I tell the grid that I want to show and search a concatenated field? Is this even possible?
I have been looking into getters and setters but I don't know how they work.
This is kind of hard to explain. I have 4 columns in a radgrid:
A | B | C | D
A user will use this grid to insert information for each of the four columns. When they click Add, the form inserts their inputted values into each of the four columns.
I need to be able to concatenate the A and B columns into one column. So for instance, the grid will now look like:
A | B | C | D
-------------
1 | 2 | 3 | 4
5 | 6 | 7 | 8
9 | A | B | C
I can hide Column A and column B and make column A-B read-only. The reason for this is when they click add, they will be inserting column A and B values separately...so column A and column B must exist but be hidden. So now there will now be 5 columns, Column A, B, C, D, and A-B.
The tricky part is that these columns have to be searchable... so for instance if these were fields in the columns:
A-B | C | D
-----------
1-2 | 3 | 4
5-6 | 7 | 8
9-A | B | C
If the user puts "1" in the search box for the A-B column, the number 1-2 will show up. If they put "6" in the search box, the number 5-6 will show up.
How on earth can I get this to work? I'm lost :confused: How do I tell the grid that I want to show and search a concatenated field? Is this even possible?
I have been looking into getters and setters but I don't know how they work.