Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
88 views
Hi,

We're recently began experiencing some odd behavior when cutting and pasting text in the RadEditor using Firefox (v25).  If you cut a line of text and paste in another area, then cut a different line of text and paste in another area, when you paste a break tag is added and you have to perform the paste command a second time.

For example, using Telerik's demo (https://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx)...
1.Cut the first word "RadEditor" at the beginning of the paragraph
2. paste the word "RadEditor" on the line after the paragraph
3. Cut some of the text anywhere in the paragraph (e.g., cut the word "spellchecker")
4. Past the cut text at the beginning of the paragraph where the word "RadEditor" used to be

You'll get a blank line inserted the first time, then if you past again the cut text will show up.  The above is just an example; it doesn't matter what text you cut/paste first, any text you cut/paste after that creates a blank line and requires you to paste again.  

Here's the HTML code from where I swapped the words "'Textbox" and "spellchecker" using cut/paste commands:
<h2 class="titleText">RadEditor for ASP.NET AJAX</h2>
<p style="text-align: justify;"><span style="font-size: 19px; color: #4f6128;"><strong>RadEditor</strong></span><span style="color: #4f6128;"> </span>is not simply an HTML<a href="#HTMLDescription"><sup>1</sup></a> Editor. It is what Microsoft chose to use in <strong>MSDN</strong>, <strong>CodePlex</strong>, <strong>TechNet</strong>, <strong>MCMS</strong> and even as an alternative to the default editor in <a href="http://www.telerik.com/products/aspnet-ajax/sharepoint.aspx">SharePoint</a>. Whether you need a mere<br />
spellchecker with Google-like Textbox , or a Word-like content authoring environment, the result is the same: clean <strong>XHTML</strong> output, fast rendering, widest cross-browser support, and <a href="http://www.telerik.com/products/aspnet-ajax/editor.aspx">tons of features</a>: <br />
<br />

You can see above where a break tag was inserted after the text "Whether you need a mere", it took performing the paste command a second time to get the word "spellchecker" to be pasted.

This happens with both the keyboard and browser menu commands.  

I tried the same thing in Chrome, but the cut/paste seems to work as expected.

Any thoughts or suggestions?
Thanks,
Amy
Amy
Top achievements
Rank 1
 answered on 14 Nov 2013
1 answer
72 views

Is it possible to put a RadButton inside a bound DataList?



I have a dataset with two columns returned (bound in the code-behind). First column is called HowFoundDesc (a description), and second is FoundThisWay (a Boolean). I can bind the HowFoundDesc to the Text attribute of the DataList, but I don't know how to bind the FoundThisWay Boolean flag to the RadButton so as to toggle the state of the button (it is a toggle radio button with images).

When I run it, I get the descriptions fine for each, but all the images are defaulting to the off value. Also, when I click on the buttons, they are all acting separate instead of a group, even though I have the groupname defined in the RadButton.



Any ideas?





<div Style="font-size: 14px; top: 4px; left: 5px; position: absolute;">
 <asp:DataList ID="HowFound" runat="server" RepeatDirection="Horizontal" RepeatColumns="5"  >
     <ItemTemplate>
         <telerik:RadButton ID="rbHowFound" runat="server" ForeColor="Blue" AutoPostBack="false" ButtonType="ToggleButton" GroupName="grpHowFound"
             ToggleType="Radio" Text=<%# Eval("HowFoundDesc")%>  >
             <ToggleStates>
                 <telerik:RadButtonToggleState PrimaryIconCssClass="rbRemove" />
                 <telerik:RadButtonToggleState PrimaryIconCssClass="rbOk" Selected="true" />
             </ToggleStates>
         </telerik:RadButton>
     </ItemTemplate>
 </asp:DataList>
 </div>








Danail Vasilev
Telerik team
 answered on 14 Nov 2013
3 answers
93 views
Currently the RadEditor is only adding the following when inserting an image: 

style="width: 166px; height: 98px;"

I need the Height and Width tags added to the img as follows:

height="166" style="height: 166px; width: 98px;" width="98" 

What can be done so that the RadEditor will automatically add the height and image tags as bolded in the above? 

Edit:

Please note that I am using the latest version of Telerik Asp.Net Ajax tools aka (ASP.NET AJAX Q3 2013)

Ianko
Telerik team
 answered on 14 Nov 2013
3 answers
253 views
I have radGrid1 and inside radGrid1  pageView and Tabs with 2 more radGrid2 and ragGrid3.
In edit mode radGrid2 and radGrid3 shown.
in radGrid2  and radGrid3 users can add new items however I ran into the issue where I can't get the keys from radGrid1 .
Could you help me?
Princy
Top achievements
Rank 2
 answered on 14 Nov 2013
2 answers
108 views
Hi,

I used RadGrid's simple data-binding through the DataBind() method, so there is only two steps to make the datagrid, which is on page load event

RadGridID.DataSource = FRManager.GetAllFRData();
RadGridID.DataBind();

Now i can drag and drop the row and i got the event of protected void RadGridID
_RowDrop(object sender, GridDragDropEventArgs e)
{
}

Whatever example is given on the telerik on below link, i used it to bind but not get success.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx?

