Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
91 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
467 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
717 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
346 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
159 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.9K+ 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
247 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
5 answers
3.1K+ views
my radgrid sample is;

<telerik:RadGrid ID="GridView1"    OnDataBound="GridView1_DataBound"  
                    runat="server" DataSourceID="SqlDataSourceKategori"
                    AutoGenerateColumns="False" Skin="Windows7">
                    <MasterTableView DataSourceID="SqlDataSourceKategori" DataKeyNames="ID">
                        <Columns>
                          
                            <telerik:GridTemplateColumn HeaderText="Kategori">
                                <EditItemTemplate>

but i couldnt get datakeyname value at codebehind
i tried beloow

Label16.Text = GridView1.MasterTableView.DataKeyValues[0].ToString();
but response

"System.Collections.Hashtable+ValueCollection"

please help me


Doncho
Telerik team
 answered on 19 Jan 2021
5 answers
247 views

New user to Telerik, here. Main question is, I have a radgrid that is about 20 columns wide w/ the ability to hide columns. In mobile render, if you attempt to hide columns using the context menu, the buttons are really wide. If you want to hide a column, you have to scroll way over uncheck it. Then you can't see what the other column names are without scrolling way back over and viewing the names.

Is there any way to set the width of the context menu so it automatically adjusts to the screen size? I did do a lot of searching on this and came up empty handed.

2) Also, in grouping, everything groups and works exactly like I would think it would, but if you ungroup anything, it throws an "Object reference not set to an instance of an object." error. It's kind of cryptic and searching for this error didn't lead me anywhere.

3) Mobile render seems a little buggy on my phone using FireFox or Chrome. Sometimes hitting the context menu icons, it will open up, group the column, and then close without me ever touching anything.

I finally got so fed up with grouping issues that I turned it off.

Outside of that, the hiding the column feature seems to work well and is at least something for a mobile user to cut down on the size of a big table.

Thanks,

Jay

 

 

 

Attila Antal
Telerik team
 answered on 19 Jan 2021
1 answer
273 views
Hi, I need to retrieve the text contents of AutoCompleteBox in Javascript (client side).
I tried this but it just alerts me nothing (blank result):
<script>
function CheckOE() {
            alert(document.getElementById('RadAutoCompleteBox1').value);
        }
</script>
<telerik:RadAutoCompleteBox RenderMode="Lightweight" runat="server" ID="RadAutoCompleteBox1" ClientID="RadAutoCompleteBox1" 
            autopostback="true"
            DataSourceID="blah" DataTextField="blah" DataValueField="blah" InputType="blah" Width="100%"
            AllowCustomEntry = "false"
            DropDownWidth="150px"
            onfocusout="CheckOE()"
            >
Any idea?
Thanks!
Yan Moura
Top achievements
Rank 1
Veteran
Iron
 answered on 18 Jan 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?