Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
1.1K+ views

My asyncupload control is dynamically added during code runtime inside Page_Init. After my asyncupload validate success, the input is still showing red. opening the console i saw the error as shown in the attached file. Not sure if it is relevant, this code is created as a visual web part(farm solution) for Sharepoint 2016

 

i added the following to web.config

01.<httpHandlers>
02.     <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
03.      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
04.      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
05.</httpHandlers>
06. 
07. 
08.<handlers>
09....
10. <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
11.      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
12.      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
13.</handlers>
14. 
15.<location path="Telerik.Web.UI.WebResource.axd">
16.    <system.web>
17.      <authorization>
18.    <allow users="?"/>
19.      </authorization>
20.    </system.web>
21.  </location>
22.<location path="ScriptResource.axd">
23.    <system.web>
24.      <authorization>
25.    <allow users="?"/>
26.      </authorization>
27.    </system.web>
28.  </location>
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
 answered on 22 Jan 2021
4 answers
168 views

I have a RadGrid with Batch Editting some like https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx .

I need Move Up and Move Down buttons in each row to change order numbers and reorder the rows.

Clicking on Move Up will change the sort order i.e if a row is in position 7, it will be brought to 6 and its cell value in column "order" will become 6.

Clicking on Move Down will change the sort order i.e if a row is in position 7, it will be brought to 8  and its cell value in column "order" will become 8.

How to implement it?

 

 

Doncho
Telerik team
 answered on 21 Jan 2021
0 answers
462 views
Hi, 
   I have a aspx page, in that i added rad progressbar and one button when click that button, progress not show increase value, once fully page refresh , it show 100 % finished. How to show progress bar based in increase values which is passed from server side button click, here i paste code behind and server side code.

Code behind
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
    <div>
        <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton"></telerik:RadButton>
        <telerik:RadProgressBar ID="RadProgressBar1" runat="server"></telerik:RadProgressBar>
    </div>
    </form>
</body>
</html>

And Server side code is

  Private Sub RadButton1_Click(sender As Object, e As EventArgs) Handles RadButton1.Click

        RadProgressBar1.BarType = Telerik.Web.UI.ProgressBarType.Percent
        RadProgressBar1.Orientation = Telerik.Web.UI.ProgressBarOrientation.Horizontal
        RadProgressBar1.MaxValue = 100

        RadProgressBar1.ShowLabel = True
        RadProgressBar1.Skin = "Silk"
        For i As Integer = 0 To 100 - 1
            RadProgressBar1.Value = i

            System.Threading.Thread.Sleep(100)
        Next
    End Sub

If i add ajax loading panel, then i will get default circle progressbar instead of bar progress bar.

Thanks
M Kumar
Top achievements
Rank 1
Iron
Veteran
 asked on 21 Jan 2021
2 answers
66 views

     Hi, 

I have a site running version 2015.1.225.1 that has worked up until 1st January 2021. Now I am getting several javascript errors related to  

Telerik.Web.UI.WebResource.axd

with the following errors:

net::ERR_ABORTED 500

Any suggestion on what it might be? 

I have not done any changes to this code for many months (perhaps a year) as we are moving our customers over to a newer version (which means I have little to no knowledge how to find and fix this problem). We still have a few customers left on this site and they are now unable to do their work because of it. All I need it a quick-fix/workaround that might work for the next 2 months.  

mirco
Top achievements
Rank 1
 answered on 21 Jan 2021
3 answers
389 views

Hi,

I have 2 gridviews in a page, one hierarchical and one normal gridview.

I am using javascript to update data from one gridview row to the other.

To be able to do that, I need to find the html id of the control in each gridview:

Normal gridview: ctl00_MainContent_ctl_Score_rep_ctl01_ckIsFlag is equivalent to 

ctl00_MainContent_ctl_Rubric_GV_ctl00_ctl04_ckIsFlag in the hierarchical gridview.

In the normal gridview the 'ctl01' increment by one for each row. So if I have 3 rows, the ID will be:

'ctl00_MainContent_ctl_Score_rep_ctl01_ckIsFlag

'ctl00_MainContent_ctl_Score_rep_ctl02_ckIsFlag

'ctl00_MainContent_ctl_Score_rep_ctl03_ckIsFlag

I use the index of each row to find which control to update:

"ctl00_MainContent_ctl_Score_rep_ctl" + rowindex +"_ckIsFlag"

However in the hierarchical grid, the first row has ctl04, the second row ctl07 and the third ctl10. I don't really understand how the incrementation works. as the number of records in the detail view is 4 rows, and identical for all.

My question is how do I find out the html id control in the hierarchical gridview (ctl04, ctl07 and ctl10). Please check the attachment for more clarity.

Thank you for your help

Attila Antal
Telerik team
 answered on 20 Jan 2021
9 answers
640 views

I am trying to Export into PDF from RadGrid. My grid is too wide on a screen and when output to PDF happened it is squished. I was trying to apply style before I do Export but it does not make any difference.

        private void btnExportToPDF_Click(object sender, EventArgs e)

        {

            ApplyStylesToPDFExport(giftGrid.MasterTableView);

            giftGrid.MasterTableView.ExportToPdf();

        }

 

        private void ApplyStylesToPDFExport(GridTableView view)

        {

            // Get access to the header of the grid

            GridItem headerItem = view.GetItems(GridItemType.Header)[0];

 

            // Apply some css style to the header

            foreach (TableCell cell in headerItem.Cells)

            {

                cell.Style["font-family"] = "Verdana";

                cell.Style["text-align"] = "center";

                cell.Style["vertical-align"] = "middle";

                cell.Style["font-size"] = "2px";

            }

                       

            // Get access to the date of the grid

            GridItem[] dataItems = view.GetItems(GridItemType.Item);

 

            // Apply some css style to the data items

            foreach (GridItem item in dataItems)

            {

                foreach (TableCell cell in item.Cells)

                {

                    cell.Style["font-family"] = "Verdana";

                    cell.Style["text-align"] = "center";

                    cell.Style["vertical-align"] = "middle";

                    cell.Style["font-size"] = "2px";

                }

            }

        }

Please explain to me what do I do wrong.

Thanks,

Yuriy

Vessy
Telerik team
 answered on 20 Jan 2021
1 answer
283 views

Hello,

Is there a way of disabling cell, sheet or workbook editing with Javascript without having to set every cell to disabled.

Vessy
Telerik team
 answered on 20 Jan 2021
1 answer
129 views

hello,

Is there a way to tag a user from my db in radeditor/kendo

i need to display the list of users after clicking @ and filter based on typing.

i need it similar to facebook or devops editors.

thanks

 

Rumen
Telerik team
 answered on 20 Jan 2021
18 answers
2.7K+ views

We are using Telerik UI for ASP.NET AJAX in our .Net Application.

Can someone tell me what is the latest version of jQuery being used in the latest version(Jan 2019) of Telerik UI for ASP.NET AJAX?

Rumen
Telerik team
 answered on 20 Jan 2021
1 answer
199 views

Hi,

I looked everywhere to get a selected item from a file explorer in C#, but nothing worked.

I need only the name and the extension to update my database, is that possible?

Vessy
Telerik team
 answered on 19 Jan 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?