please let me know what to write in this event to work out this, i took one field named OrderNumber in the table, this field is in hidden in my datagrid.

Thanks,
Viktor Tachev
Telerik team
 answered on 14 Nov 2013
2 answers
92 views
I make use of the RadPanelBar and each one has the appropriate Treeview with available columns.  I would like to take the columns on the left and drag them to the RadListBox on the right.  This would allow me to reference the database with only the columns listed in the RadListBox and not have to go through each RadTreeView and determine which columns are checked.  As I have implemented the Telerik example here, curious if there is a way to modify this script that would allow me to go from multiple RadTreeView's to 1 RadListBox?

The list on the Left is "static" as each of the Trees are populated with XML data.  How do I reset the values, if they would like to perform another search within the same session?  Or is it possible to just leave the values on the Left and I could simply just reset the Listbox?
Kate
Telerik team
 answered on 14 Nov 2013
5 answers
444 views
Hi,
I would like to open a aspx page at Radwindow and passing a value by querystring from a button click event.
Without querystring , I was successful , but stuck-up at passing the value.

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
 <script type="text/javascript">
    function ShowAddSubLevel(id) {
    window.radopen("AddCausePopup.aspx?Cause_Id=" + id, "UserListDialog");
    return false;
</script>
</telerik:RadCodeBlock>
--------------------------------------------
<asp:Panel ID="pnlShowCompany" runat="server">
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behaviors="Close, Move, Reload">
  <Windows>
     <telerik:RadWindow ID="UserListDialog" runat="server" Title="Manage actions" Height="610px"
       Width="575px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" VisibleStatusbar="false" Animation="Fade" />
       </Windows>
        </telerik:RadWindowManager>
          </asp:Panel>
protected void BtnAddSublevel_Click(object sender, EventArgs e)
    {
................
............
 Cause_Id = Convert.ToInt32(DtCause1.Rows[0][0].ToString());
...............
...............
ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "ShowAddSubLevel(21);", true);
}
---------------------------------------------
First of all, I am not sure how to pass Cause_Id at ShowAddSubLevel(Cause_Id)??
and even statically RadWindow is not showing.

Please help me out.

Thanks,
Debasish
Shinu
Top achievements
Rank 2
 answered on 14 Nov 2013
1 answer
342 views
Vasil
Telerik team
 answered on 14 Nov 2013
1 answer
297 views
I have a radtextbox that I have set to change the background color on change text:
<ClientEvents OnValueChanged="ChangeBackColor" />
function ChangeBackColor(sender) {
sender.get_styles().EnabledStyle[0] += "background-color: lemonchiffon;";
sender.updateCssClass(); }

I have a combobox that does the same thing:

OnClientSelectedIndexChanged="ChangeBackColorCombo"

function ChangeBackColorCombo(sender, args) {
var inputElement = sender.get_inputDomElement();
inputElement.style.backgroundColor = "lemonchiffon";
}

Is there an equvalent to this for a datetime picker? I cant find the function that reference the input or textbox of the control to change it on a selected date change.
Thanks
Shinu
Top achievements
Rank 2
 answered on 14 Nov 2013
4 answers
342 views
Hi i'am using RadHTMLChart with LineSeries.

When i don't pu anything for the minValue in the YAxis the minValue is set automatic.
But it not working all the time, is it me or it a bug?
I have 2 diffrent graphs the first one the lowest number is 77 and the and the minValue autoscale to 72
I have a second graphs with almost with the samething but the smalest number is 58 and the minValue is set to 0??

What i am doing wrong?
I want the minValue and maxValue to autoscale
Sorry for my bad English!
Tks
Luc



<telerik:RadHtmlChart runat="server" ChartTitle-Text="Courbe FR" DataSourceID="SqlDataSource1" ID="RadHtmlChart1" Width="800" Height="500">
                          <PlotArea>
                               <Series>
                                      
                                    <telerik:LineSeries Name="École" DataFieldY="rlEcole"
                                      <Appearance>
                                              <FillStyle BackgroundColor="Blue" />
                                         </Appearance
                                      <TooltipsAppearance Color="White" /> 
                                  </telerik:LineSeries
                                      
                                    <telerik:LineSeries Name="District"  DataFieldY="rlDistrict"
                                      <Appearance>
                                              <FillStyle BackgroundColor="Green" />
                                         </Appearance
                                      <TooltipsAppearance Color="White" /> 
                                  </telerik:LineSeries
  
                                                                       
                                    <telerik:LineSeries Name="Province"  DataFieldY="rlProvince"
                                      <Appearance>
                                              <FillStyle BackgroundColor="Red" />
                                         </Appearance
                                      <TooltipsAppearance Color="White" /> 
                                  </telerik:LineSeries
                               </Series>
                                 
  
                               <YAxis
                                    <TitleAppearance Text="%" >
                                        <TextStyle FontSize="16px"></TextStyle>
                                    </TitleAppearance>
                               </YAxis>
  
                                
                               <XAxis DataLabelsField="strAnnee">
                                    <LabelsAppearance />
                               </XAxis>
                                             
                          </PlotArea>
Stamo Gochev
Telerik team
 answered on 14 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?