Hi dev_here,
I am attaching a sample, implementing your scenario. I used WebDialogWindow, but you could also use Response.Redirect method in RowSelectionChanged event to navigate to a new page.
Let me know if you have any questions regarding the matter.
If you need any further assistance with the matter please do not hesitate to ask.
why does this have to be in RowSelectionchanged? because I need to get the id of the row (which is one of the columns) and use that Id to get the link.
So how do i get id?
int id=e.CurrentSelectedRows. ????????
Hello dev_here,
You can get the value of column with key "ID" like this:
int id = Int32.Parse(e.CurrentSelectedRows[0].Items.FindItemByKey("ID").Text);
Feel free to contact me if you have any further questions.
Please refer to this thread - http://es.infragistics.com/community/forums/p/74466/378293.aspx.
No i tried enabling viewstate and it doesnt help.i need to define the columns of child grid in the code.
Hello,
I would suggest you to try enabling viewstate or defining the template column in the markup.
Let me know if this helps.
Ok I can sort the column using the sample you provided. But after I sort once all the rows in that column disappear(the ones with the hyperlinks)Is this beacuse they are defined in InitializeRow?
Even if i disable sort on this column and enable sort on all other columns, this seems to happen the same way..Rows qith hyperlinks disappear..Please help!
It is not possible to sort templated columns. You could workaround this by having a hidden BoundDataField, containing the actual values from the templated field. Then on sorting the TemplateDataField, you apply the sorting to this hidden field instead. Here you can find more information and samples of this - http://es.infragistics.com/community/forums/t/67075.aspx.