Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
163 views
Currently If you are saving the image as en EmbeddedPNG the text will not show in the image.  I was told back in march this was scheduled to be fixed in the next release ( I assume that means the Q2 release),  Is this feature/fix still planned for the Q2 release?
Pavlina
Telerik team
 answered on 26 Aug 2014
1 answer
119 views
I have disable the EnableEmbeddedScripts for all controls in page and included the javascript file in RadScriptManger so that i can increase the performance but i am getting a java script error as shown in attached file.

Kindly let me know the reason why this error is coming and how can i resolve it
Hristo Valyavicharski
Telerik team
 answered on 26 Aug 2014
2 answers
1.6K+ views
        RadListBoxDataType.DataTextField = "Value.DisplayName";
        RadListBoxDataType.DataValueField = "Key";
        RadListBoxDataType.DataSource = dataTypeList;
        RadListBoxDataType.DataBind();

The above does not work.  What I want to know is it possible to bind to a property of "Value" where "Value" is an object.

Chris
Top achievements
Rank 1
 answered on 26 Aug 2014
1 answer
212 views

I'm working with the Q2 2014 version of the Editor and I'm using the shortcut attribute in the tools XML file to define various keyboard shortcuts.

I've changed some of the shortcut keys and the Editor is still responding to the default shortcuts.  For example, originally the shortcut for the Link Manager was CTRL+K.  I want it to be CTRL+L but it still responds to CTRL+K.

Secondly, since I'm using Iframe as the ContentAreaMode because of CSS Styling, I've found that unless the focus is on the Iframe, the keyboard shortcuts don't work at all.  How can I get it to work properly on the surrounding areas too?  This is important for functions like Save and other custom menu options (Page Properties, etc) along with items like the Image Manager or Document Manager.

Editor Code:

<telerik:RadEditor ID="reContent" runat="server" ExternalDialogsPath="~/RadEditorDialogs/" ToolsFile="tools.xml" ContentAreaMode="Iframe"
                ContentFilters="MakeUrlsAbsolute, DefaultFilters" EditModes="Design, Html" EnableAriaSupport="True" Skin="Metro" ToolbarMode="RibbonBar" OnClientLoad="onClientLoad" EnableViewState="False">
                <Content></Content>
                <ImageManager ViewPaths="/images" UploadPaths="/images" DeletePaths="/images" MaxUploadFileSize="2100000" ContentProviderTypeName="niagarafalls.DBContentProvider, niagarafalls"
                    SearchPatterns="*.gif, *.png, *.jpg, *.svg, *.svgz" ViewMode="Grid"
                    AllowMultipleSelection="True" EnableAsyncUpload="True" EnableImageEditor="False" EnableThumbnailLinking="False" />
            </telerik:RadEditor>

Tools.xml snippet:
<tools name="Page" tab="Home">
    <tool name="Save" shortcut="CTRL+S"/>
    <tool name="Page Properties" shortcut="CTRL+R"/>
    <tool name="New Page" shortcut="CTRL+N"/>
    <tool name="Open Page" shortcut="CTRL+O"/>
  </tools>
<tools name="Links" tab="Insert">
        <tool name="LinkManager" size="large" shortcut="CTRL+L"/>
        <tool name="Unlink" strip="LinksStrip" shortcut="CTRL+SHIFT+L"/>
        <tool name="DocumentManager" strip="LinksStrip"/>
        <tool name="ImageMapDialog" strip="LinksStrip"/>
        <tool name="InsertCustomLink" shortcut="CTRL+ALT+K"/>
    </tools>


Thanks,
Shawn

Ianko
Telerik team
 answered on 26 Aug 2014
2 answers
185 views
I have upgraded my asp.net web project's telerik version from 2012.3.1308.35 to 2014.2.724.40. After the upgrade I noticed that radgrid filtering does not work as expected. The issue is with GridBoundColumn filtering and when I type something in filter textbox and press enter it does not do a postback as expected. As I have found out there is a script error in the page which says "Uncaught TypeError: Cannot read property 'getElementsByClassName' of null". 
I tried to isolate this problem in a new asp.net web project and issue is visible in there as well so I am pretty sure this does not happen because of something related to my project.

Thanks
Pavlina
Telerik team
 answered on 26 Aug 2014
2 answers
740 views
I have a grid that is populated by a SQL Datasource control. When the user edits a row, an edit form template is displayed. Inside this template is a combobox that I populate server-side with values in a dictionary. How do I set the selected value when the edit form template is displayed? Textboxes in the edit form template use the 'Bind' value for their text values, and other comboboxes in the template have a DataSourceID set, so when SelectedValue is set, it's not a problem.

So, I guess my question is multipart.

1. In what event should I be setting the combobox load?
2. For the combobox, how do I set the selected value to be that of the item in the grid?
Steve
Top achievements
Rank 1
 answered on 26 Aug 2014
9 answers
644 views
Hello Team,
Our requirement is to remove all the color gradiations (color combination of 2 or more colors) from our entire web application. 
As part of Grid. I have applied plain / flat color to the columns. But I am unable to do the same with Command Bar Item, I mean above the columns header. You can have clean look in attached image. 

