Dear All,
We are developing project using asp.net with c sharp and I have TreeList in my page with checkbox but when i select parent checkbox child checkbox not checked what i need to do solve this..
my aspx code is
And My aspx.cs page code is.
Thanks in Advance..!
We are developing project using asp.net with c sharp and I have TreeList in my page with checkbox but when i select parent checkbox child checkbox not checked what i need to do solve this..
my aspx code is
<telerik:RadTreeList ID=
"radTreelistLocation"
runat=
"server"
OnItemDataBound=
"radTreelistLocation_ItemDataBound"
AutoGenerateColumns=
"false"
ParentDataKeyNames=
"ParentLocationId"
AllowMultiItemSelection=
"true"
ShowTreeLines=
"true"
OnNeedDataSource=
"RadTreeList1_NeedDataSource"
AllowPaging=
"true"
PageSize=
"50"
DataKeyNames=
"ID"
AllowSorting=
"true"
>
<Columns>
<telerik:TreeListTemplateColumn UniqueName=
"locationName"
HeaderText=
"Location Name"
>
<ItemTemplate>
<asp:CheckBox ID=
"chkAssign"
runat=
"server"
Checked=
'<%# Eval("IsChecked") %>'
OnCheckedChanged=
"chkAssign_CheckChanged"
/>
</ItemTemplate>
</telerik:TreeListTemplateColumn>
<telerik:TreeListTemplateColumn UniqueName=
"locationName"
HeaderText=
"Location Name"
>
<ItemTemplate>
<asp:Label ID=
"lblLocationName"
runat=
"server"
Text=
'<%#Eval("Name") %>'
/>
</ItemTemplate>
</telerik:TreeListTemplateColumn>
</Columns>
</telerik:RadTreeList>
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!Page.IsPostBack)
{
PopulateUsers();
radTreelistLocation.ExpandAllItems();
bindGrid();
}
}
protected
void
RadTreeList1_NeedDataSource(
object
sender, EventArgs e)
{
radTreelistLocation.DataSource = _applicationProcess.SelectLocations();
}
public
void
bindGrid()
{
List<Location> locationlist =
new
List<Location>();
locationlist = _applicationProcess.SelectLocations();
radTreelistLocation.DataSource = _applicationProcess.SelectLocations();
radTreelistLocation.DataBind();
ViewState[
"location"
] = locationlist;
}
}
Thanks in Advance..!