Below is a portion of my grid, which uses a DetailTable with its own CommandItemTemplate
<
DetailTables
>
<
telerik:GridTableView
Name
=
"PersonConditionGrid"
runat
=
"server"
DataKeyNames
=
"PersonConditionId"
Caption
=
"Conditions linked with this Person"
DataSourceID
=
"PersonConditionViewDataSrcId"
TableLayout
=
"Auto"
Width
=
"580px"
AutoGenerateColumns
=
"false"
CommandItemDisplay
=
"Top"
ShowFooter
=
"true"
FooterStyle-BorderStyle
=
"Solid"
FooterStyle-BorderWidth
=
"2pt"
>
<
ParentTableRelation
>
<
telerik:GridRelationFields
DetailKeyField
=
"PersonId"
MasterKeyField
=
"PersonId"
/>
</
ParentTableRelation
>
<
HeaderStyle
Font-Bold
=
"true"
/>
<
CommandItemTemplate
>
<
table
width
=
"100%"
>
<
tr
>
<
td
align
=
"left"
>
<
asp:LinkButton
ID
=
"btnAddNew"
runat
=
"server"
CommandName
=
"InitInsert"
><
asp:Image
ID
=
"imgAddNew"
runat
=
"server"
ImageUrl
=
"~/Images/button-New-24.gif"
/> Add New Condition</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"btnSaveNew"
runat
=
"server"
CommandName
=
"PerformInsert"
ValidationGroup
=
"EntryClass_VG"
><
asp:Image
ID
=
"imgSaveNew"
runat
=
"server"
ImageUrl
=
"~/Images/button-Save-24.gif"
/> Save Condition</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"btnEdit"
runat
=
"server"
CommandName
=
"EditSelected"
><
asp:Image
ID
=
"imgEdit"
runat
=
"server"
ImageUrl
=
"~/Images/button-Edit-24.gif"
/> Take Action on Condition</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"btnSaveEdit"
runat
=
"server"
CommandName
=
"UpdateEdited"
ValidationGroup
=
"EntryClass_VG"
><
asp:Image
ID
=
"imgSaveEdit"
runat
=
"server"
ImageUrl
=
"~/Images/button-Save-24.gif"
/> Save Condition</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"btnCancel"
runat
=
"server"
CommandName
=
"CancelAll"
CausesValidation
=
"false"
><
asp:Image
ID
=
"imgCancel"
runat
=
"server"
ImageUrl
=
"~/Images/button-Cancel-24.gif"
/> Cancel Edit</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"btnDelete"
runat
=
"server"
CommandName
=
"DeleteSelected"
OnClientClick
=
"return confirm('Are you sure you want to delete the selected record?');"
><
asp:Image
ID
=
"imgDelete"
runat
=
"server"
ImageUrl
=
"~/Images/button-Del-24.gif"
/> Delete Condition</
asp:LinkButton
>
</
td
>
</
tr
>
</
table
>
</
CommandItemTemplate
>
<
Columns
>
<
telerik:GridTemplateColumn
UniqueName
=
"SiteAccessConditionName"
HeaderText
=
"Access Condition Name"
HeaderStyle-Width
=
"200px"
HeaderStyle-HorizontalAlign
=
"Center"
>
<
ItemTemplate
>
After a Save operation, the detailTable remains open, with the new item displayed in the grid (as expected).
After a Cancel or Delete operation, the DetailsTable collapses and the user has to expand the item again.
Is there some way to prevent the DetailTable from collapsing after the Cancel or Delete operation?
protected void radGridPeople_ItemCommand(object sender, GridCommandEventArgs e)
{
try
{
if (e.Item.OwnerTableView.Name == "PersonConditionGrid")
{
if (e.CommandName == RadGrid.EditSelectedCommandName)
{
e.Item.OwnerTableView.EditMode = GridEditMode.PopUp;
e.Item.OwnerTableView.EditFormSettings.UserControlName = "PeopleMaint/PersonCondAction.ascx";
}
}
}
catch (Exception ex)
{
ErrorHandler.WriteErrorLog(GenFunctions.CurrentUserName, System.Reflection.MethodBase.GetCurrentMethod().Name, ex);
generalCustomValidator.ErrorMessage = ex.Message + "<
br
/>" + ex.StackTrace;
generalCustomValidator.IsValid = false;
}
}
Hello Telerik Team,
I have used RadToolTip in my site extensively. Recently I have updated the Telerik version to “2012.2.724.35” and after that i am facing formatting issues related to RadToolTip.
Older Version we were using: 2011.1.519.35
New Version currently we are using: 2012.2.724.35
I have gone through on all release notes between the above two versions and as per the release note of “Q1 2012 (version 2012.1.215)” there is a improvement in default padding and/or margin to the content area and Tooltip title element for better UI and visualization. But these formatting improvements forced to changes the other controls position present inside the RadToolTip control since in the new Telerik version the RadToolTip captures the more padding space which minimize the actual content area where the other controls are present.
To resolve this issue I have to change many of the pages in our project but it takes huge time to do changes for all RadToolTip. Kindly suggest, is there any way to apply the older padding to RadToolTip or override the RadToolTip default padding?
Please suggest any workaround to get rid from these formatting issues.
Thanks,
Ashish
ProductList.PagerStyle.NextPageToolTip = "sometext";
Thanks!