Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
166 views
Been using Telerik asp.net controls for a while now and am very happy.  However, recently I noticed that working with certain controls in design time does not always affect the source.  For example, I just put a grid control into the source via drag and drop.  I set some properties in source.  Switched to design mode, turned off AutoGenerateColumns (this appeared in the source).  Then I opened the column builder (GridColumn Collection Editor) and added some columns.  These columns are no where to be found in the source.  If I switch back and forth between design and source it appears as though the control remembers the columns I put in while in design mode.  However, if I close the file and reopen - all of the columns are gone.  Mind you, none of the columns ever appeared in source, so I kind of expected to lose the columns upon reopening the file.  Bottom line, it makes some of the design features useless - I must hand code them in source.  Other things like Pager settings also did not get put into source.

What would be causing this?

Just did a little testing.  On the same page I created two grids.  First one I created by dragging from the toolbox to the source.  The second one I created by dragging from the toolbox to the designer.  The first grid exhibits the behavior described above.  The second grid works as expected. 

It's an easy work around, but I'm curious as to why it would behave this way.

Thanks,
David
Dartin
Top achievements
Rank 1
 answered on 03 Jan 2009
6 answers
200 views
With a tree view, for example, is it  possible to have a node drag cause a post back ajax style, but for a node click to to NOT cause a post back.

So it would be 2 scenarios on tree view:

1) Click on node initiating a refresh on another part of the page, but tree view itself remaining on screen (Nothing on the tree changes, so why bother to make it refresh).

2) Tree view node being dragged, and need for an ajax style post back to relect new version of tree.

So far as I can tell, the ajax manager does not allow for this. It creates call back after any interaction with tree (the initaitor) regardless of event it detects.

Cheers,
Andles.
Andy
Top achievements
Rank 1
 answered on 03 Jan 2009
2 answers
461 views

Hi,

I updated to the latest telerik controls (2008).

After this update, the page is showing this error:
The base class includes the field 'RadAjaxManager1', but its type (Telerik.Web.UI.RadAjaxManager) is not compatible with the type of control (Telerik.Web.UI.RadAjaxManager).

pls advise

 

thanks

Hessner
Top achievements
Rank 2
 answered on 02 Jan 2009
4 answers
171 views
How can I drop selected text from outside source on to a treeview node?
All I need is an (client-javascript) event trigger when some thing is drop on a treeview node.
Currently, only a node can be dropped on another node.
Somebody has already done this in the discussion.

Thanks.

tom
Top achievements
Rank 1
 answered on 02 Jan 2009
0 answers
146 views
I have been looking Every Where for the solution ...final I got the solution in
http://www.telerik.com/community/forums/aspnet/window/confirm-postback-dialog.aspx
 I followed the RadConfirmPrometheus.zip file to receive the result..

 

<asp:Button ID="AllianceDelete" runat="server" Text="Delete"

 

 

OnClientClick="return radconfirm('Delete Item?', event);" OnClick="AllianceDelete_Click" />
No problem so far ..Expected result received....

Now When I inlcude Ajax portion ...I get the the RadWindow, but clicking yes button on the RadWindow doesn't do a postBack ..why? 
Ajax Portion

 

<

telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy2" runat="server">

 

 

 

 

<AjaxSettings>

 

 

 

 

<telerik:AjaxSetting AjaxControlID="AllianceDelete">

 

 

<UpdatedControls>

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="AllianceGrid" /

 

 

 

 

 

</UpdatedControls>

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

</AjaxSettings>

 

 

 

 

</telerik:RadAjaxManagerProxy>

Thanks,
DIP

 

Dip
Top achievements
Rank 1
 asked on 02 Jan 2009
3 answers
309 views
Hi, and Happy New years:
I have a RADGrid (Nov 2008 ver) control and I am attempting to inserts and update the 'detail' table.  It does not automatically fire the 

ObjectDataSource_Inserting right after the RadGrid_InsertCommand event.  Any ideas?  Is their a boolean flag I should or could check?

 

Phil
Top achievements
Rank 2
 answered on 02 Jan 2009
10 answers
1.0K+ views
Hi,

