When you have a grid that has an ID that starts with an underscore (_), the selection does not work.
When your grid is contained by another runat=server control, the generated client id could be something like this:
ct100_container__grid__0, in which case the length of el.id.split("__") is 3, not two, so the client side selection code breaks. It is important to note that a leading underscore is a perfectly valid control ID, which has the side effect of breaking the client side selection.
According to this thread, the problem will be fixed in the next update. According to the bug report with ID 157577, the problem is too hard to fix, and Telerik may consider adding a note to the documentation to help you avoid the problem.
So, whether the forum or the bug report is correct, you might want to avoid using variables that start with a leading underscore, as it took me two days to find the problem and create a sample application.
Thanks,
Matt
The problem is that the javascript code in GridSelection.js does not handle the case where a grid is contained by a runat="server" control AND it's ID begins with an underscore. In this case, the generated ID has two underscores next to each other in the generated client id. And throughout GridSelection.js, there are lines such as:
if( el.id.split("__").length == 2 ) |
When your grid is contained by another runat=server control, the generated client id could be something like this:
ct100_container__grid__0, in which case the length of el.id.split("__") is 3, not two, so the client side selection code breaks. It is important to note that a leading underscore is a perfectly valid control ID, which has the side effect of breaking the client side selection.
According to this thread, the problem will be fixed in the next update. According to the bug report with ID 157577, the problem is too hard to fix, and Telerik may consider adding a note to the documentation to help you avoid the problem.
So, whether the forum or the bug report is correct, you might want to avoid using variables that start with a leading underscore, as it took me two days to find the problem and create a sample application.
Thanks,
Matt