Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
80 views
I set the nav url on some tabs, and those tabs dont correspond to a pageview of any sort...I just want them to be links.

However currently when I click the tab with the navUrl set it selects it...is there a way to prevent that from happening?
Genady Sergeev
Telerik team
 answered on 11 May 2012
2 answers
287 views
I am trying to put some simple code in a label tag and I get this error (Sorry for the french language):

Erreur du serveur dans l'application '/'.

La collection Controls ne peut pas être modifiée, car le contrôle contient des blocs de code (c'est-à-dire <% ... %>).

Description : Une exception non gérée s'est produite au moment de l'exécution de la demande Web actuelle. Contrôlez la trace de la pile pour plus d'informations sur l'erreur et son origine dans le code. 

Détails de l'exception: System.Web.HttpException: La collection Controls ne peut pas être modifiée, car le contrôle contient des blocs de code (c'est-à-dire <% ... %>).

Erreur source: 

Une exception non gérée s'est produite lors de l'exécution de la demande Web actuelle. Les informations relatives à l'origine et l'emplacement de l'exception peuvent être identifiées en utilisant la trace de la pile d'exception ci-dessous.

Trace de la pile: 

[HttpException (0x80004005): La collection Controls ne peut pas être modifiée, car le contrôle contient des blocs de code (c'est-à-dire <% ... %>).]
   System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) +8689794
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +215

[HttpException (0x80004005): Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error.]
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +280
   Telerik.Web.UI.RadAjaxControl.PerformRender() +508
   Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) +1800
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +163
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


Informations sur la version : Version Microsoft .NET Framework :2.0.50727.5448; Version ASP.NET :2.0.50727.5456
 

What I am trying to do:

<label><% Response.Write(GetMessageEx(5908, MessageFile.GesPhar).Texte)%></label>

Can someone tell me how to resolve this ? 

Thanks.
Jocelyn
Top achievements
Rank 1
 answered on 11 May 2012
1 answer
79 views
Hi,
 
  I tried the below piece of code to get the start position of the selected text in Telerik RadEditor control.

var range, text, startpos;
var doc = editor.get_document();
range = editor.getSelectedElement().createTextRange();
text = range.text; var dup = range.duplicate();
range.moveToBookmark(doc.selection.createRange().getBookmark());
dup.setEndPoint('EndToStart', range);
startpos = dup.text.length;


At first time, i get the startposition, if i clear the text again and insert some text and execute the above code, it is throwing error: object doesnt support at the location:range = editor.getSelectedElement().createTextRange();

Please help me to fix the issue.
Rumen
Telerik team
 answered on 11 May 2012
3 answers
356 views
Hi
I have creating some changes with telerik Editor like I am using each HTML tag with a speperate element and Each Element is showing in a different look using Css. I have attached some keydown and onclick events with Editor to achieve good functionality.
But I am having problem when I am currently working in a Tag than, at starting position when I press backspace key than content is Mixed with previous Element or Block. and Same when  at ending position when I press Delete key than content is Mixed with Next Element or Block.
So Please tell me how can I track Cursor position in current block.
I want to know where is my cursor on  onkeydown, onkeypress, onkeyup events.


Please attached Image to see my view of Editor.
Waiting for you Reply.


Thanks in Advance.
Best regards,
Manish
Programmer
Rumen
Telerik team
 answered on 11 May 2012
6 answers
311 views
Hi,

I am looking for an easy way to ajaxify all the rad controls in a master/child web application.
So I have this in the site.master page:
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="cpMain">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="cpMain" 
                                                LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"
                                 Skin="Sitefinity" />

....
    <asp:ContentPlaceHolder ID="cpMain" runat="server">
    </asp:ContentPlaceHolder>

However, it ajaxify everything but I am unable to see the RadAjaxLoadingPanel1 running.
Please advise.

Eyup
Telerik team
 answered on 11 May 2012
2 answers
304 views
is it possible to change the contents of a grid during the updatecommand event which is generated by the grid's autogenerated update link? this should be a trivial operation taking 2 lines of code but it is proving to be anything but.

could someone post a code example? i just want to see the c# code in the updatecommand event. no fancy example - just show me how to change the value of column 1 to "something". i do not expect to have to muck around with the data source or anything else related to database data but my application is using entitydatasource and entity framework - again this should be irrelevant.....somehow i don't think it is....

i would expect to use the command arguments alone but somehow i feel it will be more involved.
Richard
Top achievements
Rank 1
 answered on 11 May 2012
5 answers
179 views
Is there a way to control the position of the advanced form when it's in modal mode? for example set the x and y values so that we can position it on a corner or center it on the screen?

thanks.

Pablo.
Peter
Telerik team
 answered on 11 May 2012
1 answer
100 views
Hi,
I have radrotator with RadBinaryImage.I am saving the logo in sql server using varbinary datatype.I need to bind the image inside the radrotator.For that i have given the following codes 

1. "DataValue='<%# (byte[]) DataBinder.Eval(Container.DataItem, "Airline_Logo")%>' />" 

2. "DataValue='<%# DataBinder.Eval(Container.DataItem, "Airline_Logo")%>' />".But both are not working
Kevin
Top achievements
Rank 2
 answered on 11 May 2012
1 answer
173 views
My RadToolTip text is not wrapping even after setting Wrap="true" and also setting the width.

My tooltip text is been dynamically assigned.

I want my tooltip text to be displayed in new line once the content exceeds its limit. Mainly I want to wrap my text which not working and always the text is displayed in one single line covering the entire screen.

Code is as below

   <telerik:RadToolTip ID="rttReadMoreCustomText" runat="server" Skin="Windows7" TargetControlID="lnkReadMore" Position="Center"  ShowEvent="OnClick" HideEvent="ManualClose" ManualClose="True" ShowDelay="0" AutoCloseDelay="0" Visible="true" Width="100px" Wrap="true">
                <div style="width:300px;white-space:nowrap">
                   <asp:Label ID="lblReadMoreFullCustomText" style="" runat="server" class="Venue_general_font1 FontStyle4"  Font-Bold="true" />
             </div>
              
        </telerik:RadToolTip>
Kevin
Top achievements
Rank 2
 answered on 11 May 2012
1 answer
167 views
Hi,
How can I increase RadtreeView checkBox size..??

Reagrds,
Aditya
Kevin
Top achievements
Rank 2
 answered on 11 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?