Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
179 views
In a previous post I asked this question and I got a working response.  I was able to use...

myThumb = <%= rpbAttibutes.FindItemByValue(
"TemplateHolder").FindControl("wtvDoc").ClientID %>;



                <telerik:RadPanelbar ID="rpbAttibutes" runat="server" Skin="Vista" ExpandMode="FullExpandedItem" Height="100%" Width="100%">  
                    <Items> 
                        <telerik:RadPanelItem runat="server" Text="Thumbnails" Expanded="true">  
                            <Items> 
                                <telerik:RadPanelItem Value="TemplateHolder" Height="100%">  
                                    <ItemTemplate> 
                                        <center> 
                                            <cc1:WebThumbnailViewer ID="wtvDoc" runat="server" Width="100%" Height="99%" ViewerID="wivDoc" BackColor="LightGray" BorderColor="#A7BAC5" BorderWidth="0" Centered="true" ScrollBarVisibility="Dynamic" /> 
                                        </center> 
                                    </ItemTemplate> 
                                </telerik:RadPanelItem> 
                            </Items> 
                        </telerik:RadPanelItem> 
 

...to get a control from inside a RadPanelBar Item control.

I am calling that script on a page load event and it works fine.  This code, although it gives me an [object], does not give me the actual treeview object.

oTree = <%= rpbCabinets.FindItemByValue(
"TemplateHolder").FindControl("rtvItems").ClientID %>;

                        <telerik:RadPanelBar ID="rpbCabinets" runat="server" Skin="Vista" ExpandMode="FullExpandedItem" Width="100%" Height="100%">  
                            <Items> 
                                <telerik:RadPanelItem runat="server" Text="Cabinets" Expanded="True">  
                                    <Items> 
                                        <telerik:RadPanelItem runat="server" Value="TemplateHolder" Height="100%">  
                                            <ItemTemplate> 
                                                <telerik:RadTreeView ID="rtvItems" runat="server" Width="100%" Height="99%" Skin="Office2007" LoadingStatusPosition="BelowNodeText" PersistLoadOnDemandNodes="true"   
                                                        OnClientNodeClicked="AfterClientClickHandler" 
                                                        OnClientContextMenuShowing="onClientContextMenuShowing" 
                                                        OnClientContextMenuItemClicked="onClientContextMenuItemClicked" 
                                                        OnNodeExpand="rtvItems_NodeExpand" 
                                                        OnNodeClick="rtvItems_NodeClick">  
                                                    <CollapseAnimation Duration="100" Type="OutQuint" /> 
                                                    <ExpandAnimation Duration="200" Type="OutQuint" /> 
                                                    <ContextMenus> 
                                                        <telerik:RadTreeViewContextMenu ID="rtvcmCabinet" Skin="Vista" runat="server" Flow="Horizontal">  
                                                            <Items> 
                                                                <telerik:RadMenuItem Text="Create Folder" Value="CreateFolder" ExpandMode="ClientSide" runat="server" > 
                                                                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" /> 
                                                                </telerik:RadMenuItem> 
                                                                <telerik:RadMenuItem Text="Export Items" Value="ExportItems" ExpandMode="ClientSide" runat="server" ImageUrl="images/exportFolder.gif" > 
                                                                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" /> 
                                                                </telerik:RadMenuItem> 
                                                                <telerik:RadMenuItem Text="Import Item" Value="Import" ExpandMode="ClientSide" runat="server" > 
                                                                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" /> 
                                                                </telerik:RadMenuItem> 
                                                                <telerik:RadMenuItem Text="Export Item" Value="ExportItem" ExpandMode="ClientSide" runat="server" > 
                                                                    <GroupSettings ExpandDirection="Auto" Flow="Vertical" /> 
                                                                </telerik:RadMenuItem> 
                                                            </Items> 
                                                            <DefaultGroupSettings ExpandDirection="Auto" Flow="Vertical" /> 
                                                            <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                                            <ExpandAnimation Type="OutQuart" /> 
                                                        </telerik:RadTreeViewContextMenu> 
                                                    </ContextMenus> 
                                                </telerik:RadTreeView> 
                                            </ItemTemplate> 
                                        </telerik:RadPanelItem> 
                                    </Items> 
                                </telerik:RadPanelItem> 
 

Do I need to type cast it or something?  How do I do that?

Seth

Rosi
Telerik team
 answered on 08 Apr 2008
1 answer
228 views
Hi

We can use the client side api to get the selection as follows:

var editor = $find("<%=RadEditor1.ClientID%>"); //get a reference to RadEditor client object

var theSelectionObject = editor.getSelection();

var theSelectedElement = theSelectionObject.getParentElement();

theSelectionObject.getHtml()


However is there a way we can set the selection range? ie set the start postion to start position + 1?

Thanks
David

Rumen
Telerik team
 answered on 08 Apr 2008
1 answer
70 views
I am trying to use SingleExpandPath and OnClientNodeCollapsed on a Prometheus TreeView.  When a node opens the OnClientNodeCollapsed is not firing on the node that is auto closed.  Is there a way to have the SingleExpandPath functionality fire OnClientNodeCollapsed when it automatically closes a node?

Thanks!
Veselin Vasilev
Telerik team
 answered on 08 Apr 2008
