or
<
telerik:RadGrid
ID
=
"grdCurrentNettpayDatails"
runat
=
"server"
CellSpacing
=
"0"
GridLines
=
"None"
AutoGenerateColumns
=
"False"
Skin
=
"Windows7"
AutoGenerateHierarchy
=
"True"
AllowPaging
=
"True"
OnUpdateCommand
=
"grdCurrentNettpayDetails_UpdateCommand"
PageSize
=
"15"
OnNeedDataSource
=
"grdDetails_NeedDataSource"
OnDetailTableDataBind
=
"grdDetails_DetailTableDataBind"
>
<
MasterTableView
HierarchyDefaultExpanded
=
"false"
DataKeyNames
=
"Id"
NoDetailRecordsText
=
"No payment records found."
>
grdDatails.DataSource = myDataSet;
grdDatails.DataBind();
protected
void
grdDetails_DetailTableDataBind(
object
sender, GridDetailTableDataBindEventArgs e)
{
var proxy =
new
MySDomainServicesoapClient();
var list=
new
List<Record>();
foreach
(GridDataItem dataItem
in
grdCurrentNettpay.MasterTableView.Items)
{
var checkBox = (dataItem.FindControl(
"CheckBox1"
)
as
CheckBox);
if
(checkBox !=
null
&& checkBox.Checked)
{
var recordId =
new
Guid(dataItem[
"Id"
].Text);
var record = proxy.GetRecrordsById(recordId).RootResults.SingleOrDefault();
list.Add(record);
}
}
proxy.Close();
var xmlDoc =
XmlHelper.GetStructuredXmlForRecords(
list);
var myDataSet= XmlHelper.GetHierarchicalDsFromXml(xmlDoc);
string
parentItemId = e.DetailTableView.ParentItem[
"Id"
].Text;
((RadGrid)sender).DataSource = myDataSet.Tables[1].Select(
"RecordId= "
+
"'"
+ parentItemId +
"'"
);
}
protected
void
grdDetails_UpdateCommand(
object
sender, Telerik.Web.UI.GridCommandEventArgs e)
{
GridEditableItem gridEditFormItem = (GridEditableItem)e.Item;
var id=
new
Guid(gridEditFormItem.GetDataKeyValue(
"Id"
).ToString());
// Give me null!
}
I am using RadMenu & RadButton control in an application and I have customized the Radmenu with
www.stylebuilder.telerik.com
the problem is when radmenu child items are expand then another radmenu and radbutton is overlapped.
Please see the screenshot.
<
telerik:AjaxSetting
AjaxControlID
=
"cboSchedules"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"tab"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"mp"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>