I am setting EnableEmbeddedSkins="false" in my skin file so I am sure it is applied to all instances of RadWindow. however, I am still seeing the webresource.axd sending the embeded
/* RadWindow 2 Common Css */
CSS file, although it does not send the skin specific CSS file.

I did the same for all other rad controls and it works for all of them, except RadWindow.
nenita
Top achievements
Rank 1
 answered on 02 Jan 2009
5 answers
240 views
hai,

I have a problem with rad editor for asp.net ajax when viewing in mozilla..
I am  using the rad editor inside a web user control and using  it in another web user control. the code is given below.


setup.ascx:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
</asp:ScriptManagerProxy>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<telerik:RadEditor ID="Editor" runat="server" StripFormattingOptions="All" EnableAjaxSkinRendering="true"
                    ToolsFile="~/Telerik/Editor/Tools.xml"  ToolbarMode="Default" Width="98%">
                    <CssFiles>
                        <telerik:EditorCssFile Value="~/App_Themes/SNAMATEST/TelerikEditor.css" />
                    </CssFiles>



</telerik:RadEditor>
 </ContentTemplate>
</asp:UpdatePanel>.

viewer.ascx
<asp:Panel ID="pnlEditor" runat="server" Style="display: none;" CssClass="glSetUpPanel">
                        <div class="glItem">
                            <gl:GlossarySetup ID="ucGlossarySet" IsCancelButtonVisible="false" IsSaveButtonVisible="false"
                                runat="server" />
                            <div class="rlMiddle" style="text-align: right;">
                                <asp:Button ID="btnGlossarySave" runat="server" Text="Save" CssClass="rlButton" OnClick="btnGlossarySave_Click" />
                                <asp:LinkButton ID="lnkGlossaryCancel" runat="server" CssClass="rlLinkBold" OnClientClick="return TogglePanel(); return false;">Cancel</asp:LinkButton>
                                <%--  <asp:LinkButton ID="lnkGlossaryCancel" PostBackUrl='<%# HigherLogic.Glossary.Business.Services.SettingsService.ViewGlossaryPage + "?GlossaryKey=" + GlossaryKey %>'
                            CausesValidation="false" runat="server">Cancel</asp:LinkButton>--%>
                            </div>
                        </div>
                    </asp:Panel>


when the page loads first, the editorpanel visibility is false. when we click on one edit link, the editor panel will be visible and can edit using the editor. after saving the data the editorpanel gets invisible. if we again click on the edit, the editorpanel will be visible but we cannot edit anythingin the editor and will not load the old data.


when searching for a   solution i got one link  which i think will be the answer and added that code in the page load of the setup.ascx,
protected void Page_Load(object sender, EventArgs e)
        {

            HtmlGenericControl link = new HtmlGenericControl("LINK");
            link.Attributes.Add("rel", "stylesheet");
            link.Attributes.Add("type", "text/css");
            link.Attributes.Add("href", HigherLogic.Business.Utilities.ResolveUrlFully("~/App_Themes/SNAMATEST/TelerikEditor.css"));
            link.Attributes.Add("href", HigherLogic.Business.Utilities.ResolveUrlFully("~/App_Themes/SNAMATEST/Editor.css"));
            Controls.Add(link);
        }.

But not resolved the issue. when i added the this code inside the pageload of viewer control, i got this error,

Server Error in '/snama' Application.

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).


Can u please help me to get out of this problem. the issue is only comes in mozilla, all other browser has no issue. i am using the telerik dll version 2008.1.515.35.


can anyone help me?
Svetlina Anati
Telerik team
 answered on 02 Jan 2009
6 answers
201 views
Hi,

I have a formview edit template with a RadTexBox. I would like when user click on the TextBox, Radtooltip displays with a bigger text box for user to write a narrative, and click insert to insert nerrative to the textbox.

I have following sample code that works fine without formview. When I tried to implement the same idea in the formveiw edit template it doesn't work. I think I am having referencing problem. Here is the code that works without formview.

Thanks,

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head runat="server">

 

 

<title>Untitled Page</title>

 

</

 

head>

 

<

 

body>

 

<

 

script type="text/javascript">

 

 

 

function clientShow(sender, eventArgs)

 

