|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Grid Manipulation - How to maintain state
Hello,
I have a grid with columns that represent each day of the week, and rows that represent each hour of the day. There is also a top-leftmost cell that when selected activates every cell or deactivates every cell. The problem is that the developer insists on using the first row and column to maintain the state. Because of this the functionality of the grid is different when you select the first time=00:00 or the first day=Sunday. The attached image does a good job of explaining things. Please display the image using 100% viewability or the text will be very small. Is there a way to design this grid so that the functionality works the same for each row and column? Thank you |
|
#2
|
|||
|
|||
|
Is this too difficult?
I'm just wondering if the fact that no one has responded means this is difficult or maybe I didn't give enough detail? This issue isn't causing me any problems but I can't figure if there is an easy fix or not.
|
|
#3
|
||||
|
||||
|
Well,
1) This is kind of a slow forum. 2) This appears to be a very specific bug in your program, not a general design/algorithm issue. 3) Yeah, you didn't explain it very well. Honestly, I can make neither heads nor tails of your post. Quote:
Quote:
|
|
#4
|
|||
|
|||
|
thanks for your reply.
i should have just stated the situation, which is that I demonstrate an application which uses the grid shown in the image i attached here. very typically when i'm showing the grid a user will ask me why it is that the Sunday column and the 00:00 column behave different. hopefully, the images show the difference in behavior. when i asked the developer about this he replied: "The current design of the grid uses the first row's and column's state to determine what to toggle the rest of the button's states to. " The developer then closed the issue ticket and asked that I not re-open it unless I have suggestions as to how to maintain the state. That's went I looked on the internet and found this message board. |
|
#5
|
|||
|
|||
|
[QUOTE=rshands]thanks for your reply.
btw, when i said this: "hopefully, the images show the difference in behavior." i was referring to the images attached to this thread ![]() |
|
#6
|
|||
|
|||
|
2 solutions to your grid problem
I have two suggestions that will solve your problem.
1) Add an extra row and column to be used strictly for the State for that row and column. Using the first row and column was not the best idea. I would think that you'ld be able to make the State row and column invisible, and if not, then put the State column at the far right and the State row at the bottom, and resize the window so that they're not visible during your presentations. 2) Use an attribute of the Day and Hour buttons themselves to maintain the state of the row/column, such as upper/lowercase text, normal/bold, etc. For example, if the user clicks Monday, then toggle the font color on the Monday button, or make it bold, or make it italic, or underline it to indicate that the column or row is selected. This may also provide a more visually appealing presentation at the same time. Just remember to toggle all of the buttons states appropriately when the ALL button is clicked. Good luck, and I hope one of these solutions works for you! ![]() |
|
#7
|
|||
|
|||
|
Thank You Shadow 4
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Software Design > Grid Manipulation - How to maintain state |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|