Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
Hi,

Here I need to add some little text at cursor location into RadEditor's content on click of radbutton.

E.g.

If I have some text "My name is Kaushal Jani", also my cursor is between "Kaushal" and "Jani" and I clicked on RadButton than sample/some text "Hi" should place between that both words. Result will be "My name is Kaushal Hi Jani".

Is there any event or method by which I can locate some text to radeditor (specific to cursor location)?

Thanks & Regards,

Kaushal Jani
Rumen
Telerik team
 answered on 24 May 2011
1 answer
82 views
Hi ,

I am using RadDatePicker control inside the Gridview.
I have three operation on Gridview row:- Insert, Edit,Delete.
I am able to insert 10 records but when i insert 11th record i got the javascript runtime error. See Attachmenet Error.png
I am using two RadDatePicker. When i remove both the RadDatePicker control from Gridview my application ran successfully.
So RadDatePicker cause the error.
When i remove one of the two RadDatePicker control, I got same error on the insertion of 21st record instead of 11th record.
Please see the attachment for error.
Below is the designcode.

1st RadControl

<

 

asp:TemplateField meta:resourcekey="TemplateField3">

 

 

<EditItemTemplate>

 

 

 

<radCln:RadDatePicker ID="txtPriceValidFrom" runat="server" DbSelectedDate='<%# Bind("ValidFrom") %>' ControlContext="Product" RequiredPermission="EditProduct">

 

 

<Calendar ID="Calendar3" runat="server">

 

 

 

<SpecialDays>

 

 

 

<radCln:RadCalendarDay Repeatable="Today" Date="">

 

 

 

<ItemStyle CssClass="radCalendarTodayBackground" />

 

 

 

</radCln:RadCalendarDay>

 

 

 

</SpecialDays>

 

 

 

</Calendar>

 

 

 

<DateInput CssClass="TextBoxDays"></DateInput>

 

 

<PopupButton CssClass="radPopupImage" ImageUrl="~/images/icons/calendar.gif" HoverImageUrl="~/images/icons/calendar.gif"></PopupButton>

 

 

</radCln:RadDatePicker>

 

 

</EditItemTemplate>

 

 

<HeaderTemplate>

 

 

<asp:Label runat="server" Text="Valid from" ID="lblValidFromHeader" meta:resourceKey="Label31"></asp:Label>

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<asp:Label runat="server" Text='<%# Bind("ValidFrom") %>' ID="lblValidFrom" meta:resourceKey="lblValidFrom"></asp:Label>

 

 

</ItemTemplate>

 

 

</asp:TemplateField>

 


2nd Radcontrol

<

 

asp:TemplateField meta:resourcekey="TemplateField4">

 

 

<EditItemTemplate>

 

 

<radCln:RadDatePicker ID="txtPriceValidTo" runat="server" DbSelectedDate='<%# Bind("ValidTo") %>'

 

 

ControlContext="Product" RequiredPermission="EditProduct">

 

 

<Calendar ID="Calendar4" runat="server">

 

 

<SpecialDays>

 

 

<radCln:RadCalendarDay Repeatable="Today" Date="">

 

 

<ItemStyle CssClass="radCalendarTodayBackground" />

 

 

</radCln:RadCalendarDay>

 

 

</SpecialDays>

 

 

</Calendar>

 

 

<DateInput CssClass="TextBoxDays">

 

 

</DateInput>

 

 

<PopupButton CssClass="radPopupImage" ImageUrl="~/images/icons/calendar.gif" HoverImageUrl="~/images/icons/calendar.gif">

 

 

</PopupButton>

 

 

</radCln:RadDatePicker>

 

 

</EditItemTemplate>

 

 

<HeaderTemplate>

 

 

<asp:Label runat="server" Text="Valid until" ID="lblValidUntil" meta:resourceKey="Label32"></asp:Label>

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<asp:Label runat="server" Text='<%# Bind("ValidTo") %>' ID="lblValidTo" meta:resourceKey="lblValidTo"></asp:Label>

 

 

</ItemTemplate>

 

 

<ItemStyle VerticalAlign="Middle" />

 

 

</asp:TemplateField>

 

