Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
88 views
Pretty simple:

In a asp.net repeater I have an anchor tag which gets a unique id from a databind:
<a id="<%# ((Item)Container.DataItem).List.ListId %>" onclick="javascript:PositionToolTip(this)">...

In a JavaScript method, I want to get the id of the tooltip and set it's target control to the link which clicked it. The code below works; that is until about after 10 or 15 clicks then it starts to show up on incorrect links. No page refreshes are done during this time. Thoughts?

function PositionToolTip(clientId) 
{
    var radToolTip = $find("<%= ModalToolTip.ClientID %>");
    radToolTip.set_targetControlID(clientId.id);
    radToolTip.show();
 }
mc2000
Top achievements
Rank 1
 answered on 20 Aug 2010
5 answers
180 views
Hi,
Is there a way to add an image to the RadEditor? I see an image icon but I can`t really add one.
I have an application where I need to add an image or even a newsletter as a graphic (.pub file) pud I can`t find a way of doing it.

Thanks
Rumen
Telerik team
 answered on 20 Aug 2010
1 answer
136 views
Hey!
I would like to have various messages posted on my site stored in a listview.
Users can post comments on those posts. Initially comments would not be displayed, but if a user clicks on a post, the listview item would expand so it would show comments also. Is this possible, or should I use another control?
Dimo
Telerik team
 answered on 20 Aug 2010
1 answer
173 views
Hello. I can't find RadWindowManager at Window, which open by another RadWindowManager.

Ok. Main.aspx
<telerik:RadWindowManager ID="winManager" ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" runat="server" Skin="Sunset" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="RadWindow2" Width="600" Height="490" Modal="true" OnClientClose="OnClientClose"
            NavigateUrl="UserRights.aspx" runat="server" Behaviors="Close">
            </telerik:RadWindow>
        </Windows>
 
</telerik:RadWindowManager>
Main Page. At USerRights.aspx I need open another popup, and get data for USerRights page. So I've got at
USerRights

<telerik:RadWindowManager ID="winManager2" ShowContentDuringLoad="false" VisibleStatusbar="false"
        ReloadOnShow="true" runat="server" Skin="Sunset" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="RadWindow1" Behaviors="Close" OnClientClose="OnClientClose"
                    NavigateUrl="ChooseUsersGroups.aspx" runat="server" Height="500" Width="500">
                </telerik:RadWindow>
            </Windows>
</telerik:RadWindowManager>
<button title="Add" id="btAdd" onclick="openSearchWindow(); return false;">Add</button>

First windows opens well, but when I try open second window from the first with js:

function openSearchWindow()
{
               var parentRadWindowManager = GetRadWindowManager();
               var oWnd2 = parentRadWindowManager.open("ChooseUsersGroups.aspx", "RadWindow1");
               window.setTimeout(function () {
                   oWnd2.setActive(true);
               }, 0);
}
GetRadWindowManager() returns undefined. If i try find WindowManager from parentpage(as in your sample) all is ok. Why I can't get WindowManager at secondpage?

Thanks.


Georgi Tunev
Telerik team
 answered on 20 Aug 2010
1 answer
150 views
Hi,

assume the following scenario:
A panel with four groups.
The last group should always be visible.
From the other groups only one at a time should be visible.

