# Problem 1
Requirement:
Note: I am using Telerik 2008 version
When I click the Radgird Row that time Check box checked. If I click the same row again that row check box is unchecked.
Note: Now I can able to only check box checked process. But I am not able do it check box unchecked process.
Steps to Replicate: (note: Client side scripts)
1. Generate the RadGrid with check box
2. Click the RadGrid Row. The check box Checked fine. (Note: you want to click row and not directly checkbox ok...)
3. Again I click the same row Click. The Checkbox is unchecked. (I Want do it unchecked. I Mean I want to need reverse process.
Reference: See the Problem1.jpg image
# Problem 2
Requirement:
I want to select multiple row checkbox through Radgrid row click.
Note: But now, I am not able to click more then one row check box. I want to click more then one Row check box through row click.
Steps to Replicate: (note: Client side scripts)
1. Generate the RadGrid with check box
2. Click any row now the check box is checked. Now click another one row. The current row checkbox only checked. As per requirement we want to check box two row check box. Which is going to smilar….
Reference: See the Problem2.jpg image
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<telerik:RadCodeBlock ID="dsafdsa" runat="server">
<script language="javascript" type="text/javascript">
function RowClick(rowIndex)
{
// alert("Click on row with index: " + rowIndex);
return false; //cancel the postback request set with ClientSettings -> EnablePostBackOnRowClick = true
}
function RowSelecting(sender, args) {
var id = args.get_id();
var inputCheckBox = $get(id).getElementsByTagName("input")[0];
if (!inputCheckBox || inputCheckBox.disabled) {
//cancel selection for disabled rows
args.set_cancel(true);
}
if (inputCheckBox.checked == true) {
inputCheckBox.checked = false;
}
else
{
inputCheckBox.checked =true;
}
}
function RowDeselecting(sender, args) {
alert("Deselect");
var id = args.get_id();
var inputCheckBox = $get(id).getElementsByTagName("input")[2];
if (!inputCheckBox || inputCheckBox.disabled) {
//cancel selection for disabled rows
args.set_cancel(true);
}
inputCheckBox.checked = false;
}
</script>
</telerik:RadCodeBlock>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>
<div>
<telerik:RadComboBox ID="RadComboBox1" Runat="server">
</telerik:RadComboBox>
<asp:HiddenField ID="HiddenField2" runat="server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid ID="RadGrid1" runat="server"
AllowPaging="True" PageSize="10" Width="97%" AllowMultiRowSelection="True"
GridLines="None">
<PagerStyle Mode="NumericPages" />
<ClientSettings EnableRowHoverStyle="true">
<Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" EnableDragToSelectRows="true"/>
<ClientEvents OnRowClick="RowSelecting" />
</ClientSettings>
<MasterTableView>
<Columns>
<telerik:GridClientSelectColumn>
</telerik:GridClientSelectColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</div>
</form>
</body>
</html>
Please provide me solutions for this problem. if you have any source code please send to me......
Thanks & Regards
G. Manikandan