telerik:RadAjaxManagerProxy <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="ddlFamily"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ddlFamily" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" /> <telerik:AjaxUpdatedControl ControlID="ddlGroup" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="ddlGroup"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ddlGroup" UpdatePanelCssClass="" /> <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="ddlckcacessorios"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="ddlformato"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="ddltipo"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="ddlcampanhas"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="ddlFaixaPreco"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="ddlfiltros"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="btnSearch"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="txtCodigo" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" /> <telerik:AjaxUpdatedControl ControlID="btnSearch" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" /> <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" /> <telerik:AjaxUpdatedControl ControlID="P13" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadDataPager1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ListViewPanel1" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManagerProxy> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" EnableSkinTransparency="True" Skin="Vista" Transparency="30"/> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Metro" EnableSkinTransparency="True" Transparency="70"/><asp:Button ID="btnSearch" runat="server" Font-Names="Open Sans" style="margin-left:20px" CssClass="botaoNeutro" Visible="False" /> <div style="text-align: center; background-color:white; width: 99%;"> <asp:Panel ID="ListViewPanel1" runat="server" > <telerik:RadListView ID="RadListView1" runat="server" AllowPaging="True" DataSourceID="SqlDataSource" ItemPlaceholderID="ProductsContainer" DataKeyNames="cod_produto" OnPageIndexChanged="RadListView1_PageIndexChanged" AllowMultiItemSelection="True" Skin="Vista" Font-Names="Open Sans" ClientDataKeyNames="cod_produto" PageSize="12" > <%-- OnItemDataBound="Radlist1_ItemDataBound"--%> <LayoutTemplate> <div style="width: 940px; padding-left: 40px;"> <table> <tr> <td style="width: 930px" align="left"> <asp:PlaceHolder ID="ProductsContainer" runat="server"></asp:PlaceHolder> </td> </tr> </table> </div> </LayoutTemplate> <ItemTemplate> <div style="float: left; width: 150px; height: 145px; text-align: left;" align="left"> <table cellpadding="0" cellspacing="0" align="left"> <tr> <td> <asp:Image ID="ImageButton1" runat="server" width="140px" height="110px" Style="cursor:pointer;" onclick="ShowProduto(this)" ImageUrl='<%# "URL=" + Eval("cod_produto")%>' ToolTip='<%# Eval("cod_produto")%>' /> </td> </tr> </table> </div> </ItemTemplate> </telerik:RadListView> <table> <tr> <td align="center"> <fieldset style="width: 900px; padding-left: 40px; display: none;" id="FieldSet1" class="RadListView RadListView_Vista"> <table width="100%" class="RadListView RadListView_Vista" align="center"> <tr> <td> <telerik:RadDataPager ID="RadDataPager1" align="center" runat="server" PagedControlID="RadListView1" Font-Names="Open Sans" PageSize="12" BorderStyle="None" Skin="Vista" > <Fields> <%-- <telerik:RadDataPagerPageSizeField PageSizeText="<%$ Resources:Termos, QtdPagina %>" HorizontalPosition="LeftFloat" /> --%> <telerik:RadDataPagerTemplatePageField> <PagerTemplate> <div> <span style="vertical-align: middle; font-weight: bold; padding-left: 5px; font-family: 'Open Sans';"> <asp:Label ID="Label10" runat="server" Text="<%$ Resources:Termos, QtdPagina %>"></asp:Label> </span> <telerik:RadComboBox runat="server" Font-Names="Open Sans" ID="cmbPageSize" OnSelectedIndexChanged="cmbPageSize_SelectedIndexChanged" AutoPostBack="true" Width="40px" SelectedValue='<%# Container.Owner.PageSize %>' Skin="Vista"> <Items> <telerik:RadComboBoxItem Text="6" Value="6" /> <telerik:RadComboBoxItem Text="12" Value="12" /> <telerik:RadComboBoxItem Text="24" Value="24" /> <telerik:RadComboBoxItem Text="48" Value="48" /> <telerik:RadComboBoxItem Text="54" Value="54" /> <telerik:RadComboBoxItem Text="60" Value="60" /> </Items> </telerik:RadComboBox> </div> </PagerTemplate> </telerik:RadDataPagerTemplatePageField> <telerik:RadDataPagerButtonField FieldType="Numeric" /> </Fields> </telerik:RadDataPager> </td> </tr> </table> </fieldset> </td> </tr> </table> </asp:Panel></div>

hi,
we have an ASP.NET website.
Within here a user control.
THis user control contains two RADGRID controls.
Grid 1 is populated with data. Grid 2 is empty.
We are trying to drag a row from Grid 1 to Grid 2.
We have this working in another web page, but it seems that within a user control there are complications. When we perform the drag/drop we get this error:
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.review_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\mppr4\4fbd45b7\6039e974\App_Web_r6ddz0kb.20.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
function onRowDropping(sender, args) {
debugger;
if (sender.get_id() == "<%=rgArticles.ClientID %>") {
var node = args.get_destinationHtmlElement();
if (!isChildOf('<%=RadGrid1.ClientID %>', node) && !isChildOf('<%=rgArticles.ClientID %>', node)) {
args.set_cancel(true);
}
}
}
function isChildOf(parentId, element) {
while (element) {
if (element.id && element.id.indexOf(parentId) > -1) {
return true;
}
element = element.parentNode;
}
return false;
}
