Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
188 views

I have an ASPX page that works fine in a seperate development project.  I am now trying to move the page into a Visual Studio 2015 project that creates a SharePoint 2010 package.  I just want to deploy the page into the site.

When I load the page through the SharePoint 2010 site, I get a Parser Error page saying that the event handler for OnNeedDataSource is not allowed on this page.  If I remove that event, it complains about the first event that it finds.

Any suggestions on what I might be missing in order to get the events firing?

 

The error is:

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The event handler 'OnNeedDataSource' is not allowed in this page.

Source Error:

Line 37: <telerik:RadCheckBox ID="RadCheckBoxShowDisabledConnections" runat="server" Text="Show Disabled Connections">

Line 38: </telerik:RadCheckBox>

Line 39: <telerik:RadGrid ID="RadGridConnections" runat="server" Width="100%"

Line 40: AllowFilteringByColumn="True"

Line 41: AllowPaging="True" PageSize="5"
Source File: /Pages/TestPage.aspx    Line: 39


Version Information: Microsoft .NET Framework Version:2.0.50727.8745; ASP.NET Version:2.0.50727.8745 

 

The ASPX page is:

<%@ Assembly Name="PSC.UDCS.SP2010, Version=1.0.0.0, Culture=neutral, PublicKeyToken=21ff67ef5617fb2f" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Assembly="Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Page Language="C#"  CodeBehind="UdcsTestPage.aspx.cs" Inherits="PSC.UDCS.SP2010.UdcsTestPage" MasterPageFile="~/_catalogs/masterpage/default.master"  %>
<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    UDCS-Connections
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    Unmanned Device Connection Service - Connections
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
                <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager>
    <h2>Unmanned Device Connections - Connection Setup</h2>
    <asp:Label runat="server" ID="CompileTime"></asp:Label>
                <asp:Label runat="server" ID="Label1"></asp:Label>
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="RadGrid1">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RadGridConnections" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>
                <telerik:RadCheckBox ID="RadCheckBoxShowDisabledConnections" runat="server" Text="Show Disabled Connections">
                </telerik:RadCheckBox>
                    <telerik:RadGrid ID="RadGridConnections" runat="server" Width="100%"
                        AllowFilteringByColumn="True"
                        AllowPaging="True" PageSize="5"
                        AllowSorting="True"
                        AllowAutomaticUpdates="True"
                        AllowAutomaticDeletes="true"
                                    RenderMode="Lightweight"
                        OnNeedDataSource="RadGridConnections_OnNeedDataSource"
                        OnItemDataBound="RadGridConnections_OnItemDataBound"
                        OnDeleteCommand="RadGridConnections_OnDeleteCommand"
                        OnUpdateCommand="RadGridConnections_OnUpdateCommand"
                        OnInsertCommand="RadGridConnections_OnInsertCommand"
                        OnItemCommand="RadGridConnections_OnItemCommand"
                        >
                        <GroupingSettings CaseSensitive="false" />
                        <PagerStyle Mode="NextPrevAndNumeric" />
                        <MasterTableView CommandItemDisplay="TopAndBottom" Width="100%" DataKeyNames="ID, Station,Device,TemplateName" AutoGenerateColumns="False" >
                            <Columns>
                                <telerik:GridButtonColumn CommandName="Edit" Text="Edit" UniqueName="Edit" />
                                <telerik:GridButtonColumn ConfirmText="Disable this connection?" ConfirmDialogType="RadWindow" ConfirmTitle="Disable" CommandName="Delete" />
                                                                <telerik:GridBoundColumn UniqueName="ID" DataField="ID" Display="False" />
                                <telerik:GridBoundColumn UniqueName="DeviceId" DataField="DeviceId" Display="False" />
                                <telerik:GridBoundColumn UniqueName="Station" HeaderText="Station" DataField="Station" />
                                <telerik:GridBoundColumn UniqueName="Device" HeaderText="Device" DataField="Device" />
                                <telerik:GridBoundColumn UniqueName="TemplateName" HeaderText="TemplateName" DataField="TemplateName" />
                                <telerik:GridBoundColumn UniqueName="ApplicationPort" HeaderText="ApplicationPort" DataField="ApplicationPort" />
                                <telerik:GridBoundColumn UniqueName="UseMultiHomed" HeaderText="UseMultiHomed" DataField="UseMultiHomed" />
                                <telerik:GridBoundColumn UniqueName="Application" HeaderText="Application" DataField="Application" />
                                <telerik:GridBoundColumn UniqueName="Access" HeaderText="Access" DataField="Access" />
                                <telerik:GridBoundColumn UniqueName="Connection" HeaderText="Connection" DataField="Connection" />
                                <telerik:GridBoundColumn UniqueName="WhiteListIps" HeaderText="WhiteListIps" DataField="WhiteListIps" />
                            </Columns>
    <EditFormSettings UserControlName="UdcsConnectionEdit.ascx" EditFormType="WebUserControl">
      <EditColumn UniqueName="EditCommandColumn1">
      </EditColumn>
    </EditFormSettings>                        </MasterTableView>
                    </telerik:RadGrid>