2 answers
111 views
 I've created a custom provider. In the load event of my form I'd like to get/set some various properties of it. How do I get a reference to my provider? RadScheduler.Provider isn't a reference to my control - I see there is a non-public property named _parent but I don't see any way of getting to it.
PaulMrozowski
Top achievements
Rank 1
 answered on 08 Apr 2008
3 answers
122 views
Sorry for reposting, but I did update this and it said to repost, not to update....

Going off an examples I've found in the forums, I'm having trouble getting the ajax to work correctly between two RadPanes.  In the simple example where a button is clicked and the other RadPane is updated with the current time, the RadPane where the button is located continually appears to flicker/flash?  Is this the correct behavior?

<

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

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

</telerik:RadScriptManager>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" height="75px"

width="75px">

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'

style="border: 0px;" />

</telerik:RadAjaxLoadingPanel>

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"

HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1">

<telerik:RadSplitter ID="RadSplitter1" runat="server" Height="600px" Width="100%"

HeightOffset="65" Items-Capacity="8" LiveResize="True" Orientation="Vertical"

ResizeMode="AdjacentPane" Skin="Office2007" SplitBarsSize="" BackColor="White">

<telerik:RadPane ID="LeftPane" runat="server" Width="22" Scrolling="none">

<telerik:RadSlidingZone ID="SlidingZone1" runat="server" Width="22">

<telerik:RadSlidingPane ID="NavigationPanel" Title="Navigation" runat="server" Width="300px"

Scrolling="None">

<asp:Button ID="Button1" runat="server" Text="Button" />

</telerik:RadSlidingPane>

</telerik:RadSlidingZone>

</telerik:RadPane>

<telerik:RadSplitBar ID="RadSplitbar1" runat="server">

</telerik:RadSplitBar>

<telerik:RadPane ID="MiddlePane" runat="server" BackColor="White" Height="" Scrolling="None"

Width="99%">

<uc2:WebUserControl1 ID="WebUserControl11" runat="server" />

</telerik:RadPane>

</telerik:RadSplitter>

</ContentTemplate>

</telerik:RadAjaxPanel>

</form>

Sebastian
Telerik team
 answered on 08 Apr 2008
1 answer
129 views
Having a bit of trouble accessing items client side after transitioning to the Prometheus version of the grid.

Before I could do this:

    function LookupGrid_OnRowOver(row) {
        this.Rows[row].Control.style.backgroundColor = '#CCCCCC';
    }

Now, using Prometheus I change to:

function LookupGrid_OnRowOver(sender, e) {


but I can't seem to access the ROW.  The client side docs indicate that "sender" should be the DataItem - but it appears to be the grid itself.

Any advice?
Yavor
Telerik team
 answered on 08 Apr 2008
1 answer
681 views
  1. I have it Prometheus datepicker control in a form,ondateselected client side event I want to clear the datepicker and set the blank date.
  2. In client side function I’m checking my date(which is in hidden field) based on that value I want to deside the clear or not .I completed my logic part in function,only I stuck to clear the datepicker with blank date or clear the datepicker textbox.
Help me out to clear the date (which property) I need set.

Thanks & Regards
Shaik Mujeebuddin


Sebastian
Telerik team
 answered on 08 Apr 2008
3 answers
354 views
I originally reported this in a forum thread in the RadGrid category because the error message was the same. That thread seems to be dead though, and we are still having the problem.

The following exception is being thrown by the RadSplitter:

Microsoft JScript runtime error: Sys.InvalidOperationException:
Handler was not added through the Sys.UI.DomEvent.addHandler method.

by this:

var $removeHandler = Sys.UI.DomEvent.removeHandler = function Sys$UI$DomEvent$removeHandler(element, eventName, handler) {

where the element is:

RAD_SPLITTER_BAR_COLLAPSE_Forward_ctl00_ieContentPlaceHolder_ieSplitBar

on the Prometheus RadSplitter. It's trying to remove events that don't exist on the element. From the Immediate window:

?(typeof(element._events) !== 'object')
false

I have the RadSplitter on a web page displayed in a RadWindow popup. The exception is not thrown when launching the popup the first time. However, on the second and each subsequent time the popup is opened this gets thrown. It also gets thrown when I leave that parent page and browse to another page.

Any help would be greatly appreciated.

Thank you,
Terry



Georgi Tunev
Telerik team
 answered on 08 Apr 2008
3 answers
219 views
I am encountering some problems when the software is running on medium trust level. I set RestoreOriginalRenderDelegate="false" for my RadAjaxManager as well as RadAjaxPanel.

Specifically, the problems are:

  1. RadScriptBlock does not work (no effect)
  2. ResponseScript.Add ('some scripts') does not work (no effect)
  3. client side call .ajaxRequest() does not work (causing full postback)
Please provide a solution for the above issues ASAP

By the way, does inheriting RadAjaxPage solve the problem? What if I use the RadAjax controls in my user controls? what do I have to inherit from for my user controls?
Konstantin Petkov
Telerik team
 answered on 08 Apr 2008
1 answer
79 views
How does the two work together? The Updatehistory makes use of the asp:UpdatePanel, but with AjaxManager there is no UpdatePanel involved.
Vlad
Telerik team
 answered on 08 Apr 2008
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?