My approach was:
A panelbar with ExpandMode SingleExpandItem.
Four panel items - the last with Expanded and PreventCollapse set. (that's the one which should always stay open).
The first panel item set to Expanded - it shows my initial selection.
-- By the way this could be another panel to - later I'll set the "initial expanded one" in code behind.
Anyhow - for simplicity - I do the expand in markup.
So my panelbar looks like this:
Snippet created with CBEnhancer
<telerik:RadPanelBar ID="rpLeft" OnClientItemExpand="OnExpand" runat="server" Width="150" ExpandMode="SingleExpandedItem">
    <Items>
        <telerik:RadPanelItem runat="server" Text="Root1" ChildGroupHeight="120" Expanded="true">
            <Items>
                <telerik:RadPanelItem runat="server" Text="Child 1_1">
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child 1_2">
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child 1_3">
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child 1_4">
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child 1_5">
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child 1_6">
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child 1_7">
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child 1_8" Selected="true">
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
        <telerik:RadPanelItem runat="server" Text="Root Zwei">
            <Items>
                <telerik:RadPanelItem runat="server" Text="Child 2_1">
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child 2_2">
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
        <telerik:RadPanelItem runat="server" Text="Root ZweiA">
            <Items>
                <telerik:RadPanelItem runat="server" Text="Child 2A_1">
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child 2A_2">
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
        <telerik:RadPanelItem runat="server" Text="Root Drei" PreventCollapse="true" Expanded="true">
            <Items>
                <telerik:RadPanelItem runat="server" Text="Child 3_1">
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child 3_2">
                </telerik:RadPanelItem>
                <telerik:RadPanelItem runat="server" Text="Child 3_1">
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
    </Items>
</telerik:RadPanelBar>
The initial look is exactly what I want.
BUT - when I select (let's say) the second group the first group doesn't collapse.
If I (after this) select the third group - the second group collapses (as it should) but the first stays still open.

I can now manually collapse group one.
From now on single expand (partially) works.
There are still side effects.
Sometimes group panels stay "marked" - although collapsed correctly.
Sometimes groups stay open (multiple at a time).

Reproducible - if you click on the "PreventCollapse" - every opening of the following items keeps the currently open group open.
Example:
Click on group one - one expanded - all other collapsed - OK.
Click on the "PreventCollapse" item - nothing happens - OK.
Click on group two - two expanded - BUT item one stays expanded.
Click on the "PreventCollapse" item - nothing happens - OK.
Click on group three - three expands - BUT One and Two stay open.

Just a note - when I remove the "PreventCollapse" everything works as expected!

Manfred
Nikolay Tsenkov
Telerik team
 answered on 20 Aug 2010
2 answers
90 views
Hi,
I am using usercontrol for eidting RadGrid. The javascripts written in usecontrol are not called but then I move these scripts in main page which has grid it works fine.
Why it does not work when I write then in UserControl

Rosen
Telerik team
 answered on 20 Aug 2010
3 answers
139 views

Hi,
i would like to access and embed video files stored on separate file server via the Telerik RADEditor Control for MOSS.

The approach i am trying to do is create a virtual directory in IIS using UNC path (pointing to the file server and the directory where the video files are stored).

I am unable to access the virtual directory (the path is http://localhost/videofiles -> referring to a file server \\10.42.54.36\Shared\Videos using the Telerik RADEditor Control for MOSS and using the mediamanager or other links on the telerik radeditor control for moss.

Let me know how do i access the video files stored on a file server and embed them into the Telerik RADEditor control for moss. The RADEditor control is stored on a webpart page on sharepoint site which is a different server.

Your response to this highly appreciated and required  urgently.



regards
Ram
Senior Solution Architect
Zensar Technologies Ltd.
Pune, India

Stanimir
Telerik team
 answered on 20 Aug 2010
2 answers
189 views

I have just started developing a new site using the same Visual Studio 2008 setup as for other sites,
but on this site I am seeing a strange problem with the RadWindow (black skin).

1 ) The title bar has no background image.
     ( It is plain white instead of the black 3D bar)

2 ) The corners of the window are very small white triangles instead of transparent

A very similar site I developed a few months ago uses a very similar colour scheme, including the black skin on
the radwindow, and it is perfect.

Can you suggest what I can try to diagnose this?

I am using Q2 2009 version.

The actual window declaration is like this:

<telerik:RadWindow ID="RadWindowModel1" runat="server" OpenerElementID=" <%# ImageModel1.ClientID %> "
    NavigateUrl="~/windows/display-model.aspx?Title=Chateau%20Yquem%20Model&img=archi-big.jpg"
        Animation="Fade" VisibleStatusbar="False" Height="600px"
        Width="840px" Skin="Black" Title="Chateau Yquem Model"
        BorderStyle="None" VisibleTitlebar="True" ToolTip="Chateau Yquem Model"
        KeepInScreenBounds="True" BackColor="Black" BorderWidth="0px"
        ForeColor="Black" Left="0px" Modal="True" z-index="9900" Overlay="True">
    </telerik:RadWindow>


Thanks

Clive.

Georgi Tunev
Telerik team
 answered on 20 Aug 2010
1 answer
117 views
Hi everybody
I have two listboxs , the user will do drag and drop or transfer from listbox1 to listbox2 , what i need is to preserve the listbox2 items into session variables so i can acces thems after that on other pages of my web application !
Any one knows how to do it ?
thanks
Hassen
Top achievements
Rank 1
 answered on 20 Aug 2010
5 answers
156 views
Hi, i am using the xmlhttp panel to update a html detail view on row click in a grid.

function rowSelected(sender, args) {
                var key = args.getDataKeyValue("IdAnagrafica");
                var panel = $find("<%= RadXmlHttpPanel1.ClientID %>");
                panel.set_value(key);
                editedRow = args.get_itemIndexHierarchical();               
            }

It's works fine, but i have to update a toolbar server side (ascx) according to values.

In

 

 

 

XmlHttpPanel_ServiceRequest(object sender, RadXmlHttpPanelEventArgs e)

 

i set the values for toolbar but at runtime i have no results.

i have tried client side to update with ajax manager the control in  

function OnClientResponseEnded(panel, args) {

but in that way i have no content at all in xmlhttp panel without have the toolbar changed.

Is there any way to do this ?

thanks in advice
Andrea


Pero
Telerik team
 answered on 20 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?