Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
97 views

Hello.

I need to check on each row of the grid if its checkbox is checked or not.

<tel:GridTemplateColumn HeaderStyle-Width="15px" UniqueName="gridTemplateColumnCheckbox">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkItem" runat="server" AutoPostBack="false" CssClass="checkbox-item" />
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="chkSelectAll" runat="server" AutoPostBack="false" CssClass="checkbox-item-header" onclick="toggleCheckAll();" />
                                    </HeaderTemplate>
                                </tel:GridTemplateColumn>
George
Top achievements
Rank 1
 updated question on 17 Jul 2023
1 answer
102 views

Hello -

We are using Telerik forms for our internal website. When I download one page with all its components, it is 73 files and 11.2 MB total size. Screen captures attached.

  • 10 axd files (4.4 MB)
  • 8 css files (328 KB)
  • 47 js files (2.7 MB)
  • 7 image files (84 KB)
  • 1 html file (3.7 MB)

Most of our site is made up of similar pages. Our site has an average 500 connections per second. During peak times, the website crawls, with 20-30 seconds to return one page for each user.

We are accessing only text, with about 200 KB of text returned for each request.

It looks like 99.3% of the size of our pages is Telerik related files (mostly axd and js).

What could we be doing wrong? What should we be doing differently to reduce the size or count of Telerik files returned to the client?

Thank you!

Rumen
Telerik team
 updated answer on 28 Jun 2023
0 answers
126 views

Hello,

I am facing an issue wherein on the page following issue is coming:-

Request Failed. Try Again.

When I debugged the code then I found that the issue is actually coming due to this class file not found:- GanttProvider the actual error in the code is showing that:
The type or namespace name 'GanttProvider' could not be found (are you missing a using directive or an assembly reference?)