{

 

var textbox2 = (document.getElementById("TextBox2"));

 

textbox2.focus();

 

var textbox1 = (document.getElementById("TextBox1")).value;

 

(document.getElementById(

"TextBox2")).value = textbox1;

 

 

 

 

}

 

function PopTB()

 

{

 

var textbox2 = (document.getElementById("TextBox2")).value;

 

(document.getElementById(

"TextBox1")).value = textbox2;

 

 

// var tooltip1 = $find("RadToolTip1");

 

var tooltip1 = getElementById("RadToolTip1");

 

tooltip1.hide();

 

 

 

}

 

</

 

script>

 

 

<form id="form1" runat="server">

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server" />

 

 

<div>

 

 

<asp:TextBox ID="TextBox1" Text="This is my text" runat="server" Height="75px" TextMode="MultiLine" Width="372px" ></asp:TextBox>

 

 

<telerik:RadToolTip ID="RadToolTip1" runat="server" Height="300px"

 

 

RelativeTo="Element" ShowEvent="OnClick" Skin="Forest" Width="557px" Animation="Resize" ManualClose="True" TargetControlID="TextBox1" OnClientShow="clientShow" >

 

 

<asp:TextBox ID="TextBox2" runat="server" Height="265px" TextMode="MultiLine" Width="550px"></asp:TextBox>

 

 

<asp:Button ID="Button1" runat="server" Text="Insert" OnClientClick="PopTB(); return false;" /></telerik:RadToolTip>

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Svetlina Anati
Telerik team
 answered on 02 Jan 2009
1 answer
123 views

I have tried the following but the popup panel (the one that pops up) is always contained and restrained within the rotator.

Meaning that when it popsup, as you can see the popup panel contains 9 lines "this is a testof it!!!<br />" but when it pops up because the rotaotr  is only 75px high it opnly can display the first 4 lines... and then nothing.
Also if I put it to popup on top then it popsup on top and only shows you the last line, the 8 other ones are above but outside the rotator so it is hidden...

<

 

telerik:RadRotator ID="RadRotator1" runat="server"

 

 

DataSourceID="ObjectDataSource1" FrameDuration="0" width="100%"

 

 

ScrollDuration="3000" ItemWidth="100" ItemHeight="75" Height="75" Font-Size="5pt">

 

 

 

<ItemTemplate>

 

 

<asp:Panel CssClass="UserPhotoStripUserName" ID="Panel3" runat="server" BackColor="#6699FF" Width="200"

 

 

Height="100" style="position:absolute; display:none;" Font-Size="XX-Small">

 

this is a testof it!!!

<br />

 

this is a testof it!!!

<br />

 

this is a testof it!!!

<br />

 

this is a testof it!!!

<br />

 

this is a testof it!!!

<br />

 

this is a testof it!!!

<br />

 

this is a testof it!!!

<br />

 

this is a testof it!!!

<br />

 

this is a testof it!!!

<br />

 

 

</asp:Panel>

 

 

 

<cc1:HoverMenuExtender ID="HoverMenuExtender1" runat="server"

 

 

PopupControlID="Panel3" TargetControlID="Label1" PopupPosition="Bottom"

 

 

OffsetX="0" OffsetY="0">

 

 

</cc1:HoverMenuExtender>

 

 

 

 

<asp:Panel ID="Panel2" SkinID="UserPhotoStripPan" runat="server">

 

 

 

<small><asp:Label ID="Label1" runat="server" Text='<%# Eval("UserName")%>'></asp:Label></small>

 

 

<table border="0" cellpadding="0" cellspacing="0" class="photo-frame">

 

 

<tr>

 

 

<td class="topx--"></td>

 

 

<td class="top-x-"></td>

 

 

<td class="top--x"></td>

 

 

</tr>

 

 

<tr>

 

 

<td class="midx--"></td>

 

 

<td>

 

 

<asp:Image ID="Image1" runat="server" Width="25" ImageUrl='<%#Eval("ProfileImageURL")%>' />

 

 

<td class="mid--x"></td>

 

 

</tr>

 

 

<tr>

 

 

<td class="botx--"></td>

 

 

<td class="bot-x-"></td>

 

 

<td class="bot--x"></td>

 

 

</tr>

 

 

</table>

 

 

</asp:Panel>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadRotator>

 

Fiko
Telerik team
 answered on 02 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?