</asp:Content>

Marin
Telerik team
 answered on 14 Dec 2016
9 answers
288 views

I have an async upload control in my page along with a grid view wherein all the uploads are displayed. When I click on a line item in a grid I have a download file functionality. But, whenever I click on the download file link, the progress area appears which is not expected. the progress area is only meant for the upload control but not for the download. How do I sort this issue out?

Veselin Tsvetanov
Telerik team
 answered on 14 Dec 2016
1 answer
89 views

I have a need for a scheduler that is not time specific and not necessarily all-day (though maybe treating them as all day is a way to do it).

So, I need the Month View and the ability to add any number of entries in any given day. 

I need the added items to display alphabetically.

And I need NO TIMES to show up in the output nor in the Data Entry form.

How do I do this?

Anton
Telerik team
 answered on 14 Dec 2016
3 answers
170 views

Hi,

There is a label called "Command item" in radgrid, I need to remove that label.  Please advise. 

Ram
Top achievements
Rank 1
 answered on 14 Dec 2016
6 answers
3.9K+ views

General info:
- Sharepoint 2010 + webparts with Telerik controls on it
- Telerik ASP.NET AJAX version 2013.2.717.35
- Both Telerik.Web.UI and Telerik.Web.UI.Skins are in GAC ("C:\Windows\assembly")

After deploying webpart to Sharepoint farm webpart works as expected.But when left web page for a some period of time (more than 1 hour) and after that refresh the page telerik error occurs:

==============================================================================================================
Telerik.Web.UI.RadAjaxLoadingPanel with ID='loadingPanel' was unable to find an embedded skin with the name 'WebBlue'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
Exception Details: System.InvalidOperationException: Telerik.Web.UI.RadAjaxLoadingPanel with ID='loadingPanel' was unable to find an embedded skin with the name 'WebBlue'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
==============================================================================================================

Telerik registration in  *.vbproj file:
<Reference Include="Telerik.Web.UI, Version=2013.2.717.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL" />
<Reference Include="Telerik.Web.UI.Skins, Version=2013.2.717.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL" />

Telerik registration in *.ascx 
<%@ Register assembly="Telerik.Web.UI, Version=2013.2.717.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %>

I read a lot of articles which advice to put assemblies into the GAC, but assemblies are already in the GAC. 

Can you please explain why web part stops working after some period of time and how can I fix this problem?
I assume that this behavior is caused by the ending of user session timeout, but don't know how this influences on skin loading.

Thx,
Alex.

Rumen
Telerik team
 answered on 13 Dec 2016
1 answer
118 views

We currently have Telerik version 2011.2.712.40 and to upgrade to version 2016.3.1027.

Our application runs on VS2010 microsoft framework 4.0.

Can we upgrade Telerik without upgrading Visual Studio nor the framework?

Thank you

Rumen
Telerik team
 answered on 13 Dec 2016
1 answer
168 views

We currently have Telerik version 2011.2.712.40 and to upgrade to version 2016.3.1027.
Our application runs on VS2010 microsoft framework 4.0.

Can we upgrade Telerik without upgrading Visual Studio nor the framework?

Thank you

Rumen
Telerik team
 answered on 13 Dec 2016
2 answers
731 views

I have an export to excel where I enter &#10; the excel crlf character. All of that works fine but when I open the excel file the column is not formatted to handle crlf and I have to set it to Wrap Text manually. Is there any way to format this column with wrap text?

 

Thanks,

James

James
Top achievements
Rank 1
 answered on 13 Dec 2016
1 answer
102 views

I've been using RadAJAX for WebForms for a couple of years. I do 99% of my coding with dynamic controls, created in the code behind. My current project has many tab controls with multipages, etc, and many controls within each muliview. I am using RadAjaxManager and carefully keeping track of which controls trigger which.