<%@ WebService Language="C#" Class="GanttService" %> using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Script.Services; using System.Web.Services; using System.Web.SessionState; //using Telerik.Web.UIusing Telerik.Web.UI.Gantt; [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. [System.Web.Script.Services.ScriptService] publicclassGanttService : System.Web.Services.WebService, IRequiresSessionState { private WebServiceController _controller; public WebServiceController Controller { get { if (_controller == null) { _controller = new WebServiceController(new GanttProvider()); } return _controller; } } [WebMethod(EnableSession = true)] public IEnumerable<CustomTaskData> GetTasks() { var ddd = Controller.GetTasks<CustomTaskData>(); var provider = new GanttProvider(); foreach (var item in ddd) { //item.Dependency = provider.GetSuccessorByTaskID((int)item.ID); item.Dependency = provider.GetPredecessorByTaskID((int)item.ID); } return ddd; } [WebMethod(EnableSession = true)] public IEnumerable<CustomTaskData> InsertTasks(IEnumerable<CustomTaskData> models) { var plannerRefId = HttpContext.Current.Session["GanttPlannerRefId"] != null ? Convert.ToInt32(HttpContext.Current.Session["GanttPlannerRefId"]) : 0; var plannerId = HttpContext.Current.Session["GanttPlannerID"] != null ? Convert.ToInt32(HttpContext.Current.Session["GanttPlannerID"]) : 0; var plannerType = HttpContext.Current.Session["GanttPlannerType"] != null ? HttpContext.Current.Session["GanttPlannerType"].ToString() : "project"; if (plannerType.Equals("vendor", StringComparison.InvariantCultureIgnoreCase)) { foreach (var item in models) { item.RootVendorID = plannerRefId; item.PlannerID = plannerId; } }else { foreach (var item in models) { item.ProjectID = plannerRefId; item.PlannerID = plannerId; } } return Controller.InsertTasks<CustomTaskData>(models); } [WebMethod(EnableSession = true)] public IEnumerable<CustomTaskData> UpdateTasks(IEnumerable<CustomTaskData> models) { var plannerRefId = HttpContext.Current.Session["GanttPlannerRefId"] != null ? Convert.ToInt32(HttpContext.Current.Session["GanttPlannerRefId"]) : 0; var plannerId = HttpContext.Current.Session["GanttPlannerID"] != null ? Convert.ToInt32(HttpContext.Current.Session["GanttPlannerID"]) : 0; var plannerType = HttpContext.Current.Session["GanttPlannerType"] != null ? HttpContext.Current.Session["GanttPlannerType"].ToString() : "project"; if (plannerType.Equals("vendor", StringComparison.InvariantCultureIgnoreCase)) { foreach (var item in models) { item.RootVendorID = plannerRefId; item.PlannerID = plannerId; } }else { foreach (var item in models) { item.ProjectID = plannerRefId; item.PlannerID = plannerId; } } return Controller.UpdateTasks<CustomTaskData>(models); } [WebMethod(EnableSession = true)] public IEnumerable<CustomTaskData> DeleteTasks(IEnumerable<CustomTaskData> models) { return Controller.DeleteTasks<CustomTaskData>(models); } [WebMethod(EnableSession = true)] public IEnumerable<DependencyData> GetDependencies() { return Controller.GetDependencies(); } [WebMethod(EnableSession = true)] public IEnumerable<DependencyData> InsertDependencies(IEnumerable<DependencyData> models) { return Controller.InsertDependencies(models); } [WebMethod(EnableSession = true)] public IEnumerable<DependencyData> DeleteDependencies(IEnumerable<DependencyData> models) { return Controller.DeleteDependencies(models); } [WebMethod(EnableSession = true)] public IEnumerable<Telerik.Web.UI.Gantt.ResourceData> GetResources() { return Controller.GetResources(); } [WebMethod(EnableSession = true)] public IEnumerable<AssignmentData> GetAssignments() { return Controller.GetAssignments(); } [WebMethod(EnableSession = true)] public IEnumerable<AssignmentData> InsertAssignments(IEnumerable<AssignmentData> models) { return Controller.InsertAssignments(models); } [WebMethod(EnableSession = true)] public IEnumerable<AssignmentData> UpdateAssignments(IEnumerable<AssignmentData> models) { return Controller.UpdateAssignments(models); } [WebMethod(EnableSession = true)] public IEnumerable<AssignmentData> DeleteAssignments(IEnumerable<AssignmentData> models) { return Controller.DeleteAssignments(models); } } [System.Runtime.Serialization.DataContract] publicclassCustomTaskData : TaskData { [System.Runtime.Serialization.DataMember] publicstring Description { get; set; } [System.Runtime.Serialization.DataMember] publicint? ProjectID { get; set; } [System.Runtime.Serialization.DataMember] publicint? PlannerID { get; set; } [System.Runtime.Serialization.DataMember] publicstring CusTaskType { get; set; } [System.Runtime.Serialization.DataMember] publicdouble? CusDuration { get; set; } [System.Runtime.Serialization.DataMember] publicdouble? CusActualHour { get; set; } [System.Runtime.Serialization.DataMember] publicint? VendorID { get; set; } [System.Runtime.Serialization.DataMember] publicstring Vendor { get; set; } [System.Runtime.Serialization.DataMember] publicint? RootVendorID { get; set; } [System.Runtime.Serialization.DataMember] publicstring RootVendorName { get; set; } [System.Runtime.Serialization.DataMember] publicstring ProjectName { get; set; } [System.Runtime.Serialization.DataMember] publicstring Dependency { get; set; } [System.Runtime.Serialization.DataMember] publicint? PlannerTaskID { get; set; } [System.Runtime.Serialization.DataMember] publicint? ItemRefID { get; set; } public override void CopyFrom(ITask srcTask) { base.CopyFrom(srcTask); Description = ((CustomTaskData)srcTask).Description; ProjectID = ((CustomTaskData)srcTask).ProjectID; PlannerID = ((CustomTaskData)srcTask).PlannerID; CusTaskType = ((CustomTaskData)srcTask).CusTaskType; CusDuration = ((CustomTaskData)srcTask).CusDuration; CusActualHour = ((CustomTaskData)srcTask).CusActualHour; VendorID = ((CustomTaskData)srcTask).VendorID; Vendor = ((CustomTaskData)srcTask).Vendor; RootVendorID = ((CustomTaskData)srcTask).RootVendorID; RootVendorName = ((CustomTaskData)srcTask).RootVendorName; ProjectName = ((CustomTaskData)srcTask).ProjectName; PlannerTaskID = ((CustomTaskData)srcTask).PlannerTaskID; ItemRefID = ((CustomTaskData)srcTask).ItemRefID; Dependency = ((CustomTaskData)srcTask).Dependency; } public override void CopyTo(ITask destTask) { base.CopyTo(destTask); ((CustomTaskData)destTask).Description = Description; ((CustomTaskData)destTask).ProjectID = ProjectID; ((CustomTaskData)destTask).PlannerID = PlannerID; ((CustomTaskData)destTask).CusTaskType = CusTaskType; ((CustomTaskData)destTask).CusDuration = CusDuration; ((CustomTaskData)destTask).CusActualHour = CusActualHour; ((CustomTaskData)destTask).VendorID = VendorID; ((CustomTaskData)destTask).Vendor = Vendor; ((CustomTaskData)destTask).RootVendorID = RootVendorID; ((CustomTaskData)destTask).RootVendorName = RootVendorName; ((CustomTaskData)destTask).ProjectName = ProjectName; ((CustomTaskData)destTask).PlannerTaskID = PlannerTaskID; ((CustomTaskData)destTask).ItemRefID = ItemRefID; ((CustomTaskData)destTask).Dependency = Dependency; } }