Guys, please let me know. How to remove gradiation color from grid command bar. 
Just I want to keep background color as light gray (#E6E6E6). Let me know if you need any more information.


Thanks a lot in advance for any inputs.

Venelin
Telerik team
 answered on 26 Aug 2014
1 answer
756 views
I am very interested in using batch edit, but as most of the logic in our application is server-side, I need a way to server-side call a method on the RadGrid which is in Batch Edit mode upon post back of the page that asks it to save all edited items if any exist.

We have a save button which is OUTSIDE of the radgrid that saves not just the radgrid but also other data in the formview control - so when they click on that save button I want to invoke the save changes in the radgrid which is in batch edit mode.

Also in case they forget to click on the button but click on something else I want to auto-save without any user confirmation upon post back to the save (since I understand that all user changes are lost upon postback when you are in radgrid batch edit mode). How can I invoke "save batch mode if there are any changes" from a page_load method for example.

I see this http://www.telerik.com/support/code-library/prevent-losing-batch-editing-changes-on-paging-or-any-other-postback but I don't want a "are you sure" asked of the user - just an automatic invoking of saving any changed rows in the batch without asking the user any questions or requiring the user to click on any other buttons.

I cannot find this in the docs. It seems as if Telerik only allows invoking the save of radgrids in batch edit from client side javascript - not server side c#.
Marin
Telerik team
 answered on 26 Aug 2014
1 answer
532 views
Hi
I am facing an issue with this control. Any help is much appreciated.Below is my requirement
I have to allow maximum of 3 valid files to be uploaded so I set MaxFileInputsCount=3. Now I have some clientside validations and if the files are invalid I am removing them and I cannot see the files in UI but the upload control is not getting back to its original state. Lets say I upload a file and if it is valid I stream it to my DB. Now the count is 1 . I try again with another file and it is not a valid file then I show a message to the user and after the next upload the which is a valid file I am not seeing the upload control. EVen though I have just 2 files uploaded , the control is disappearing. Can anyone help me to resolve this issue. below is my script

function onClientFileUploading(sender, args) {
    debugger;
    var message = "";
    var errorWithFile = false;
    var regEx = /[~#%&*{}:<>?\/|\'\"]/;

    //Invalid Characters in File Name
    if (regEx.test(args.get_fileName())) {
        message = "File: " + args.get_fileName() + " contains invalid characters.  It has not been uploaded.  Please rename the file and upload again.";
        errorWithFile = true;
    }

    //Duplicate File Validation
    for (var fileindex in sender._uploadedFiles) {
        if (sender._uploadedFiles[fileindex].fileInfo.FileName == args.get_fileName()) {
            message = "You have already uploaded a file with the name " + args.get_fileName() + ". Please rename your new file and upload again.";
            errorWithFile = true;
            break;
        }
    }

    if (errorWithFile) {
        --filesSelected;
        args.set_cancel(true);
        sender._cancelUpload(args.get_row());
        sender._updateCancelButton(args.get_row());
        var index = $(args.get_row()).index();
        sender.deleteFileInputAt(index);
        sender.updateClientState();        
        alert(message);
    }
    MonitorFileUploadingQueue();
}

function onClientValidationFailed(sender, args) {
    var message = "";
    var errorWithFile = false;

    //File Extension Validation
    if (!sender.isExtensionValid(args.get_fileName())) {
        message = "File: " + args.get_fileName() + " selected has an invalid extension.";
        errorWithFile = true;
    }
    //MAX File Size
    else {
        message = "File: " + args.get_fileName() + " has exceeded the " + sender._maxFileSize / 1048576 + " MB file size limit.";
        errorWithFile = true;
    }

    if (errorWithFile) {
        debugger;
        --filesSelected;        
        var index = $(args.get_row()).index();
        sender.deleteFileInputAt(index);
        sender.updateClientState();
        
        alert(message);
    }

    MonitorFileUploadingQueue();
}

function MonitorFileUploadingQueue() {
    if (filesUploaded == filesSelected) {
        EnableDisableSubmitButton(true, "");
    }
    else {
        EnableDisableSubmitButton(false, "Uploading Files...");
    }
}

Thanks
Rakesh
Hristo Valyavicharski
Telerik team
 answered on 26 Aug 2014
1 answer
116 views
Hi Forum,

when I paste a text containing angle brackets, e. g. "test <test@domain.com>", into the auto complete box in token mode, both the text inside the brackets and the brackets themselves are not displayed:

"test <test@domain.com>" yields "test"

Anyhow, the brackets are still there, since I can access them via the "Text" property.

This behaviour can be reproduced with the Telerik demo on "http://demos.telerik.com/aspnet-ajax/autocompletebox/examples/default/defaultcs.aspx".

The texts inside the brackets should be displayed as well. How can I achive this?

Thanks for your help!

Roland
Nencho
Telerik team
 answered on 26 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?