I would like the grid to work in a way so that the user clicks on a row and the row is selected and then I need to redirect to another page based on which row the user selects. In example: if there are three columns, Member ID, Member Name and DOB and the Member ID is the DataKeyField. When the user clicks on a row, I want to redirect to another page...but I'm sending the value of the Member ID field as a querystring when redirecting to the other page. Any suggestions?
Using the UltraWebGrid, I used to accomplish this in the Click event with the following code...but I can't get it to work using the WebDataGrid:Protected Sub grid_Click(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.ClickEventArgs) Handles grid.ClickResponse.Redirect("Summary.aspx?Member_ID=" & e.Row.Cells.FromKey("Member_ID").Value)End Sub
Never mind. I found a workaround that allows me to keep ajax enabled and redirect to a different page on row selection changed.
Does this mean it is not possible to have an Ajax enabled WebDataGrid that can redirect to a different page after a Row is selected?
Hello algunderson,
I'm glad to hear that. If you have any other questions, please let me know.
I figured it out. It was happening because I had marked the ActiveCellChanged flag to True in the WebDataGrid Designer under the Activation>AutoPostBackFlags section. As soon as I marked it back to False (it defaults to False), it no longer refreshes the page when the filter row is selected/clicked.Thank you for all your help!
Hi algunderson,
Clicking on the filter row should not trigger RowSelectionChanged event and do a postback. Can you provide me with a sample, demonstrating this behavior, as I am so far unable to reproduce it.
Thanks.