Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
191 views
When inserting an html document from the code behind, if we switch between design mode and html mode, radeditor modifies the html undesirably.  This even happens when content filter is set to none.  If we insert the html by hand (copy paste into html mode, this doesn't happen).  It seems to strip away the inner text of the head tag, and then when switched back to design mode, shows bullet points.  I've attached pictures to show the issue.  We are using cnn.com as a test, and we append the date to the beginning of the text (oddly this text doesn't show up in the html text section).  

http://imgur.com/a/nrtIE

1: First time it is displayed, everything is fine (those spaces are okay)
2: switch to html mode, we see there is nothing between header
3. Switch back to design mode, there are now bullet points?!? (these are not show in the html mode)
4. Copy and paste the html by hand
5. Displays fine (can switch back and forth no problem). 

Any ideas?  
Kristopher
Top achievements
Rank 1
 answered on 12 Jul 2013
6 answers
170 views
Hello,

I have a custom form template in my RadGrid that closes fine right after opening (clicking on edit), but will not close after selecting an item in a combobox within the form (which is set to autopostback="true"). There are multiple linked comboboxes being used in the form, a form decorator and ajaxmanager with the RadGrid registered to the manager updating itself. I assume this is an issue with the ajax controls being used, but it does not appear obvious that there is any reason why the editform is not being collapsed after an autopostback.  My project implements code very similar to the demo here -> http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx.

Thank you for any input
Andrew
Top achievements
Rank 1
 answered on 12 Jul 2013
0 answers
111 views

 I have a javascript for a nested grid which was working fine until I decided to use RadTabStrip.

The Jquery Code:

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"> </script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js">     </script>
 <script type="text/javascript">
   function collapseExpand(obj) {
    var gvObject = document.getElementById(obj);
    var imageID = document.getElementById('image' + obj);

    if (gvObject.style.display == "none") {
        gvObject.style.display = "inline";
        imageID.src = "~/ims/Images/bullet_toggle_minus.jpg";
    }
    else {
        gvObject.style.display = "none";
        imageID.src = "~/ims/Images/bullet_toggle_plus.jpg";
    }
}
</script>
</asp:content>

RadTab Script:

<telerik:RadTabStrip ID="RadTabStrip1" runat="server">
<Tabs> 
<telerik:RadTab  runat="server" Text="tab1">
<TabTemplate>
<telerik:RadGrid ID="GridView1" runat="server" AutoGenerateColumns="False" 
    BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" 
    CellPadding="3" GridLines="Horizontal" OnItemDataBound="RadGrid2_ItemDataBound" >
<MasterTableView DataKeyNames="id1">
<Columns>
<telerik:GridTemplateColumn>
<ItemTemplate>
<a href="javascript:collapseExpand('id1_<%# Eval("id1") %>');">
<img id="imageSubId_<%# Eval("id1") %>" alt="Click to show/hide orders" border="0" src="Images/bullet_toggle_plus.jpg" />
</a>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="id1" HeaderText="ID"/>
<telerik:GridTemplateColumn>
<ItemTemplate>
            <tr>
            <td colspan="100%">
            <div id="id1_<%# Eval("id1") %>" style="display: none; position: relative; left: 25px;">
            <telerik:RadGrid ID="GridView2" runat="server" AutoGenerateColumns="false" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" >
            <MasterTableView >
                    <Columns>
                    <telerik:GridBoundColumn DataField="fname" HeaderText="First Name" />
                    <telerik:GridBoundColumn DataField="mname" HeaderText="Middle Name" />
                    <telerik:GridBoundColumn DataField="lname" HeaderText="Last Name" />
                    <telerik:GridTemplateColumn>
                    <ItemTemplate>
                    <asp:CheckBox ID="checkselect" runat="server" />
                    </ItemTemplate>
                    <HeaderTemplate>
                    <asp:Button ID="Button4" runat="server" Text="Remove"  CommandName="Split"  />
                    </HeaderTemplate>
                    </telerik:GridTemplateColumn>
                    </Columns>
                    </MasterTableView >
             </telerik:RadGrid>
             </div>
             </td>
             </tr>
 </ItemTemplate>
 </telerik:GridTemplateColumn>
 </Columns>
 </MasterTableView>
 </telerik:RadGrid>
 </TabTemplate>
 </telerik:RadTab>
 </Tabs>
 </telerik:RadTabStrip>

This code is working fine without tabs.

Also, I think the problem is with the RadTabStrip rather than JavaScript. I tested it numerously without using RadTabStrip and its working fine. As soon as I attach radtabstrip its behaving like this.

Can someone help me with this?

Thanks.

John
Top achievements
Rank 1
 asked on 12 Jul 2013
2 answers
122 views
When I save off text from the RadEditor, it saves it into html formatting. Is there a way within RadEditor that I can define how to save specific elements? 

I would like to replace the <p>, <br>,<strong>, and <em> tags (possibly others as well) with something else. I realize this is possible through something like a string.replace, but I'm wondering if there is also a way within RadEditor itself.

For instance, this is the output that RadEditor currently provides:
<ol>
    <li>numbered list one</li>
    <li>numbered list two</li>
</ol>
<ul>
    <li>bullet list one</li>
    <li>bullet list two</li>
</ul>
<p><strong>bold word</strong><br />
<br />
<em>italics word</em></p>

and this is what I would like it to be:
<ol>
    <li>numbered list one</li>
    <li>numbered list two</li>
</ol>
<ul>
    <li>bullet list one</li>
    <li>bullet list two</li>
</ul>
& #013;
& #013;
<span style="font-weight:bold">bold word</span>
& #013;
& #013;
<span style="font-style:italic">italics word</span>
Bryan
Top achievements
Rank 1
 answered on 12 Jul 2013
6 answers
578 views
Hi,

I'm using RadChart to display the graphical notation.
How to avoid the decimal values in Y Axis label value.

Please find the Screenshot and Give me a solution.

Thanks in advance
Barry
Top achievements
Rank 1
 answered on 12 Jul 2013
2 answers
70 views
hi,
I am using telerik rad grid .
I am using editform mode and when I insert a new record my Editform is not being close as it is showing open.while i want to clear this in all case as Insert and Update.
Ashish
Top achievements
Rank 1
 answered on 12 Jul 2013
1 answer
131 views
I'm using radgrid with auto generated columns. there is a date column (Rev Date) in the data source. When binding to the grid, the grid column structure and column widths become a mess because of this date column.

when i convert the date column (Rev Date) into an varchar and bind the column as a string then the grid binding works fine with column widths.


How does the datepicker affect the column widths and mess up the grid structure? its fine if i could remove the calendar control to make the column widths looks good. I really need to use the date column in grid in order to get column sorting to work
Pavlina
Telerik team
 answered on 12 Jul 2013
2 answers
428 views
Hello,
I have a requirement in which, I need to show the calendar week for the date selected from Rad date picker. 
Is there any inbuilt property for rad date picker to show the calendar week? or how can I do this?
Kothai
Top achievements
Rank 1
 answered on 12 Jul 2013
1 answer
125 views
Hi,
look at:
http://demos.telerik.com/aspnet-ajax/editor/examples/editorinradwindow/defaultvb.aspx

can you tell me  what is the name of the skin that is used in Editor that opens in radwindow?
Thank you
Shinu
Top achievements
Rank 2
 answered on 12 Jul 2013
4 answers
250 views
Hello,

I am having several issues with ImageEditor.
Here is how I have configured it,
  • External Dialogs
  • CustomContentProvider
  • Uploading Images in directory instead of saving them in database.

Issues:
  • Can not save to target directory
  • Images are not refreshed in image manager after image is saved.

Scenario:
After editing some image when I click the save button, it gives the alert ("Can not save to target directory.") and after clicking the save button fourth time the message doesn't appear and image is saved, but now the Image is not refreshed in ImageManager. If I clear the browser cache then the edited image is displayed in image manager!!

Note:
My target folder is configured as a separate virtual directory. 
Reason for making it a separate virtual directory is that we have some other modules who manipulate files (upload/delete) which leads to user session time outs when they delete some file. We also want to keep user files away from our actual web due to the size of the project. But this virtual directory is under same domain as a sub domain.
e.g www.domain.com and files folder is www.domain.com/files/images


I am fighting with these issue now from last one month, explored several forum posts and tried what I have figured out... Can you please help me to fix these issues???



Thank you all.  
shadow
Top achievements
Rank 2
 answered on 12 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?