Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
59 views
This is reproducible in the demo at http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

1. Place cursor at the start of the "RadEditor is not simple an HTML Editor" line. Note font size = 12pt
2. Change font size to 72px. Note that the cursor is now huge, but the Font Size dropdown still says 12pt.
3. Type some stuff. The font is much larger, but the Font Size dropdown has remained unchanged.

I would have expected the font size to stay the same while typing.
Rumen
Telerik team
 answered on 18 May 2010
2 answers
142 views
Hi All,

I am dynamically creating a load of datetime controls (code below) and they all use a shared calendar and timeview to save resources.  They work fine except for the fact that I can't figure out how to get an AJAX callback to fire on the SelectedDateChanged event.  If I create a control in the aspx file it's fine however creating dynamically is another matter.  Other than using a JS based callback does anyone have any thoughts?

Dim uxStartDate As RadDateTimePicker = New RadDateTimePicker  
uxStartDate.DbSelectedDate = CDate(startDate)  
uxStartDate.ID = "uxStartDate_" & rowID  
uxStartDate.Width = 180  
uxStartDate.CssClass = "dateCol" 
uxStartDate.SharedCalendarID = "uxSharedCal" 
uxStartDate.SharedTimeViewID = "uxSharedTimeView" 
uxStartDate.DateInput.DisplayDateFormat = "ddd dd/MM/yy HH:mm:ss" 
uxStartDate.AutoPostBack = True 
uxStartDate.AutoPostBackControl = Telerik.Web.UI.Calendar.AutoPostBackControl.Both  
 
 
 
Protected Sub SelectedDateChange(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs)  
  ' Do some stuff here  
End Sub 

I am also finding that when I add the control to the Ajaxmanager as below the calendar is displayed at the bottom of the page and non of my controls get displayed, any thoughts?

uxRadAjaxManager.AjaxSettings.AddAjaxSetting(uxStartDate , uxEndDate) 


Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 18 May 2010
5 answers
398 views
Hi Everyone
                  I am using Radgrid in my application. In that i use Show csv export button to acheive it in client side, i just add OnRequestStart() script. it gives me the error onrequeststart is undefined.
Radoslav
Telerik team
 answered on 18 May 2010
4 answers
169 views

I have aspx page(which contains master page), inside that user control is there(.ascx), inside this user control one more user control is there. Inside this user control, I have parent repeater in that i have image button and child repeater, inside the child repeater i have link button, i did ajaxification for image button. below is the detail code

 

<

 

asp:Repeater ID="ParentRepeater" runat="server">

 

 

 

 

 

<ItemTemplate>

 

 

 

<asp:ImageButton ID="ExpandCollapseImageButton"

 

 

runat="server"

 

 

CssClass="dimensionExpCol"

 

 

ImageUrl='<%#Eval("ImageUrl")%>'

 

 

OnClientClick='<%#Eval("Args", "OnClientClick(\"{0}\");return false;")%>'

 

 

 

 

 

 

/>

 

 

 

<asp:Repeater ID="ChildRepeater" runat="server" DataSource='<%#Eval("LinkValues")%>'>

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<div class="dimensionValueWrapper">

 

 

 

 

 

<asp:LinkButton ID="ChildRepeaterLinkButton"

 

 

runat="server"

 

 

CssClass="dimensionValueName"

 

 

 

 

 

Text='<%#Eval("DisplayName")%>'

 

 

CommandName='<%#Eval("CommandName")%>'

 

 

 

 

 

CommandArgument='<%#Eval("CommandArgument")%>'

 

 

 

 

 

OnCommand="OnCommand"></asp:LinkButton>

 

 

</div>

 

 

 

</ItemTemplate>

 

 

 

 

 

</asp:Repeater>

In Code Behind:

 

protected

 

override void OnLoad(EventArgs e)

 

{

 

base.OnLoad(e);

 

 

RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(Page);

 

 

RadAjaxLoadingPanel loadingPanel =

 

(

RadAjaxLoadingPanel)Page.Master.FindControl("LoadingPanel");

 

ajaxManager.AjaxRequest += OnAjaxManagerAjaxRequest;

 

ajaxManager.AjaxSettings.AddAjaxSetting(

ajaxManager, ParentRepeater, loadingPanel);

 

RegisterJavaScript();

 

}

 

