Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
178 views
Hi
Is there a way to set HtmlEncode="true" for the whole project? Like Config or application level?
We are using the Radgrid throughout the application and want to set HtmlEncode for all the respective gridboundcolumn.
Like for
Regards,
Vibhu
Attila Antal
Telerik team
 answered on 09 Mar 2018
4 answers
930 views

Folks,

Using Windows 10 with VS 2017 and ProgressĀ® TelerikĀ® UI for ASP.NET AJAX (Version 2018.1.117.45).
Each time I download a new updates, I get attached error message.

Is taking about 2-3 days to research to find out the root cause of this error. Pretty frustrating.
I manually added Telerik.Web.UI.dll and Telerik.Web.UI.Skins.dll in Bin Folder of my project. Also copied both files into C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\PublicAssemblies folder. Still no luck.

Telerik please give us a solution what can be done. 2-3 days time is not acceptable to senior management of our organization.

Also by mistake I made the same post in general discussions. Please delete the thread from there.

Thanks
gc_0620

Rumen
Telerik team
 answered on 08 Mar 2018
6 answers
107 views

When the editor is initialized everything works as expected. I can see the contextmenu for the table but after an postback the contextmenu stops working with the js-error: Access denied. File: LayoutBuilderEngine.js, row: 28, column: 39

Other contextmenus still works.

Using version: 2017.3.913

if (d.tagName == "TD" || d.tagName == "TH") {
                if (this._selectedCell != d) {
                    this._selectedCellClassName = d.className; // here....
                }
                this._selectedCell = d;
            } else
Alien Interactive AB
Top achievements
Rank 1
 answered on 08 Mar 2018
6 answers
119 views

Hello, 

I have recently upgraded my trial version to licensed version 2018.1.117.45. However i am still getting message "Thanks you for using Trial product......" can anyone assist me in this?

