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

Hi ,

I have an application(say - MyApp) which has an aspx page with RadAjaxManager and multiple rad controls in it.  I am trying to access this hosted  application in other html page on my desktop (say an html page with an iframe src = 'url of MyApp'). The problem i am facing here is when the page with the radcontols is loaded, the iframe of the html page disappears and even the url in the window refreshes/changes from "C:\\users\Abc\Desktop\Iframe.html" to the "Url of the MyApp" as if the application is run directly without the iframe. We are mostly using the 2014 version of RadControls

Umesh
Top achievements
Rank 1
 answered on 15 Oct 2018
14 answers
740 views
Hello

Could someone help to clarify the expected behaviour of the RadEditor content area after a postback? I have a RadEditor control with an Iframe content area, which is on a page with some other textbox controls that need to be validated server side. When the page is submitted for validation from a LinkButton, the validation occurs OK, but the content area loses its contents. Is this expected default behavior?

I've done some research into this already, and I think I'm right in saying that this isn't due to the known issue of the 2010 release whereby the Iframe shows a similar problem when used with AJAX panels: I'm using the 2009 version, and also, it occurs even if an AJAX partial postback is not used on the page. Instead it seems that there is some sort of ViewState handling issue that I have not set up correctly. So working along these lines, my questions are:

Is it possible/necessary to programmatically enable the viewstate for the IFrame content area? I have the ViewState property set on the radEditor control itself, but it seems this is not working automatically through the validation postback. Perhaps I am supposed to include some manual client side Javascript handling of the iframe contents or the editor viewstate in order to persist the contents of the content area? I haven't managed to find any other forum posts that address this issue, which makes me suspicious that I am missing something obvious. But if there are some posts about this issue, it would be great if someone could point me in the right direction. Presumably I don't need to set an id for the editors iframe, it looks as if this is generated automatically?

Thanks if you can help.



Rumen
Telerik team
 answered on 15 Oct 2018
1 answer
230 views

I have used the Telerik RadCaptcha control in a number of projects and can never get a skin to work with it. All other controls are using the skin defined in the Web.config file in the key:

<add key="Telerik.Skin" value="Bootstrap"/>

 

Does anyone have any idea why the RadCaptha is the only control that doesn't follow this in my projects?

 

Marin Bratanov
Telerik team
 answered on 15 Oct 2018
10 answers
695 views

Paste is greyed out and has stopped working in RADEditor since our users have upgraded to Firefox v52. Paste works fine in Firefox v37 and Chrome. I have created a demo page below to demonstrate the issue, can anyone help fix it?

http://fdsrv.fire-defence.com/editordemo.aspx

Rumen
Telerik team
 answered on 15 Oct 2018
0 answers
125 views

Hi

i use a kendoGrid to provide data in my .net webfrontend. The data is shown correct, but sorting and filtering is nor working. But why?

<script>
                $(document).ready(function () {
                    $("#grid").kendoGrid({
                        dataSource: {
                            type: "json",
                            transport: {
                                read: "fabico1.json"
                            },
                            schema: {
                                model: {
                                    fields: {
                                        Artikel: { type: "string" },                                       
                                        Bez: { type: "string" },
                                        Menge: { type: "number" },
                                        Einh: {type: "string"}
                                    }
                                }
                            },
                            pageSize: 30,
                            serverPaging: true,
                            serverFiltering: true,
                            serverSorting: true
                        },
                        height: 430,
                        filterable: true,
                        sortable: true,
                        pageable: true,
                        columns: [{
                            field: "Artikel",
                            width: 150,
                            filterable: true
                        },
                            {
                                field: "Bez",
                            },
                        {
                            field: "Menge"
                            },
                        {
                            field: "Einh",
                            width: 150
                        }
                        ]
                    });
                });
            </script>
ITA
Top achievements
Rank 1
 asked on 12 Oct 2018
7 answers
215 views
I support a vb.net 2010 web form application that uses the Telerik/Progress Radeditor (UI for asp.net ajax). The application
is not using the current radeditor but it is using the 1 version back of the radeditor.
The problem is once a letter has been generated, extra html is placed in the letter that is generated causing
unexepcted blank lines to appear.
The template (letter) before the letter is displayed is stored in a sql server 2016 database in a column is is called
'stringtemplate' and is setup as a varchar(max), null) column in the database. I edit the template values directly using sql
server management studio.
Here are 2 examples of problems that I am having:
1. In one template where the value is setup as
     '<br/><br/>' the values end up being '<p></p<p></p><p></p>' when the letter is actually generated.
2. in another template where the value is setup as:
<span style="font-size: 13px;font-family: arial,sans-serif; color: black;"><br />
<p>&amp;CUR_DATE.EVAL</p>
 
with the final </span> and the end of the template
the letter that is generated actually has the following html:
<span style="color: black; font-family: arial,sans-serif; font-size: 13px;"><br />
</span>
<p>10/10/2018</p>
<span style="color: black; font-family: arial,sans-serif; font-size: 13px;">
with the final </span> and the end of the letter.
Thus would you tell me and/or show me what I can do to solve the problem?
Marin Bratanov
Telerik team
 answered on 11 Oct 2018
4 answers
1.2K+ views

     Can someone provide a working example of how we can compare data in different rows but within the same column? Or see what I'm missing?

Below is a function that throws an error due to an index not existing... but the data populates. If I remove most of the code and add an alert box, it shows the itemindex #.

This grid is populated from code-behind and the columns are dynamic (meaning, specified by the data, not in the markup).

ADMIN EDIT: Solution created by OP: https://www.telerik.com/forums/compare-data-in-different-rows-but-same-column#4BzUDXkNFU2U_FM8atHFbw.

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
            RadGrid radGrid = (RadGrid)sender;
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
            {
                GridDataItem gridDataItem = (GridDataItem)e.Item;
                if (e.Item.ItemIndex > 0)
                {
                    decimal fte;
                    decimal fteTarget;
                    GridDataItem previousGridDataItem = radGrid.Items[1];
                    GridDataItem currentGridDataItem = radGrid.Items[2];
                    for (int c = 1; c < previousGridDataItem.Cells.Count; c++)
                    {
                        if (decimal.TryParse(previousGridDataItem.Cells[c].Text, out fte) && decimal.TryParse(currentGridDataItem.Cells[c].Text, out fteTarget))
                        {
                            if (fte <= fteTarget)
                            {
                                previousGridDataItem.Cells[c].ForeColor = Utility.Green;
                            }
                            else if (fte > fteTarget)
                            {
                                previousGridDataItem.Cells[c].ForeColor = Utility.Red;
                            }
                        }
                    }
                }
}

Marin Bratanov
Telerik team
 answered on 11 Oct 2018
0 answers
94 views
whenever i set the height of the grid, and left column is frozen, the height of the panes is not even. (see attached) 

config: 

          {
                columns: treeListColumns,
                height: screen.height - 500,
                dataSource: treeListDataSource,
                columnMenu: true,
                sortable: true,
                resizable: true,
                selectable: true,
                filterable: true
            }
squarewave
Top achievements
Rank 1
 asked on 11 Oct 2018
1 answer
164 views
How can I change the colour of the unfilled portion of the progress bar? Also, is it possible to have square corners of the bar?
Marin Bratanov
Telerik team
 answered on 11 Oct 2018
2 answers
166 views

Hi,

1. Can we add our own controls, like textbox, buttons etc.. to Ribbon Bar.

2. How can i execute a javascript fuction on a button click of ribbon bar.

 

Thanks.

Saifulla
Top achievements
Rank 1
 answered on 11 Oct 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?