Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
134 views
Hi,

I am using licensed ersion of telerik controls.
I want to use RadAjaxLoadingPanel on my page but when I drop below code, page thorws error as "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). ".
Suprizingly I used the same code in other page within the same application and it works fine.

One observation: I am not getting <telerik..> in the intellisense despite of registering '<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>'  whereas I get it on the page on which it successfully works.

 

 

 

Can you please suggest me any solution?

 

 

 

<telerik:RadAjaxLoadingPanel  ID="LoadingPanel_Main" runat="server" Transparency="30" BackColor="ControlLightLight" MinDisplayTime="3000" HorizontalAlign="Center">  
<table class="basic_text">  
<tr> 
<td style="height: 10%; width: 80%; vertical-align: middle;">  
<img alt="<%= (string)this.GetGlobalResourceObject("Resources", "LoadingMessage") %>" src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 2;" /> 
 </td> 
</tr> 
</table> 
</telerik:RadAjaxLoadingPanel> 

Thanks and Regards,

 

 

 

 

Mangesh

Mangesh
Top achievements
Rank 1
 answered on 01 Sep 2009
2 answers
132 views
Hi,

I am dynamically adding a UserControl to RadPanelItem.

And in UserControl I am registering some JavaScript block.(I am giving code is below)

Problem: I can't get the javascript function to fire.
Also, if I viewsource aspx page I can't see html code for usercontrol and javascript block.

UserControl:

<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="UserControl1.ascx.vb" Inherits="UserControl1" %>  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="Telerik" %>  
<Telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" EnableEmbeddedScripts="true" ></Telerik:RadAjaxPanel>  
<table width="100%">  
    <tr>  
        <td>  
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>     
            <asp:Button ID="buttonClear" runat="server" Text="Clear" Width="46" UseSubmitBehavior="false"  
                CausesValidation="false" OnClientClick="ClearMe();return false" />  
        </td>  
    </tr>  
</table> 

User Control Page_load Event:
        Dim script1 As New StringBuilder 
        script1.AppendLine("<script language='javascript' type='text/javascript'>") 
        script1.AppendLine("    function ClearMe(){ ") 
        script1.AppendLine("        alert();") 
        script1.AppendLine("        document.getElementById(" & TextBox1.ClientID & ").value = ''; ") 
        script1.AppendLine("</script>") 
 
        'I tried 
    'Me.Controls.Add(New LiteralControl(clearScript.ToString())) 
 
        'I tried 
        'ScriptManager.RegisterStartupScript(Parent.Page, Me.GetType(), "ClearBox", script1.ToString, True) 
 
        'I tried 
        If Not Parent.Page.ClientScript.IsStartupScriptRegistered("ClearBox") Then 
            Parent.Page.ClientScript.RegisterStartupScript(Me.GetType(), "ClearBox", script1.ToString, True) 
        End If  
Paul
Telerik team
 answered on 01 Sep 2009
0 answers
488 views
Hi guys,

While fixing one bug, we introduced another which causes the load on demand mechanism to stop working after you press more than one character in the input area of the combobox. The problem is already fixed and you can download the latest internal build from Your Account (Version Number 2009.2.831 or later).

Alternatively, you can add the following javascript code just after the ScriptManager / RadScriptManager declaration:

<script type="text/javascript"
    Telerik.Web.UI.RadComboBox.prototype.get_endOfItems = function() { return false; }; 
</script> 


Please accept our sincere apologies.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 01 Sep 2009
5 answers
130 views
Hello,

I am having an issue with a RadDock not collapsing in IE.  We have the following code:

<asp:UpdatePanel ID="UpdatePanel1" runat="server"
        <ContentTemplate> 
            <telerik:RadDockLayout ID="RadDockLayout1" runat="server" Skin="WebBlue" OnSaveDockLayout="RadDockLayout1_SaveDockLayout" 
                OnLoadDockLayout="RadDockLayout1_LoadDockLayout"
                <div class="span-15 append-1"
                    <telerik:RadDockZone ID="RadDockZone1" runat="server" MinHeight="200"
                        <telerik:RadDock ID="RadDock1" AutoPostBack="true" CommandsAutoPostBack="true" DockMode="Docked" runat="server" 
                            Title="Welcome" DefaultCommands="ExpandCollapse" > 
                            <ContentTemplate> 
                                <div class="dockWrap"
                                    <asp:Literal ID="Literal1" runat="server" meta:resourcekey="homeWelcome"></asp:Literal> 
                                </div> 
                            </ContentTemplate> 
                        </telerik:RadDock> 
                    </telerik:RadDockZone> 
                </div> 
                <div class="span-8"
                    <telerik:RadDockZone ID="RadDockZone2" runat="server" MinHeight="200"
                        <telerik:RadDock ID="RadDock2" AutoPostBack="true" CommandsAutoPostBack="true" DockMode="Docked" runat="server" 
                            meta:resourcekey="RadDockSpendYourPoints" DefaultCommands="ExpandCollapse"
                            <ContentTemplate> 
                                <uc2:SpendYourPoints ID="SpendYourPointsCtl" runat="server" /> 
                            </ContentTemplate> 
                        </telerik:RadDock> 
                    </telerik:RadDockZone> 
                </div> 
            </telerik:RadDockLayout> 
        </ContentTemplate> 
    </asp:UpdatePanel> 