I have already followed below threads but no luck :(

https://www.telerik.com/forums/upgrading-version-creates-bizarre-error

https://www.telerik.com/blogs/upgrade-the-version-of-your-telerik-asp.net-controls-in-6-easy-steps

 

 

Brandon
Telerik team
 answered on 08 Mar 2018
1 answer
180 views

We have an app that is over 1000 pages and many of those screens have grids with the PDF Export option enabled.  We have found that when we don't specify a filename, it automatically uses the Tile Tag of the page.  So this:

<title>Issue Analysis</title>

Becomes Issue__Analysis.pdf

That has worked out fine for several years, but recently we have added a bunch of translations to the system and that title tag becomes this:

<title><%= Utilities.getTranslation("Issue Analysis", "IssueAnalysis", "globalRes") %></title>

Apparently when we export now, instead of a filename and extension, we get pdf as the filename with no extension and Windows doesn't recognize this as a pdf file.  If you do it a second time, you get a filename with pdf (2) as the name.

I know we could specify a filename in the markup, but with literally over a thousand pages, I would like to avoid that.  Another suggestion is that we could instead do the translation in the code behind rather than the aspx page - I haven't tried that, but that also entails updating over a thousand pages along with reverting the aspx change.  Does anyone else have a better way?

Eyup
Telerik team
 answered on 08 Mar 2018
5 answers
131 views
I added context menu to a page on my website, and added EnableHeaderContextMenu="true" to my parameters. But when I right click on the grid, the menu does not show any sorting options. I have this same MasterTableView on another page in the site, and it works fine. The two look the same.

<MasterTableView Width="100%" TableLayout="Auto" NoMasterRecordsText="No Items Found"
    AllowAutomaticInserts="false" AllowMultiColumnSorting="false" AutoGenerateColumns="false" EnableHeaderContextMenu="true"
    AllowPaging="true" PageSize="20" AllowSorting="true" DataKeyNames="OrderID"
    CommandItemSettings-RefreshText="Refresh List" CommandItemDisplay="Top" PagerStyle-Position="TopAndBottom"
    CommandItemSettings-ShowAddNewRecordButton="false">

The only functional difference on this page is that the grid is not initially loaded with data. It is a search page. However, even once a search is performed and data is in the grid, there are no sort options.

Any ideas?
Rayne
Top achievements
Rank 1
 answered on 08 Mar 2018
4 answers
1.9K+ views

when using the radasyncupload in a scenario that you have several steps to complete until the final save can be done AND the upload of the file is not in the final step, you may find yourself in the situation that either you check the file in code behind (and force the postback trigger) or you postpone to the end when really processing the file to check if it's OK. 

First option has a drawback that you get the file info in your code behind but at the next postback you have nothing left as the radasyncupload looses its information. Second option has the drawback that you come with comment on missing file or other file problem in a step that does not correspond with the step they uploaded the file.

How to come over this????

Solution: just add a radtextbox (readonly) to your form below the radasyncupload. On client upload you set the value of that textbox. You have a regular required field validator linked to the textbox. If the upload is successful and valid you set the textbox with the filename and the validator passes. If the file upload is not done or invalid the textbox keeps or gets an  empty string. The validator will not pass and the next button will keep you at the page until the file thing is solved. When the file upload is correct you can have a postback going to next step and rewind to the previous step and you still find your file in radasyncupload. Only at the last step where you assigned the button ID as the postbacktrigger of radasyncupload the data including the file will be available at code behind and can be processed.

 

Below is the javascript that I used. I create dynamic upload controls on a form depending if the user defined to have upload controls. The number of upload controls is less than 10 at max. Each control has its related textbox to check the upload status and test it with a related required field validator.

function OnClientValidationFailed(sender, args) {
        // get the index number of the file upload object (if you have several on the same page the last character is the index number
        var CurrentFileIndex = sender.get_id().slice(-1);
        // reset the corresponding TB to an empty string to detect that is has not been uploaded
        var textbox = $find('RegisterForm1_Step3_TB_REQUIRED_file' + CurrentFileIndex);
        textbox.set_value('');
    }

      

    function OnClientFileUploaded(sender, args) {
        var CurrentFileIndex = sender.get_id().slice(-1);
        var textbox = $find('RegisterForm1_Step3_TB_REQUIRED_file'+CurrentFileIndex);
        textbox.set_value(args.get_fileName()); 
    }

    function OnClientFileUploadRemoved(sender, args) {
        var CurrentFileIndex = sender.get_id().slice(-1);
        var textbox = $find('RegisterForm1_Step3_TB_REQUIRED_file' + CurrentFileIndex);
        textbox.set_value('');
    }
   


S
Top achievements
Rank 1
 answered on 08 Mar 2018
1 answer
218 views

So, here is the scenario...

I have a tab strip with 3 tabs.  Each has a RadGrid with summary sales information by year.  I am using a Sparkline to visually represent the data in one of the columns.

This would wonderfully in the first tab, which is visible when the page renders.  The sparkline is properly sized to fit in the cells of the radgrid.  However when I move to another tab - the sparkchart is trying to render in a 100px by 100px square that is cutting off and looks terrible.  As soon as I sort of filter or do anything to rebind the Radgrid on these other tabs, it looks ok.  

So, now I am trying to figure out how to repaint or properly resize these sparklines in the radgrids that are in the tabs that are not visible on page load.  Ideally, I could run a jQuery loop and redraw them?  We want to avoid forcing a server trip for a rebind on tab changes if at all possible.  Any help appreciated.

Attila Antal
Telerik team
 answered on 08 Mar 2018
0 answers
120 views

I'm trying to click on a row and edit it. I've got the EditMode="InPlace" in the radgrid. I'm new to Javascript and I'm probably missing something that triggers the edit of the column. I'm trying to complete this task on the client side.  

What am I missing please?

 

Javascript:

function RowClickEdit(grid, args) {

var dataItem = args.get_gridDataItem();

var type = dataItem.getDataKeyValue("listTypeID");

oWnd.show(); return false;}

 

HTML:

<ClientSettings >

<Selecting AllowRowSelect="True"></Selecting>

<ClientEvents OnRowClick="RowClickEdit"></ClientEvents>

</ClientSettings>

J
Top achievements
Rank 1
 asked on 08 Mar 2018
2 answers
141 views
Hi, 

Referring to this example 
http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/offsetingthegroups/defaultcs.aspx 

is there a way to automated the offset?

I have a menu that is dynamically loaded and would like the expanded group to be aligned to the top always.
Some of the menu has 1 line, 2 lines or 3 lines and I find it is a bit hard to do the offset calculation.
Thanks.




Bryan
Top achievements
Rank 1
 answered on 08 Mar 2018
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?