Hi,
We have a website integrated with Sitefinity(CMS) and we started using Telerik controls. I have encountered a problem which needs to be solved as soon as possible to meet our deadline.
The RadGrid was working till this afternoon, we realized the commands does not fire anymore. The grid displays the rows but the "Add New Record", "Edit" and "Delete" does not work. These were working before, not sure what happened now. All I could find is, there are few JavaScript errors (please see the attached image).
The grid is also pasted below for your review. Please help us out of this issue.
<telerik:RadGrid ID="radProviderListGrid" AllowAutomaticDeletes="true"
DataSourceID="sqlCEProviderActivities" AllowSorting="True" AllowPaging="True" Width="650px"
runat="server" PageSize="50"
AllowAutomaticInserts="false"
Skin="WebBlue" OnItemCommand ="radProviderListGrid_ItemCommand" OnItemDeleted="radProviderListGrid_ItemDeleted" OnItemUpdated="radProviderListGrid_ItemUpdated"
OnItemInserted ="radProviderListGrid_ItemInserted" OnInsertCommand="radProviderListGrid_InsertCommand" OnUpdateCommand="radProviderListGrid_UpdateCommand"
MasterTableView-DataKeyNames="ID" AutoGenerateColumns="false" ShowGroupPanel="True" EnableHierarchyExpandAll="true" EnableLinqExpressions="false" GridLines="None">
<PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
<MasterTableView Width="100%" CommandItemDisplay="Top" EditMode="EditForms" DataSourceID="sqlCEProviderActivities" DataKeyNames="ID" AutoGenerateColumns="false" ShowGroupFooter="true">
<NoRecordsTemplate>
<div>
There are no CE Provider Activities to display
</div>
</NoRecordsTemplate>
<Columns>
<telerik:GridEditCommandColumn ButtonType="LinkButton" UniqueName="EditCommandColumn"/>
<telerik:GridBoundColumn DataField="ID" HeaderText="ID" SortExpression="ID" UniqueName="ID" Visible="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="StartDate" HeaderText="Start Date" SortExpression="StartDate" UniqueName="StartDate" DataFormatString="{0:d}">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="EndDate" HeaderText="End Date" SortExpression="EndDate" UniqueName="EndDate" DataFormatString="{0:d}"/>
<telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City" UniqueName="City">
</telerik:GridBoundColumn>
<telerik:GridCheckBoxColumn DataField="IsOngoingActivity" HeaderText="Ongoing Activity?" DataType="System.Boolean" SortExpression="IsOngoingActivity" UniqueName="IsOngoingActivity"/>
<telerik:GridCheckBoxColumn DataField="ListOnSite" HeaderText="List On Site" DataType="System.Boolean" SortExpression="ListOnSite" UniqueName="ListOnSite"/>
<telerik:GridButtonColumn Text="Delete" CommandName="Delete" ButtonType="LinkButton" UniqueName="DeleteCommandColumn" ConfirmText="Delete Row?" ConfirmTitle="Delete?" />
</Columns>
<EditFormSettings EditFormType="Template">
<EditColumn ButtonType="ImageButton" />
<FormTemplate>
<p></p>
<p><b>CE Provider Activity Details</b></p>
<hr />
<table class="formTable">
<tr>
<td style="text-align:right">Do not list on site</td>
<td class="control">
<asp:CheckBox ID="chkDoNotListOnsite" runat="server" Checked='<%# IIf(DataBinder.Eval(Container.DataItem, "ListOnSite") Is DBNull.Value, False, Eval("ListOnSite"))%>' />
</td>
<td style="text-align:right">Is Ongoing Activity?</td>
<td class="control">
<asp:CheckBox ID="chkOngoingActivity" runat="server" Checked='<%# IIf(DataBinder.Eval(Container.DataItem, "IsOngoingActivity") Is DBNull.Value, False, Eval("IsOngoingActivity"))%>'/>
</td>
</tr>
<tr>
<td style="text-align:right">Start Date :</td>
<td class="control">
<telerik:RadDatePicker ID="radDateStartDate" Width="150px" runat="server" DbSelectedDate='<%# Bind("StartDate")%>' Skin="Metro">
</telerik:RadDatePicker>
</td>
<td style="text-align:right">End Date :</td>
<td class="control">
<telerik:RadDatePicker ID="radDateEndDate" Width="150px" runat="server" DbSelectedDate='<%# Bind("EndDate")%>' Skin="Metro">
</telerik:RadDatePicker>
</td>
</tr>
<tr>
<td style="text-align:right">Country</td>
<td class="control">
<asp:DropDownList runat="server" ID="ddlCountry" class="dropdownlist" DataSourceID="sqlCountries"
DataTextField="Country" >
</asp:DropDownList>
</td>
<td style="text-align:right">Languages</td>
<td class="control"><asp:DropDownList runat="server" ID="ddlLanguages" class="dropdownlist" DataTextField='<%# Bind("Languages")%>'>
<asp:ListItem></asp:ListItem>
<asp:ListItem>English</asp:ListItem>
<asp:ListItem>French</asp:ListItem>
<asp:ListItem>English & French</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="text-align:right">State/Province</td>
<td class="control">
<asp:DropDownList runat="server" ID="ddlStates" class="dropdownlist" DataSourceID="sqlStates" DataTextField="FullName" />
</td>
<td style="text-align:right">Registration Fee</td>
<td class="control">
<telerik:RadNumericTextBox ID="radNumericTextBox" runat="server" class="textBox" NumberFormat-DecimalDigits="2" Type="Currency" MinValue="0" Text='<%# Bind("RegistrationFee")%>'>
</telerik:RadNumericTextBox></td>
</tr>
<tr>
<td style="text-align:right"> City </td>
<td class="control">
<asp:TextBox ID="txtCity" runat="server" class="textBox" Text='<%# Bind("City")%>'>
</asp:TextBox>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td style="text-align:right">Website</td>
<td colspan="3"><asp:TextBox ID="txtWebsite" runat="server" ClientIdMode="Static" class="URL" Text='<%# Bind("Website")%>'>
</asp:TextBox>
<asp:RegularExpressionValidator ID="regUrl"
runat="server"
ControlToValidate="txtWebsite"
ValidationExpression="^((http|https)://)?([\w-]+\.)+[\w]+(/[\w- ./?]*)?$"
Text="Enter a valid URL" ForeColor="red"/>
</td>
</tr>
</table>
<hr />
<table id="tblEditForm" style="border-collapse: collapse;">
<tr><td colspan="2"></td></tr>
<tr>
<td>
<table><tr><td colspan="2"> </td></tr></table>
</td>
<td>
<table id="tblEditFormInner">
<tr>
<td colspan="2">
<asp:Button ID="btnUpdate" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>'
runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'></asp:Button>
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
CommandName="Cancel"></asp:Button>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</FormTemplate>
</EditFormSettings>
</MasterTableView>
<ClientSettings AllowColumnsReorder="True">
<Selecting AllowRowSelect="True"></Selecting>
</ClientSettings>
<GroupingSettings ShowUnGroupButton="true" />
</telerik:RadGrid>