Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 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
113 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
125 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
131 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
686 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
358 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
221 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
81 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
1 answer
123 views
Hi,

Are we going to have this kind of stuff in the future?

http://www.componentart.com/webui/demos/ajax/technique4/

I am not using their controls, but I am wondering if we will have performance improvements like this? It is quite significant and if I am not mistaken, ours is like the "technique 1" demo on their site (using update panel).
Vlad
Telerik team
 answered on 08 Apr 2008
0 answers
172 views
Hello All,
  I have been through the documentation as more times then i can count at this point. I found a nice tutorial on using a new radwindow to provide a server side argument through query strings here. And I have also been using the Hierarchical functionality of RadGrid in Prometheus demonstrated here.  In order to support a many to many relationship while using the Hierarchy Grid I am using the following code to overwrite the default Add New Record in the details table GridView.
<CommandItemTemplate> 
                               
                                                 <asp:LinkButton ID="btnEditSelected" runat="server" OnClientClick="myCreateRow()" ><img style="border:0px;vertical-align:middle;" alt="" src="../../DataEditing/Img/Edit.gif" />Associate Regulation With More Product Tests</asp:LinkButton> 
                             </CommandItemTemplate> 

 Using this code I can effectively pop open a new window, however I am having the hardest time figuring out how to reference the parent_rows selected index value which I currently believe I need in order to get the parentsID value. I have tried many iterations of the following code
 function myCreateRow() 
    {     
        alert("Trying Code"); 
         var oManager = GetRadWindowManager(); 
        var oGrid = $find("<%=RadGrid2.ClientID%>");         
        var firstDataItem = oGrid.get_detailTables()[0].get_parentRow().index; 
        alert(firstDataItem); 
        var cell = oGrid.get_masterTableView().getCellByColumnUniqueName(firstDataItem, "productID"); 
 
        alert(cell); 
      
        var oWnd = oManager.getWindowByName( "radAddRecord" ); 
        oWnd.setUrl( "popupRegtoProd.aspx?RegReqID=" + cell ); 
        oWnd.setSize(800, 400); 
        oWnd.show(); 
             
         
    } 
     

whatever is the required magic I can't seem to obtain the proper value from the productID column selected row.  Eventually I abandoned this approach and started trying to use the client events internal to Parent RadGrid in order to store the value for later use.

<ClientSettings> 
        <ClientEvents  OnHierarchyExpanding="HierarchyExpanding" /> 
</ClientSettings> 
 
 
function HierarchyExpanding(sender, eventArgs) 
 {  
     // alert("Row: " + eventArgs.get_itemIndexHierarchical() + " is being expanded"); 
     alert("attempting"); 
     var expandMe = eventArgs.get_itemIndexHierarchical() ; 
      
     $find("<%= RadGrid2.MasterTableView.ClientID %>").expandItem(expandMe); 
      
 } 

this is when I started to lose my nerve as for some reason the OnHierarchyExpanding has stoped working in Promethues!?  If I change the even to OnRowClick the event fires and I am able to get the row number that I need, however this event is not the OnHierarchyExpanding event which is the client side event that I need to make certain that I send the proper parentID to the new RadWindow.  On top of all the different routes listed above (believe me each one actually in this form post represents about 42 different iterations) I also tried changing the HierachyLoadMode around in the details GridView but that didn't seem to make any difference.  Does the matter in this case? Please help.... this is painful.  Hope someone knows how to fix this.  Thanks in advance for taking the time to read this. 

Wow at the end of all this I reread your post on hierachies and discovered that my problem was not using the HierarchyLoadMode="Client" in both the MasterTableView and the details table GridView.  Geez you guys are quick to respond, I got the answer before i even finshed my post.  If you are experiencing similar frustrations check out the post here. Again the magic is in the HierarchyLoadMode="client" on both the MasterTableView AND the detailstables GridView

Best, Andrew
geekreef
Top achievements
Rank 1
 asked on 08 Apr 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?