More in this section
Forums / General Discussions / Telerik RadGrid control

Telerik RadGrid control

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Shekar
    Shekar avatar
    35 posts
    Registered:
    11 Mar 2011
    05 Apr 2011
    Link to this post
    i have created an user control to Add / Edit / Delete records from a table using RadGrid control. And i have uploaded this control on to the sitefinity site, by using "upload a control" facility, but when i am trying to drag and drop this user control on one of the pages created it is showing an error message like below

    A control with ID 'des2$ctl04$usercontrols_workings_radctrl_ascx1$RadGrid1' could not be found for the trigger in UpdatePanel 'des2$ctl04$usercontrols_workings_radctrl_ascx1$RadGrid1Panel'.

    Any suggestions are highly appreciable,

    Thanks

    .aspx page code is below

     

     

    <

     

    p id="divMsgs" runat="server">

     

     

     

     

     

     

     

    <asp:Label ID="Label1" runat="server" EnableViewState="False" Font-Bold="True" ForeColor="#FF8080"></asp:Label>

     

     

     

     

     

     

     

    <asp:Label ID="Label2" runat="server" EnableViewState="False" Font-Bold="True" ForeColor="#00C000"></asp:Label>

     

     

     

     

     

     

     

    </p>

     

     

     

     

     

     

     

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

     

     

     

     

     

     

     

    <script type="text/javascript">

     

     

     

     

     

     

     

    function RowDblClick(sender, eventArgs) {

     

     

    sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());

     

    }

     

     

    </script>

     

     

     

     

     

     

     

    </telerik:RadCodeBlock>

     

     

     

     

     

     

     

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

     

     

     

     

     

     

     

    <AjaxSettings>

     

     

     

     

     

     

     

    <telerik:AjaxSetting AjaxControlID="RadGrid1">

     

     

     

     

     

     

     

    <UpdatedControls>

     

     

     

     

     

     

     

    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />

     

     

     

     

     

     

     

    <telerik:AjaxUpdatedControl ControlID="divMsgs" />

     

     

     

     

     

     

     

    </UpdatedControls>

     

     

     

     

     

     

     

    </telerik:AjaxSetting>

     

     

     

     

     

     

     

    </AjaxSettings>

     

     

     

     

     

     

     

    </telerik:RadAjaxManager>

     

     

     

     

     

     

     

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />

     

     

     

     

     

     

     

    <telerik:RadGrid ID="RadGrid1" runat="server" CssClass="RadGrid" GridLines="None" AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False"

     

     

     

     

     

     

     

    ShowStatusBar="true" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" DataSourceID="SessionDataSource1" OnItemDeleted="RadGrid1_ItemDeleted"

     

     

     

     

     

     

     

    OnItemInserted="RadGrid1_ItemInserted" OnItemUpdated="RadGrid1_ItemUpdated" OnItemCommand="RadGrid1_ItemCommand" OnPreRender="RadGrid1_PreRender">

     

     

     

     

     

     

     

    <MasterTableView CommandItemDisplay="TopAndBottom" DataSourceID="SessionDataSource1">

     

     

     

     

     

     

     

    <Columns>

     

     

     

     

     

     

     

    </Columns>

     

     

     

     

     

     

     

    <EditFormSettings EditFormType="Template" >

     

     

     

     

     

     

     

    <FormTemplate>

     

     

     

     

     

     

     

    <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none"

     

     

     

     

     

     

     

    style="border-collapse: collapse; background: white;">

     

     

     

     

     

     

     

    <tr class="EditFormHeader">

     

     

     

     

     

     

     

    <td style="font-size: small">Taxanomy Details</td>

     

     

     

     

     

     

     

    </tr>

     

     

     

     

     

     

     

    <tr>

     

     

     

     

     

     

     

    <td>

     

     

     

     

     

     

     

    <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module">

     

     

     

     

     

     

     

    <tr>

     

     

     

     

     

     

     

    <td>Name:</td>

     

     

     

     

     

     

     

    <td><asp:TextBox ID="TxtName" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox>

     

     

     

     

     

     

     

    <asp:RequiredFieldValidator ID="RFVTxtName" Display="Dynamic" ControlToValidate="TxtName" Text="Error" ErrorMessage="You must provide your name" runat="server" ValidationGroup="VGRequired"></asp:RequiredFieldValidator>

     

     

     

     

     

     

     

    </td>

     

     

     

     

     

     

     

    </tr>

     

     

     

     

     

     

     

    <tr>

     

     

     

     

     

     

     

    <td>Rank:</td>

     

     

     

     

     

     

     

    <td><asp:TextBox ID="TxtRank" runat="server" Text='<%# Bind("Rank") %>' TabIndex="1"></asp:TextBox></td>

     

     

     

     

     

     

     

    </tr>

     

     

     

     

     

     

     

    <tr>

     

     

     

     

     

     

     

    <td>Code:</td>

     

     

     

     

     

     

     

    <td><asp:TextBox ID="TxtCode" runat="server" Text='<%# Bind("Code") %>' TabIndex="2"></asp:TextBox></td>

     

     

     

     

     

     

     

    </tr>

     

     

     

     

     

     

     

    <tr>

     

     

     

     

     

     

     

    <td>Active:</td>

     

     

     

     

     

     

     

    <td><asp:DropDownList ID="ddlActive" runat="server" SelectedValue='<%# Bind("Active") %>' DataSource='<%# (new string[] { "True", "False" }) %>' TabIndex="3" AppendDataBoundItems="True">

     

     

     

    <asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem>

     

     

     

     

     

     

     

    </asp:DropDownList>

     

     

     

     

     

     

     

    </td>

     

     

     

     

     

     

     

    </tr>

     

     

     

     

     

     

     

    </table>

     

     

     

     

     

     

     

    </td>

     

     

     

     

     

     

     

    </tr>

     

     

     

     

     

     

     

    <tr>

     

     

     

     

     

     

     

    <td align="right" colspan="2">

     

     

     

     

     

     

     

    <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'

     

     

     

     

     

     

     

    runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' CausesValidation="true" ValidationGroup="VGRequired">

     

     

     

     

     

     

     

    </asp:Button>&nbsp;

     

     

     

     

     

     

     

    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"

     

     

     

     

     

     

     

    CommandName="Cancel"></asp:Button>

     

     

     

     

     

     

     

    </td>

     

     

     

     

     

     

     

    </tr>

     

     

     

     

     

     

     

    <tr><td><asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="VGRequired" runat="server" HeaderText="Enter the name"></asp:ValidationSummary></td></tr>

     

     

     

     

     

     

     

    </table>

     

     

     

     

     

     

     

    </FormTemplate>

     

     

     

     

     

     

     

    </EditFormSettings>

     

     

     

     

     

     

     

    </MasterTableView>

     

     

     

     

     

     

     

    <ClientSettings>

     

     

     

     

     

     

     

    <ClientEvents OnRowDblClick="RowDblClick" />

     

     

     

     

     

     

     

    </ClientSettings>

     

     

     

     

     

     

     

    </telerik:RadGrid>

     

     

     

     

     

     

     

    <asp:SqlDataSource ID="SessionDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CustomConnectionString %>"

     

     

     

     

     

     

    ProviderName

     

    ="System.Data.SqlClient" OldValuesParameterFormatString="original_{0}" ConflictDetection="CompareAllValues"></asp:SqlDataSource>

     

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    06 Apr 2011
    Link to this post
    Hi Shekar,

    Please take a look at this forum thread where I had discussion about the same issue.

    http://www.sitefinity.com/devnet/forums/sitefinity-3-x/developing-with-sitefinity/error-from-usercontrol-with-radajaxmanager-in-edit-mode.aspx

    All the best,
    Ivan Dimitrov
    the Telerik team

2 posts, 0 answered