It's a very simple dock layout right now, and we have seen this issue since we have first placed docks in our pages.  We have another page on our site that has an even simpler dock on it, and it does not work either.  The behavior is, in IE clicking on the collapse button does nothing, but if you drag the dock around, then click on the collapse button it works.  In Firefox the collapse button works perfectly the first time you click it.

We are using the 2009.2.701.35 version of the controls.

Thanks,
Gene
Gene
Top achievements
Rank 1
 answered on 01 Sep 2009
1 answer
110 views
I want to remove the row from the grid how to remove?

 In my grid content the 4 column last column contains the Remove button column on each row. when i click that button i want to remove that row ...

                                        <telerik:GridBoundColumn Aggregate="Sum" DataField="EstTrials" DataType="System.Int32"
                                            FooterText="Total : "  HeaderText="Trials" SortExpression="EstTrials" UniqueName="Trials :">
                                        </telerik:GridBoundColumn>

                                        <telerik:GridBoundColumn Aggregate="Sum" DataField="EstCost" DataFormatString="{0:c}" FooterText = "Total Sum"
                                            DataType="System.Decimal"  HeaderText="Cost" SortExpression="EstCost" UniqueName="Cost :">
                                        </telerik:GridBoundColumn>
                                      
                                        <telerik:GridButtonColumn ButtonType="ImageButton" HeaderText="Remove" ImageUrl="images/Delete.gif">
                                        </telerik:GridButtonColumn>




How to remove on clicking image button  ? using above code /
Vlad
Telerik team
 answered on 01 Sep 2009
1 answer
65 views
Firstly,  i have many times used

RadGrid.MasterTableView.IsItemInserted?
But i would like to know is there anything similar property to find the Details Tables inserted command on client side.
I have a Details Tables in which i have a grid which actually has checkbox. I want to make it enable and disable according to Command like we do for parent grid using above code.
Thanks in advance.

 

 

Mira
Telerik team
 answered on 01 Sep 2009
2 answers
92 views
Is there a way to change the dragged item for a RadGrid Control?  I currently have a RadGrid with a Template Column.  In this template column, I have a server control in it.  I want it so that when I drag that row, I don't see the entire control in my template column.  This is the row that is following the mouse when you do the dragging.  It would be much better if I could change that to show maybe just a row of text instead.

Kai Thao
Kai
Top achievements
Rank 1
 answered on 01 Sep 2009
2 answers
111 views
Hi,

I'm using the latest version of the Telerik controls and using the RadGrid to show a list of quotations. Dependent on the quote status I want to show/hide linkbuttons for each row depending on which is valid at the time. I have the following columns:

                   <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="View" Text="View Quote" UniqueName="lnkView" />
                   <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Edit" Text="Edit Quote" UniqueName="EditColumn" />
                   <telerik:GridButtonColumn ButtonType="LinkButton" CommandName="BuyNow" Text="Buy Now" UniqueName="BuyNowColumn" />

in the code behind I'm using grdCarQuotes_ItemCreated and grdCarQuotes_ItemDataBound to try and find the linkbutton controls to set their visibility as so:

        protected void grdCarQuotes_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
            {
                // Get car quote status
                string status = ((BLL.DTO.QuoteSummaryRow)e.Item.DataItem).Status;
                LinkButton lnk = e.Item.FindControl("lnkView") as LinkButton;
                if(status != "Quoted")
                          lnk.Visible = false;
            }
        }

However, it can't find the control. Please can you advise me on how to best achieve this simple requirement?

TIA,

Rick
Rick
Top achievements
Rank 1
 answered on 01 Sep 2009
2 answers
390 views
Hi,
I am assigning all the fields from the property of an object in my rad tab pages, and I am doing it on the load of the page. When I click on the tab, it does postback and the whole page refreshes, which is not required, as I am not sending any value to DB or any other control. Please let me know how to avaid such a autopostback or page reload on tab selection on the radtab control.

Its very urgent, please do reply soon....

Thanks,
Shameem
Shameem Jawed
Top achievements
Rank 1
 answered on 01 Sep 2009
2 answers
136 views
I am using the load on demand tabstrip example with 5 tabs. Each tab has autogenerated grid with column_created event for the column formatting. When the page loads, it loads the grid in first tab properly. When I click on the second tab, the autogenerated grid loads fine. There is a dropdown in the second tab, when the dropdown value changes, radgrid is again generated automatically depending on dropdown selected value. As I understand, whenever any server side event (like Dropdown selected index changed) is executed in second tab or any other tab, all the already loaded tabs will reload. This destroys the radgrid formatting in the first tab or any other loaded tab other than the clicked one. I noticed, during the second tab dropdown selectedindexchanged event, pageload of first tab is fired and also the radgrid_column created event in the first tab, as all the column is ExpandColumn, the formatting of the grid in first page is lost.
Everything works fine for the page except this formatting issue, can u please suggest how that problem can be solved.

Thanks.
Sebastian
Telerik team
 answered on 01 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?