Greetings,
I'm having a bit of a problem with a RadGrid. I have a page used by Admins with a grid that has several fields, but has a specific field with IDs for users. Above the grid, I have a RadToolbar, with 8 buttons. One of the buttons will take the Admin to a profile page, where you can view/edit a user's info. The problem is with this profile page, there is no way back to the page you were just on, so if you selected the wrong user or don't wish to edit their info, the only way back is to use the IE back button, or to renavigate your way back to the previous page.
The problem occurs when you try and use the IE back button. The page will redisplay, with the RadGrid moving the selected row up to the first row. That is fine, but the grid keeps the previous person's selected ID.
Ex. You have 5 people in the grid. You select number 4 and choose to edit their profile. Upon the button firing, you go to the profile page, only to not wish to do anything to the user's info, so you click back, thus returning you to the previous page. Now the first person in the grid is selected. Instead of reselecting someone, you decide to edit number 1's profile. Upon the button being clicked, you are taken to the profile page, but instead of number 1's info, you see number 4's. It is as if the grid cannot comprehend that the person selected is different, and the Ids haven't changed.
My question is, is there a way to set the selected row to the person whose last ID was selected when the IE back button is pressed, or is there a way to just reset the ID to the first person when the grid is brought back using the IE back button? Thank you.
Chad Johnson
I'm having a bit of a problem with a RadGrid. I have a page used by Admins with a grid that has several fields, but has a specific field with IDs for users. Above the grid, I have a RadToolbar, with 8 buttons. One of the buttons will take the Admin to a profile page, where you can view/edit a user's info. The problem is with this profile page, there is no way back to the page you were just on, so if you selected the wrong user or don't wish to edit their info, the only way back is to use the IE back button, or to renavigate your way back to the previous page.
The problem occurs when you try and use the IE back button. The page will redisplay, with the RadGrid moving the selected row up to the first row. That is fine, but the grid keeps the previous person's selected ID.
Ex. You have 5 people in the grid. You select number 4 and choose to edit their profile. Upon the button firing, you go to the profile page, only to not wish to do anything to the user's info, so you click back, thus returning you to the previous page. Now the first person in the grid is selected. Instead of reselecting someone, you decide to edit number 1's profile. Upon the button being clicked, you are taken to the profile page, but instead of number 1's info, you see number 4's. It is as if the grid cannot comprehend that the person selected is different, and the Ids haven't changed.
My question is, is there a way to set the selected row to the person whose last ID was selected when the IE back button is pressed, or is there a way to just reset the ID to the first person when the grid is brought back using the IE back button? Thank you.
Chad Johnson