Debug your js code to see what part of it gets processed and whether errors occur. This can help you trace what's wrong.
Debugging by adding alerts in the code have not yielded much as it seems to run occassionally and not as expected. – Kobojunkie Mar 7 at 19:57.
Look at the following line: alert("Click on row instance: " + eventArgs. Get_itemIndex You haven't defined eventArgs. This is the first line of the function so it makes sense that "nothing" happens when you click on the row.
Change your function to be as follows: function RowClick(rowIndex, eventArgs) { alert("Click on row instance: " + eventArgs. Get_itemIndex var e = window. Event; var sourceElement; alert(sourceElement); if (e.
SrcElement) { sourceElement = e. SrcElement; alert("sourceElement"); } else if (e. Target) { sourceElement = e.
Target; alert("target"); } alert("About to check ROw Index"); if (rowIndex! = null) { alert("Checked ROw Index"); inputField = grid.MasterTableView.RowsrowIndex.Control. GetElementsByTagName("INPUT")0; alert(inputField); selvalue = sourceElement.
Value; alert(selvalue); if (inputField! = null) { alert("About to show it"); var popuppage = "userroleselect. Aspx" + "?
Sel=" + selvalue + "&avail=" + inputField. Value; alert("Shown it! "); window.
Radopen(popuppage, "UserRoleDialog"); } else { alert("Did Not Make it"); } } } Notice the eventArgs parameter also notice the the variable e is now defined in the function.
Sorry, that was a typo on my part. Even though none of my alert boixes show up,the problem seems to be with the line inputField = grid.MasterTableView.RowsrowIndex.Control. GetElementsByTagName("INPUT")0; – Kobojunkie Mar 7 at 20:56 The first problem is that your alert boxes should be appearing.
I would begin commenting out unnecessary code and until the alert boxes appear. Once they are appearing, I would add code one line at a time and then test after each line is added until the exact location of the problem is determined. – Alison Mar 7 at 21:09 I cleared out all of the code and was not able still to get a popup – Kobojunkie Mar 7 at 22:57 I ran a quick test using the example code from telerik.Com/help/aspnet-ajax/grid_onrowclick.
Html and it worked perfectly. I would need to see your "simple" RowClick function to see what is going on.It is simple to wire up the onrowclick event of a GridView and you should be able to get an alert without any problems. – Alison Mar 7 at 23:17 @Allison, above is what I have now – Kobojunkie Mar 77 at 0:07.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.