private

 

void RegisterJavaScript()

 

{

 

string script =

 

 

@"

 

<script type=""text/javascript"">

 

function OnClientClick(args)

{

var ajaxManager = $find("""

 

+ RadAjaxManager.GetCurrent(Page).ClientID + @""");

 

ajaxManager.ajaxRequest(args);

}

</script>"

 

;

 

 

ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "Test", script, false);

 

}

 

protected

 

void OnAjaxManagerAjaxRequest(object sender, AjaxRequestEventArgs e)

 

{
//code has been implemented
}

 

protected

 

void OnCommand(object sender, CommandEventArgs eventArgs)

 

{
}

If i click on image button i.e working fine,JavaScript is firing(OnClientClick();) and Ajaxification is also working fine, but inside the child repeater if i click on link buttons total Repeater(Parent) is disappearing. Link button OnCommand event is firing. But I am not able to see the total Repeater. Actually if i click on link button, i am showing some results inside the Grid. I am getting those results as well. But Repeater is disappearing.

Can you tell me the what will be the Reason and what would be the solution for that.

Thanks in Advance

Hari.

Iana Tsolova
Telerik team
 answered on 18 May 2010
1 answer
118 views

Currently we are using version 2008.3.1314.35. if we upgrade latest version will this requires code changes(for Datepicker control and page break tool) to continue supporting the existing functionalities? What is the cost associated to upgrade to latest version

Maria Ilieva
Telerik team
 answered on 18 May 2010
7 answers
246 views
Hello,

Can anyone help me with my problem.

I want to prevent users from dragging a node when the destination node is already the 4th tier. I tried using the code below. yes it works when i tried to add a node into the 4th node. But my problem here is that when the sourcenode have a child node with a grandchild node, the scenario here is that the alert will not pop up because the condition is still valid where the sourcenode is dragged into the 2nd or 3rd node, with this scenario, my treeview will have a node with 5 or 6 tiers.

can anyone give me an approach?

 if (args.get_destNode().get_level() > 2) {
                        alert('Cannot drop node here');
                        args.set_cancel(true); // Cancel the event  
                        }

Thanks
Veronica
Telerik team
 answered on 18 May 2010
3 answers
107 views

Hi,

I am using English language for radspell control. Spell checker is suggesting different words like 'escuage', 'isagoge', 'ascogonia' and etc for the wrongly spelled word 'askign'. But it is not returning the exact match ‘asking’. Problem is reproducible with radspell demo application also. Please us the below link to reproduce the issue.

Demo link: http://demos.telerik.com/aspnet-ajax/spell/examples/whatsnew/defaultcs.aspx

But I am getting the exact word (asking) when the wrongly spelled word is ‘asknig’ or ‘asikng’

Is there any way to get the exact match where the wrongly spelled word is ‘askign’?

Thank you,
Vaidya. 

Rumen
Telerik team
 answered on 18 May 2010
6 answers
193 views
We have a site that contains instructional content. Sometimes this content contains literal HTML that needs to be displayed exactly as is. For some reason RadEditor is injecting "originalAttribute=xyz" and "originalPath=xyz" into the content.

You can reproduce this by pasting the following content into the "Default Settings" sample in the Telerik live demos area (http://www.telerik.com/demos/aspnet/prometheus/Editor/Examples/Default/DefaultCS.aspx)

<a href="item2.html">Item 1</a>
<br/>
<a href="item2.html">Item2</a>
Rumen
Telerik team
 answered on 18 May 2010
1 answer
149 views
how to make textbox as read only in grid bound column when in edit mode.
Shinu
Top achievements
Rank 2
 answered on 18 May 2010
4 answers
132 views
Hi,

I have little problem with RadFilter when adding few expressions or groups. At some point the group/expression bar will break down so that the images of the bar are placed on different "rows" like wrapping the images (see enclosed picture) which seems that the bar does not fit the available width. I placed the filter control inside RadToolTip and thought that the tooltip causes this behaviour but same happens even if I have just the radfilter and radgrid on the page. Tested only with IE8. Can you tell me what I have done wrong?



Regards,
Pete
Pete
Top achievements
Rank 1
 answered on 18 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?