Hi
Is there any way to cancel a user selecting another row in a radgrid with server-side validation? I want to allow the user to select a row in the grid, but only if some other textboxes are valid.
eg:
Markup:
Code behind:
Is there any way to cancel a user selecting another row in a radgrid with server-side validation? I want to allow the user to select a row in the grid, but only if some other textboxes are valid.
eg:
Markup:
<asp:TextBox ID="txtDummy" runat="server" />
<
telerik:RadGrid
ID
=
"rgProjects"
runat
=
"server"
OnNeedDataSource
=
"rgProjects_NeedDataSource"
OnSelectedIndexChanged
=
"rgProjects_SelectedIndexChanged"
>
<
ClientSettings
Selecting-AllowRowSelect
=
"true"
EnablePostBackOnRowClick
=
"true"
>
<
Scrolling
AllowScroll
=
"true"
SaveScrollPosition
=
"true"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
protected
void
rgProjects_SelectedIndexChanged(
object
sender, EventArgs e)
{
Boolean result = CheckProjectChanges(txtDummy.Text);
if
(result ==
true
)
//continue with stuff - easy
else
//cancel row select! how??
}