Hi,
I have a Grid, have client event row edit and item created event.
when user select the row in client side,
it will popup a summary window.
when user click edit by click the edit link, it will popup another edit window.
however, it will popup the summary window.
And I don't want to open the sumamry window when user click edit link.
How to do that? please hlep.
Regards,
Paul
test.aspx
<telerik:RadGrid ID="RadGrid1"
AllowMultiRowSelection="true"
AllowMultiRowEdit="true"
Skin="WebBlue" runat="server"
AllowAutomaticDeletes="True"
AllowAutomaticInserts="True"
Width="97%" PageSize="15"
AllowAutomaticUpdates="True"
AllowPaging="True"
AutoGenerateColumns="False"
ShowStatusBar="false"
AllowSorting="true"
EnableAJAX="true"
EnableAJAXLoadingTemplate="true"
AllowFilteringByColumn="true"
LoadingTemplateTransparency="50"
OnItemCreated="RadGrid1_ItemCreated"
OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged"
OnNeedDataSource="RadGrid1_NeedDataSource">
<ClientSettings AllowKeyboardNavigation="true"
EnablePostBackOnRowClick="false">
<Selecting AllowRowSelect="true" />
<ClientEvents OnRowSelected="RowSelected" />
</ClientSettings>
....
function RowSelected(sender, args) {
window.open("propertyDetailsPopup.aspx?PropertyID=" + args.getDataKeyValue("Property_ID"), 'propertydetails', 'width=900, height=700');
}
----------------
test.cs
if (e.Item is GridDataItem)
{
HyperLink editLink = e.Item.FindControl("EditLink") as HyperLink;
editLink.Attributes["href"] = "#";
editLink.Attributes["onclick"] = string.Format("return ShowEditForm('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Property_ID"], e.Item.ItemIndex);
}
I have a Grid, have client event row edit and item created event.
when user select the row in client side,
it will popup a summary window.
when user click edit by click the edit link, it will popup another edit window.
however, it will popup the summary window.
And I don't want to open the sumamry window when user click edit link.
How to do that? please hlep.
Regards,
Paul
test.aspx
<telerik:RadGrid ID="RadGrid1"
AllowMultiRowSelection="true"
AllowMultiRowEdit="true"
Skin="WebBlue" runat="server"
AllowAutomaticDeletes="True"
AllowAutomaticInserts="True"
Width="97%" PageSize="15"
AllowAutomaticUpdates="True"
AllowPaging="True"
AutoGenerateColumns="False"
ShowStatusBar="false"
AllowSorting="true"
EnableAJAX="true"
EnableAJAXLoadingTemplate="true"
AllowFilteringByColumn="true"
LoadingTemplateTransparency="50"
OnItemCreated="RadGrid1_ItemCreated"
OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged"
OnNeedDataSource="RadGrid1_NeedDataSource">
<ClientSettings AllowKeyboardNavigation="true"
EnablePostBackOnRowClick="false">
<Selecting AllowRowSelect="true" />
<ClientEvents OnRowSelected="RowSelected" />
</ClientSettings>
....
function RowSelected(sender, args) {
window.open("propertyDetailsPopup.aspx?PropertyID=" + args.getDataKeyValue("Property_ID"), 'propertydetails', 'width=900, height=700');
}
----------------
test.cs
if (e.Item is GridDataItem)
{
HyperLink editLink = e.Item.FindControl("EditLink") as HyperLink;
editLink.Attributes["href"] = "#";
editLink.Attributes["onclick"] = string.Format("return ShowEditForm('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Property_ID"], e.Item.ItemIndex);
}