I am facing issue where I am trying to pass the object of GanntProvider class in WebServiceController constructor. It's an .ASMX file.

Kindly help me resolve this.

Thanks
Varun


Varun
Top achievements
Rank 1
 asked on 14 Mar 2023
1 answer
75 views

While trying to upgrade noted versions of Telerik dlls from 2014 to 2016, I am getting the following compile error

Error 31 The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?

 

I followed the steps to upgrade outlined in the "Upgrade your Telerik ASP.NET Controls in 6 Easy Steps" article https://www.telerik.com/blogs/upgrade-the-version-of-your-telerik-asp.net-controls-in-6-easy-steps?_ga=2.80374999.1963511989.1669135347-1568160397.1669135347&_gl=1*1b5a3vu*_ga*MTU2ODE2MDM5Ny4xNjY5MTM1MzQ3*_ga_9JSNBCSF54*MTY2OTEzNzUyMC4yLjEuMTY2OTEzNzcyNi4wLjAuMA..

Still getting the errors.

Resetting the references back to the 2014 version fixes the errors.

Please help me to resolve

Valentin Dragnev
Telerik team
 answered on 23 Nov 2022
0 answers
73 views

I'm working on a web form where users can import data from an excel sheet. That data gets parsed on postback after submission of the file and then placed in a RadGrid for review and revision and is not stored in the database.

I need to retrieve all of the data initially imported plus all of the changes made to that data which may include additional rows added. 

I'm using a RadGrid in batch edit mode and trying to figure out the best way of submitting the form so that I can retrieve not just the changed rows but every row that was in the grid initially.

What would be the best way to do this? 

Mathew
Top achievements
Rank 1
 asked on 16 Sep 2022
0 answers
2.7K+ views

Hi,

I'm getting the following exception multiple time throughout the application in error log and the exception generates randomly while accessing any page in the application. It's  pretty much difficult to identify the exact reason for exception occurrence as the application is vast to debug in depth. Also, I'm using Telerik Control as well as Telerik Reporting in multiple place in the application.

EXCEPTION URL :

https://abp.roc-p.com:443/WebResource.axd?d=pynGkmcFUV13He1Qd6_TZFJTiB1HaFtaGUfEvk469M0Ahcb1VPA81p1stPBulIctJXoc9_fThOXkBpob-_Dmsw2%29%20WAITFOR%20DELAY%20%270%3A0%3A5%27%20AND%20%284423%3D4423&t=637453852754849868

EXCEPTION MESSAGE :

System.Web.HttpException (0x80004005): This is an invalid webresource request. at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

Can anyone please provide all the possible reason behind this exception along with its step to resolve. Any help will be highly appreciated!

NOTE :

I have already visited multiple page in the forum those have similar issue but the solutions provided were specific to their script attached. Here, I'm not sure about the script which causes this exception randomly. I need to try all possible solution to get this issue resolve.

 

1 answer
77 views

Is it possible to hide specific rows but still have access to them client side?  I need to pull and update cell data from the hidden rows.  My updates are handled in batch edit value changed function.  Any ideas or advise would be great.  

I have tried to hide/show with batch edit opening and closing but this makes the rows visible to the user while they are editing fields.

If I hide the rows server side in pre render event I can't seem to access client side, unless I am doing something incorrectly.

Thanks!

Attila Antal
Telerik team
 updated answer on 14 Feb 2022
1 answer
50 views

Hello,

 

Just started to play with this radTabStrip control.

I have 6 tabs along the top.

I have a radMultipage control right after the tabctrl.

I have a grid on the first tab and a radcalendar & grid on the 2nd tab.

When I run I see the tabs but the controls on tab 1 & 2 do not show up.

i am probably doing some thing dumb but cant see it.

 

<td id="appTabCrtlr1c" colspan="12">
                    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" ReorderTabsOnSelect="True" SelectedIndex="0">
                        <Tabs>
                            <telerik:RadTab runat="server" Selected="True" Text="Root RadTab1">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Root RadTab2">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Root RadTab3">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Root RadTab4">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Root RadTab5">
                            </telerik:RadTab>
                            <telerik:RadTab runat="server" Text="Root RadTab6">
                            </telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server">
                        <telerik:RadPageView runat="server">
                            <telerik:RadGrid ID="rGrid1" runat="server" ToolTip="I am Grid 1">
                            </telerik:RadGrid>
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="RadPageView2" runat="server">
                            <telerik:RadCalendar ID="RadCalendar1" Runat="server">
                            </telerik:RadCalendar>
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="RadPageView3" runat="server">
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="RadPageView4" runat="server">
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="RadPageView5" runat="server">
                        </telerik:RadPageView>
                        <telerik:RadPageView ID="RadPageView6" runat="server">
                        </telerik:RadPageView>
                    </telerik:RadMultiPage>
                </td>

 

thanks

jackyjoy

Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?