Tsvetoslav
Telerik team
 answered on 24 May 2011
1 answer
115 views
Hello ,
I'm using RadEditor as TextBox , and i want to disable drag and drop function to prevent add images .
any ideas ??
Thanks.
Rumen
Telerik team
 answered on 24 May 2011
2 answers
302 views
Hi, I'm using RadToolTip control, but I can't find a way to change the font size of the text

How can I do?

<telerik:RadToolTip ID="radToolTipLogin" runat="server" ContentScrolling="Auto" TargetControlID="btnMore"
HideEvent="ManualClose" Width="500px" Height="203px" RelativeTo="Element" Position="BottomCenter"
EnableShadow="true" ShowEvent="OnClick" RenderInPageRoot="true">
      <%# Eval("LOGIN") %>
</telerik:RadToolTip>

I try to put this block of code, but unsuccessfully...

    <style type="text/css">
        .ToolTipContent
        {
            font-size: 10px !important;
        }
    </style>
Marin Bratanov
Telerik team
 answered on 24 May 2011
4 answers
93 views
hi

i have a grid in which the autogenerate edit option is enabled and i want only to insert a new record and after inserting the new record i want to hide the edit option
abinav
Top achievements
Rank 1
 answered on 24 May 2011
2 answers
102 views
Hi,

I am using telerik rad chart. In which i need to give label on X axis to my chart.
But here i found limitation that i can have label of maximum 30 characters. If I am having label with more than 30 characters then it is truncating the label to 30 characters. So, is there any solution for this or is this by default limitation of telerik chart??
Or, is there any alternate way for this??....
Or, Can i have more than one 'DataLabelsColumn' for label of X axis???....

Please help, if there is any work around...

Regards......
Ketan
Top achievements
Rank 1
 answered on 24 May 2011
1 answer
46 views
Hello,

I used RadWindow and I have a "common" issue with Internet Explorer when using "Animation='Fade'"... The font cleartype rendering is disabled.
I said "common" because this is a well known issue of Internet Explorer : the opacity is managed by CSS attribute "filter:alpha(opacity=xxxx);" that automatically disable the cleartype rendering... Even when "filter:alpha(opacity=100)";

I have the same issue when using jquery.fadeIn and the workarount is to remove the CSS attribute filter at the end of the animation.
$(".MyElem").fadeIn("fast", function () {
    try { this.style.removeAttribute("filter"); } catch (ex) { }
});

How can I proceed to correct the problem in RadWindow ?
May be have your a standard workarount (not found despide search in forums) ?

Thanks in advance

Svetlina Anati
Telerik team
 answered on 24 May 2011
1 answer
75 views
I load items in combobox at runtime but when i change the selecteditem, no value is present either via selectedvalue or selecteditem.value
Shinu
Top achievements
Rank 2
 answered on 24 May 2011
3 answers
106 views
I am new to telerik controls and can't figure out how to do something.  I am wanting to use multiple header rows for a grid.  I have 2 groupings of columns that are the same, and  need a header centered over them to give more detail.  If anyone could help with this, i would appreciate it.

Below is an example of how I would like the headers to appear.

                                       Closing                                  Funding
col1               30 Days  60 Days  90 Days          30 Days  60 Days   90 Days

Thanks!!!
Pavlina
Telerik team
 answered on 24 May 2011
1 answer
57 views
In radEditor I have a custon button to set teg at begin en end of my selection like this :

Telerik.Web.UI.Editor.CommandList[

 

"Schedule"] = function (commandName, editor, args) {

 

 

 

 

var selection = editor.getSelectionHtml();

 

 

 

 

//Remove all custom tags before insert new custom tags

 

 

 

var html = editor.get_html(true).replace("<ordredujour>", "");

 

 

html.replace(

 

"</ordredujour>", "");

 

 

 

 

var newhtml = html.replace(selection, '<ordredujour>' + selection + '</ordredujour>');

 

 

editor.set_html(newhtml);

 

 

 

}

I must remove old tag if old tag exist because i want only one <ordredujour> tag in all my html

My problem is that in HTML tab, I don't see my custom tag around selection. Do you know why ?

 

Rumen
Telerik team
 answered on 24 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?