Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
1.3K+ views

I'm exporting a grid to CSV. I've noticed when a value is null or blank, the resulting value is space. Using <ExportSettings Csv-EncloseDataWithQuotes="true" /> a blank value shows up as " " vs. "".

Is there a setting that can change this behavior? The files are being uploaded to another 3rd party tool, and a single space is not a valid option.

Greg S
Top achievements
Rank 1
 answered on 15 Aug 2016
2 answers
89 views

In a vb.net 2010 web form application, I am using the radeditor. I am using the editor from a version from 6 months ago. In this application, the template values are obtained from a templates editor setup for the administrator. The Template values look like &data.eval. These values are used in the application to replace that value with html in that application. I have added a few new values to this template due to the new html I want to replace the literals with. When I step through the code in a few situations, I do not see the new literals that look like &data.eval that I just created.

Thus would you tell me what you think is wrong and what I can do to solve the problem?

diane
Top achievements
Rank 1
 answered on 15 Aug 2016
1 answer
69 views

I have a GridButtonColumn with ButtonType="ImageButton". I'm accessing the button click client side with OnCommand of the RadGrid.

<ClientSettings >
   <ClientEvents OnCommand="OnCommand" />
</ClientSettings>

 

I know I can get the row through args.get_commandArgument(), but this is the row of the Master Table and works fine if my grouped table doesn't have a collapsed grouping, but fails horribly when there is a collapsed group.

 

<script type="text/javascript">
    function OnCommand(sender, args) {
        var rowIndex = args.get_commandArgument(); // getting row index
        var itemValue = masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[row], "itemName").innerHTML;
       }
</script>

 

For example, the rowIndex is determined to be 20 and and there are no collapsed rows so masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[row], "itemName").innerHTML return the correct row and value. But say a group above has 10 rows collapsed then the 20 referes to something 10 down the table. The rowIndex value in this instance needs to be 10. 

 

So . . . what am I doing wrong. How to account for the collapsed rows? Should I be doing this differently?

 

TIA - Shawn

Eyup
Telerik team
 answered on 15 Aug 2016
3 answers
77 views

I have a problem where the content in the editor breaks its formatting when its Enabled (in edit mode) i have a parent div with the class "center" that sets the text alignment and the editor shows the content correctly when Enabled is set to False (view mode), but as soon as its in edit mode it aligns the content to the Left.

Any help is appreciated,

Christian

 

.center{
    text-align:center !important;
}

 

<section class="blue darken-4 white-text padding bgMonster">
    <div class="wrapper center padding">
 
         
 
        <telerik:RadEditor ID="edSLPDesc" runat="server" Enabled="False" Width="100%" ContentAreaMode="Div" AutoResizeHeight="True" NewLineMode="Br" BorderStyle="None" data-page="Default" data-section="slpDesc" EditType="Inline" ToolbarMode="ShowOnFocus" EditModes="Design, Html">
            <Content>
                <h4><em>text goes here...</em></h4>
            </Content>
        </telerik:RadEditor>           
 
 
 
    </div>
</section>

Christian
Top achievements
Rank 1
 answered on 15 Aug 2016
1 answer
145 views

I have seen few threads discussing about cursor but none of them are including all these 3 issues. So opening a new thread.

we are using Telerik 2014.2.724.45. I know there are latest versions available. Since our application is already has gone live, we cannot upgrade the version now. So please suggest any hotfix available.

We are facing cursor issue in multiple scenarios.
     1) when some special characters are copy pasted, like '&nbsp;' , '\r' or 'char(10)', on editing or deleting cursor moves to some different position.
          we have provided the fix which is mentioned below but still users has reopened this issue. so can you please suggest anything else has to be taken care?
          we have added OnClientPasteHtml="RemoveHtmlContents"
          function RemoveHtmlContents(editor, args) {
                 var pasteText = args.get_value();
                 if (pasteText.indexOf("&nbsp;") > -1) {
                         pasteText = pasteText.replace(/&nbsp;/g, '');
                 }
                 if (pasteText.indexOf("&amp;") > -1) {
                        pasteText = pasteText.replace(/&amp;/g, '&');
                 }
                 pasteText = pasteText.replace(/\r\n|\n|\r/g, ' ');
                args.set_value(pasteText);
          }

2) When track changes are enabled and on pressing enter some time cursor moves back to previous line but on typing it will come to next line
I have found this issue for different version here -  http://feedback.telerik.com/project/108/Feedback/Details/134999-incorrect-behavior-when-pressing-enter-with-enabled-track-changes  will this fix this issue?

 

3) When started editing after enabling track changes. In between if I come back and edit at position a it goes back position b, (a & b are shown in the image attached.

Marin Bratanov
Telerik team
 answered on 15 Aug 2016
1 answer
137 views
we are using Telerik 2014.2.724.45. I know there are latest versions available. Since our application is already has gone live, we cannot upgrade the version now. So please suggest any hotfix available.

We are enabling track changes property
1) When making the content Bold using shortcut (CTRL + B) or from the option provided by radeditor, there appears box some times(please see the attachment).

2) Some times there are more than 1 reject track changes button appears on the screen. (please see the attachment).
Marin Bratanov
Telerik team
 answered on 15 Aug 2016
1 answer
91 views

Hi I have added a date column using 

         // Add a new column for the date
                GridTemplateColumn gridTemplateColumn1 = new GridTemplateColumn();
                gridTemplateColumn1.HeaderText = "Creation Date";
                gridTemplateColumn1.SortExpression = "Date";
                gridTemplateColumn1.UniqueName = "Date";
                gridTemplateColumn1.DataField = "Date";
                RadFileExplorer1.Grid.Columns.Add(gridTemplateColumn1);

 

But i cant see how to populate the column. 

 

Vessy
Telerik team
 answered on 15 Aug 2016
3 answers
86 views

Hi I am trying to rename the Upload item in the contextual menu. But i cant find anywhere how to do this.

 

Any help would be appreciated.

Vessy
Telerik team
 answered on 15 Aug 2016
7 answers
679 views
If a radwindow with a contenturl is rendered as an iframe, how is one with a content template rendered?

Also,
What is the actual effect of using the destroy onclose property? If it is not used, how is the form "stored"?
Marin Bratanov
Telerik team
 answered on 15 Aug 2016
3 answers
120 views

Hello,

I would like to ask you, how to use em or % unity instead of px when calling radalert from client side. I follow code script from documentation:

http://docs.telerik.com/devtools/aspnet-ajax/controls/window/alert,-confirm,-prompt-dialogs/radalert-dialog

Parameters width and height accept only values in px. But what If I want to change radalert window width based on different screen resolutions ?

My example is in the attachment. The radalert has width 420px. When user changes screen resolution to small, it means @media only screen and (min-width: 361px) and (max-width: 768px). Font has been changed but radalert window width remained the same (I want to decrease its width based on resolution).

Please help me to solve this issue.

Thank you.

Best regards

Vasssek

Marin Bratanov
Telerik team
 answered on 15 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?