Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
107 views
I have a RadGrid where each item has a NestedViewTemplate so that the user can click on a row and it will expand to show the details for that item.  This was working fine for over a year, but recently I decided to update my controls to the current version (2009.1.527.35) and now, whenever I click on a row to expand it, then entire grid disappears and all I see is one horizontal line (could be the border?).  I've tried debugging by putting a breakpoint in the ItemCommand method for that grid, but it never gets there.  I have Ajaxified the grid, so I removed the Ajax to see if it was that, but it still does the same thing, even with a full postback. 

This page happens to be the most complex page in my entire application.  It includes a couple user controls and has code spread through several files including one Javascript file for client-side functions.  So it would be difficult to reproduce this in a sample project.  I did pull out the pertinent code and put it into a test page, but it worked fine in the test!  I also removed the reference to the Javascript file, but it still does the same thing.  If I had some idea of where to put a breakpoint, I'd be happy to debug it myself, but it doesn't seem to matter where I put it, it just doesn't touch the server-side code before it collapses into nothing...

UPDATE: Disregard, I just needed to add a NeedDataSource for the grid and everything's working now...
Software
Top achievements
Rank 1
 asked on 16 Jun 2009
0 answers
111 views
Hi,
I Use ToolTip in RadGrid client side calling webservices as demo sample (Webservices and RadGrid). I have some problems to open the ToolTip ( many times closed before open completed if position right), my webservices are called many times generating overload of server and my style come so late generating one flash effect.
-I need some help to generate only one open event on onmouseover and close my tooltip onmouseout.
-how perform the loading time of style sheet client side (no code allowed backside).
Thanks for help, Regards.

<script type="text/javascript">     
       function DisplayDetails() 
        { 
            var divDetails = document.getElementById('divDetails'); 
            divDetails.style.display = "inline"
        } 
        function CloseActiveToolTip() 
        { 
            setTimeout(function(){ 
                var tooltip = Telerik.Web.UI.RadToolTip.getCurrent(); 
                if (tooltip) tooltip.hide(); 
            }, 1000); 
        } 
        function showToolTip(element,cntid) 
        { 
           var tooltipManager = $find("<%= RadToolTipManager1.ClientID %>"); 
           if (!tooltipManager) return; 
           var tooltip = tooltipManager.getToolTipByElement(element); 
           if (!tooltip) 
           { 
               tooltip = tooltipManager.createToolTip(element); 
               tooltip.set_value(cntid); 
           } 
           element.onmouseover = null
           tooltip.show(); 
        } 
 
</script> 
 

 
<telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Position="right" 
            RelativeTo="Element" Width="350px" Height="260px" Animation="Resize" HideEvent="LeaveToolTip" 
            Skin="WebBlue"
            <WebServiceSettings Path="~/WebService.asmx" Method="GetCartesPubReg" Runat="Server" /> 
    </telerik:RadToolTipManager> 

My gridTemplate
<telerik:ClientTemplate Name="View" runat="server"
            <href="ItemViewUrl" onmouseover="showToolTip(this,'{#ID#}');">{#MetaFields.Title#}</a> 
        </telerik:ClientTemplate> 



Pierre
Top achievements
Rank 1
 asked on 16 Jun 2009
1 answer
170 views

OK you may be confused by the title of the post, but I didn't really know how to express a good title for the post.

Here's what I have, I've got a nested grid in a grid and on events such as item_databound of the nested grid I need to find the parent row of the nested grid.

I've found a convoluted way in finding it, but I'm sure there's a simpler way, here's how I do it on the item_databound:

DirectCast(e.Item.Parent.Parent.Parent.Parent.Parent.Parent, Telerik.Web.UI.GridNestedViewItem).ParentItem

I have a similar convoluted way in getting this in a rowdrop event from the nested grid's

DirectCast(e.DragedItems(0).Parent.Parent.Parent.Parent.Parent.Parent, Telerik.Web.UI.GridNestedViewItem).ParentItem

Here's a quick example of what I'm doing:

Public Sub rdgInvoices_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) 'Handles rdgInvoices.ItemDataBound  
        Static Total As Double  
 
        If TypeOf e.Item Is Telerik.Web.UI.GridDataItem Then  
(e.Item.Parent, "TelerikForAjax")  
 
            Dim gdiParent As Telerik.Web.UI.GridDataItem = DirectCast(e.Item.Parent.Parent.Parent.Parent.Parent.Parent, Telerik.Web.UI.GridNestedViewItem).ParentItem  
 
            If DirectCast(gdiParent.FindControl("lblDirectExpense"), Label).Text = "1" OrElse DirectCast(e.Item.FindControl("lblDirectExpense"), Label).Text = "1" Then  
                With e.Item  
                    DirectCast(.FindControl("lblInvoice"), Label).Visible = False 
                    With DirectCast(.FindControl("txtInvoice"), TextBox)  
                        .Visible = True 
                        ' ''On Error Resume Next  
                        ' ''.Attributes.Remove("updateDE")  
                        ' ''On Error GoTo 0  
                        ' ''.Attributes.Add("onChange", "updateDE('" & directcast(e.Item.FindControl("txtInvoice"), Label).ClientID & "', '" & & "')")  
                    End With  
                    Dim rdg As Telerik.Web.UI.GridDataItem = ParentRow(e.Item.Parent, "TelerikForAjax")  
 
                    With DirectCast(.FindControl("txtAmount"), TextBox)  
                        .Attributes.Add("onChange", "updateDE('" & DirectCast(e.Item.FindControl("lblAmount"), Label).ClientID & "','" & DirectCast(.FindControl("txtAmount"), TextBox).ClientID & "', '" & DirectCast(rdgCategoryBudget.Items(CurrentCategoryRow).FindControl("txtReconciled"), TextBox).ClientID & "', '" & DirectCast(rdg.FindControl("txtReconciled"), TextBox).ClientID & "', '" & DirectCast(rdgCategoryBudget.Items(CurrentCategoryRow).FindControl("lblSavings"), Label).ClientID & "', '" & DirectCast(rdgCategoryBudget.Items(CurrentCategoryRow).FindControl("lblTotal"), Label).ClientID & "')")  
                        .ReadOnly = Not AllowReconciliation  
                    End With  
 
                End With  
      End If  
 