Do I seriously have to recreate each and every control for every postback?? There are 100s, and many of them are not created until the user takes certain actions.

What are the strategies I can use?

 

 

Pavlina
Telerik team
 answered on 13 Dec 2016
2 answers
268 views

Hi I have a bit of a problem, I have created a RadGrid with a masterView that displays initial info about a product, the grid has a Detail View which is another grid of SubItems that belong to each product.

I wan to be able to Edit the details of the Main Product as well as I also want to be able to edit Details of a SubItem (Not at the same time) , so I added an Edit Form to the MasterView and one to the DetailView, logically if I click the edit button on the masterview level product, the Grid should go to edit mode and bring up the MasterView.EditForm and the same with SubItem.Ediform when edit button clicked.

When I click the edit button the Grid goes blank, ALL items disappear and I just end up with a line on the screen.

I think I have the Grid setup correctly, where am I going wrong? Can you not have an EditFormTemplate when you use a DetailView?

Here is my example. I am not using DataSourceID="SqlDataSource" in the aspx page, I do all my data binding in cs.code. I am not using Bound Data Fields, I use <ItemTemplate> with custom Labels.

I would appreciate some help or a point in the right direction.

Thanks in advance :)

 

01.<telerik:RadGrid ID="OPVRCommitGrid" runat="server" AutoGenerateColumns="false" MasterTableView-HierarchyLoadMode="Client" AllowSorting="True" ShowFooter="false" AllowPaging="false" PageSize="25">
02.        <MasterTableView CommandItemDisplay="None" EditMode="EditForms" DataKeyNames="ProductID" ShowGroupFooter="false" Name="OVPRList">
03.            <Columns>
04.                <telerik:GridTemplateColumn HeaderText="ID" SortExpression="ProductID" HeaderButtonType="TextButton" UniqueName="PCol">
05.                    <ItemTemplate>
06.                        <asp:Label ID="ProductID" runat="server" Text='<%# Eval("ProductID") %>' />
07.                    </ItemTemplate>
08.                </telerik:GridTemplateColumn>
09.                <telerik:GridTemplateColumn HeaderText="Product" SortExpression="ProductName" HeaderButtonType="TextButton" UniqueName="PCol">
10.                    <ItemTemplate>
11.                        <asp:Label ID="Product" runat="server" Text='<%# Eval("ProductName") %>' />
12.                    </ItemTemplate>
13.                </telerik:GridTemplateColumn>
14.                <telerik:GridTemplateColumn UniqueName="editControls">
15.                    <ItemTemplate>
16.                        <asp:ImageButton ID="editBtn" runat="server" ImageUrl="~/_system/_img/icons/edit2.png" CausesValidation="False" CommandName="Edit" CommandArgument="Edit" ToolTip="Edit" />
17.                    </ItemTemplate>
18.                </telerik:GridTemplateColumn>
19.            </Columns>
20.             
21.            <EditFormSettings EditFormType="Template">
22.                <FormTemplate>
23.                    MasterTableView EidtForm
24.                </FormTemplate>
25.            </EditFormSettings>
26.             
27.            <DetailTables>
28.                <telerik:GridTableView DataKeyNames="ProjectID" runat="server" EditMode="EditForms" CommandItemDisplay="None" Name="Commitment">
29.                    <Columns>
30.                        <telerik:GridTemplateColumn HeaderText="SubItem" SortExpression="SubItem" HeaderButtonType="TextButton">
31.                            <ItemTemplate>
32.                                SubItem Feature
33.                            </ItemTemplate>
34.                        </telerik:GridTemplateColumn>
35.                        <telerik:GridTemplateColumn UniqueName="editControls">
36.                            <ItemTemplate>
37.                                <asp:ImageButton ID="editBtn" runat="server" ImageUrl="~/_system/_img/icons/edit2.png" CausesValidation="False" CommandName="Edit" CommandArgument="Edit" ToolTip="Edit" />
38.                            </ItemTemplate>
39.                        </telerik:GridTemplateColumn>
40.                    </Columns>
41.                     
42.                    <EditFormSettings EditFormType="Template">
43.                        <FormTemplate>
44.                            DetailView EidtForm
45.                        </FormTemplate>
46.                    </EditFormSettings>
47.                </telerik:GridTableView>
48.            </DetailTables>
49.    </MasterTableView>
50.</telerik:RadGrid>
VNet
Top achievements
Rank 1
 answered on 13 Dec 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?