End Sub 
Alex
Top achievements
Rank 2
 answered on 16 Jun 2009
10 answers
325 views
I'm using a RadGrid inside a RadAjaxManager that has its LoadingPanelID="LoadingPanel1".  This is on a page that is part of master page setup, but is NOT the master page.

The master page is the page where the loading panel is defined, as follows:
<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Transparency="75" 
        MinDisplayTime="500" BackColor="#E0E0E0">  
        <img src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading6.gif") %>' 
            alt="Loading..." style="border: 0; margin-top: 40px;" /> 
    </telerik:RadAjaxLoadingPanel> 

This control works great nearly all the time except when using the filtering options on said grid.  What happens, is that sometimes, not all the time, when you specify a filter on a column, the Loadingpanel comes up fine, the grid filter results are shown, and control is returned to the browser, however, the loading panel never goes away.  It happens I'd say about 1 in 5 times, the other times its fine. 

Am I using the panel wrong, or is there some known issue?  I'm using 2008Q3 version of the controls.

Thanks,
Marty
David Tsao
Top achievements
Rank 1
 answered on 16 Jun 2009
2 answers
94 views
Hi,
          I am generating dock windows dynamically and trying to put them on a rad sliding pane using a placeholder but the problem i am facing is that if I generate three windows they exceed the margins.The dock windows are exceeding the boundaries of the pane and are not being rendered within the pane but outside.
Please let me know if there is a solution to this problem.

Thanks.
Ajit
ajit
Top achievements
Rank 1
 answered on 16 Jun 2009
1 answer
119 views
I have built my own advanced edit form and I would like to apply the same css styles to the controls that I use elsewhere in my site.  I have edited the "SchedulerDefaultForm" - I've removed the css classes such as "textareawrapper" and added my own div tags with the names of my css styles.  However, the same markup added inside and outside of the scheduler control displays differently, which tells me there is still some default scheduler styles conflicting with my own styles, even though none of the original css class names remain in any of my code.

I have not copied over any css from the demos and I would like to tell the scheduler control to not use any of the default styling included in it.  I have played with the EnableEmbeddedBaseStylesheet, EnableEmbeddedSkins, and some other properties of the scheduler control but it has made only slight changes in the way the code is rendered and I still have the same problem.  Is there not a way to get the scheduler to display with zero styling so that I can add my own?

Thanks,
Laura

Peter
Telerik team
 answered on 16 Jun 2009
2 answers
161 views
Hi,
I am trying to access the selected value of a radiobuttonlist which is placed inside a radgrid. The problem is that the control is directly in radgrid>MasterTableView>ItemTemplate. It is not in a TemplateColumn or anything of the sort. I tried acessing it directly through the name of the radgrid "FichaConteudo" but I get the error "Object reference not set to an instance of an object." so I figure I'm not accessing the control in the correct way. Here is part of my aspx code:

<telerik:RadGrid ID="FichaConteúdo" DataSourceID="GET_DETAILS_CONTEUDO" runat="server"
                GridLines="None" MasterTableView-CommandItemStyle-BorderColor="Transparent" BorderColor="transparent" ShowHeader="False">
                <MasterTableView TableLayout="Fixed" CellSpacing="-1" DataSourceID="GET_DETAILS_CONTEUDO" >
                    <ItemTemplate>
                    <p></p>
                            <asp:RadioButtonList ID="RadioBtnListTipo" runat="server" DataSourceID="GET_TIPOS" DataTextField="Tipo" DataValueField="Tipo" />
...

Here is how I am trying to access the control:

 

RadioButtonList myRadioBtnListTipo = (RadioButtonList) FichaContedo.FindControl("RadioBtnListTipo");

Thank you for your help!
Marta

 

Marta
Top achievements
Rank 1
 answered on 16 Jun 2009
5 answers
319 views
Hi,
I need to define different WorkDayStartTime and WorkDayEndTime on different days
Example:
Sunday 10:00 - 17:00
Monday 12:00-18:00
and so on...

Can this be done?
if yes, how?
Regards,
Mickey
Peter
Telerik team
 answered on 16 Jun 2009
2 answers
68 views
We've just converted several tools over to ASP.NET AJAX Q1 2009. After an extremely long and tedious road we've got most of the tools converted. However it appears the RadAjax adds a wrapper div around ajax'd controls. The wrapper div has a id of "control prefix + panel". (ie. <div id='ctl00_DefaultContentPanel' style='display:block'>).

Of course, adding an arbitrary block-level element is going to break a UI in many circumstances. Is there a workaround, or at the very least a way to add a style class so we can control it?
Michael
Top achievements
Rank 1
 answered on 16 Jun 2009
3 answers
103 views
Hi

Instead of binding all the month records to my rad schedular.i want to bind the particular month records only.
When the first time load i will get only the current month record only from the database and show it in the rad schedular.
when the user navigate to the next or prev month.i want to get the particular month record from the database and bind it to radschedular for performance.How can i acheive it?

I want to show the rad calendar in my rad schedular header.user can navigate to what ever date they want here also i want to load on demand.

Regards
Vairam

Peter
Telerik team
 answered on 16 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?