Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
123 views

How to remove dynamically created checkbox

for (int j = 1; j <= i; j++)
{
    CheckBox chk = new CheckBox();
    chk.ID = "ChkBox" + j.ToString();
    pHolder.Controls.Remove(chk);
}

It's not removed


Thanks Advance,
New Gene.
Rumen
Telerik team
 answered on 03 Jul 2012
0 answers
80 views
Hi, need help with this error. By reading the fixed issues on past releases i found this one:  Fixed: Error when RadGrid left arrow is pressed in edit mode and keyboard navigation is enabled.

I'm using the Q2 2011 SP1 Release, and yes it is fixed, but the error came out when pressing the right arrow.

I dont know if this is a tracked issue, but i need a way to avoid the error in my website using this release.

I have an option to make it? Maybe disabling the left and right arrows?

Thanks for your help
Carlos
Top achievements
Rank 1
 asked on 03 Jul 2012
1 answer
362 views
Hi,
I am working on a intranet solution for our customers using Telerik Ajax toolkit.

During some debugging I figured out that the pages did a couple of requests to http://aspnet-scripts.telerikstatic.com/ajaxz... where it loads javascript files from.
I was shocked seeing outgoing connections, since the project is meant to work in a local LAN without internet access.
Disconnecting my network cable and reloading the page lead to a nonworking page.
My customers will use the web application in a sealed productivity environment where an internet connection will not be accepted nor possible in the most cases.

Requesting external script files from the internet turned telerik tools from brilliant to useless for the whole project.

Please tell me there is a way to circumvent these requests, and use local web resources instead.

Kind Regards
Timo



Rumen
Telerik team
 answered on 03 Jul 2012
2 answers
263 views
Update the radgrid on the client side, then open the radwindow.

Generates errors:

Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object. Telerik.Web.UI.WebResource.axd:6 


Code C#:

using System;
 
public partial class MLDefault : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
 
    protected void rgGrid_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        if (!IsPostBack)
        {
            rgGrid.DataSource = new System.Data.DataTable();
            return;
        }
 
        var list = new[]{
            new{
                Description = "Text 1"
            },
            new{
                Description = "Text 2"
            }
        };
 
        rgGrid.DataSource = list;
    }
}


Code ASP.NET:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="MLDefault" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
 
    <script type="text/javascript">
        function OpenWindow() {
            $find('<%= rgGrid.ClientID%>').get_masterTableView().rebind();
            $find('<%= rwGrid.ClientID %>').show();
        }
    </script>
 
    <telerik:RadScriptManager ID="ScriptManager" runat="server" />
    <telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rgGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <input type="button" value="Search" onclick="javascript:OpenWindow();" />
    <telerik:RadWindowManager ID="RadWindowManager" runat="server" EnableShadow="True"
        Behaviors="None" InitialBehaviors="None" ShowContentDuringLoad="False" VisibleStatusbar="False"
        Modal="true" RestrictionZoneID="aspnetForm">
        <Windows>
            <telerik:RadWindow ID="rwGrid" runat="server" Behaviors="Close,Move">
                <ContentTemplate>
                    <telerik:RadGrid ID="rgGrid" runat="server" AutoGenerateColumns="False"CellSpacing="0"
                        GridLines="None" OnNeedDataSource="rgGrid_NeedDataSource">
                        <MasterTableView AllowSorting="False">
                            <NoRecordsTemplate>
                                <div>
                                    Empty</div>
                            </NoRecordsTemplate>
                            <Columns>
                                <telerik:GridBoundColumn DataField="Description" />
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
                </ContentTemplate>
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    </form>
</body>
</html>

Thanks for the help.
David
Top achievements
Rank 1
 answered on 03 Jul 2012
1 answer
100 views
Hi - I've been trying to convert my application from using RadCharts to using the much nicer looking RadHtmlCharts (Q2 2012 v2012.2.607.35), but have got stuck at implementing the equivalent of the RadChart's ActiveRegions (http://www.telerik.com/help/aspnet-ajax/chart-image-maps.html).

Does anyone know if the RadHtmlChart supports any form of active elements with click through to a custom url?

Thanks in advance
Tom

Marin Bratanov
Telerik team
 answered on 03 Jul 2012
12 answers
722 views

I have a server control which shows/hides a few radcombobox controls based on previous selections (within the same control).  These controls are placed inside an UpdatePanel (panel created OnInit, controls added OnLoad) to minimize full page refreshes and this all works great.

We're consolidating on RadAjax and I figured it would be a simple migration to RadAjaxPanel but when I switch in the RadAjaxPanel I'm getting full page refreshes, not just on the first select (as described in other threads) but on all control interactions.

I have set EnableAJAX to true and I have also hooked the AjaxSettingCreating event to get the default behaviour of UpdatePanel (i.e. UpdateMode = always and ChildrenAsTriggers = true).

Are there some other settings I need to make to get parity with the UpdatePanel?

Many Thanks,

Brian
Maria Ilieva
Telerik team
 answered on 03 Jul 2012
3 answers
464 views
Hi,

I have a simple button that I create at runtime.

Dim btn as New RadButton()
btn.AutoPostBack = False
btn.OnClientClicked = "BtnClicked"


function BtnClicked(sender, args)
{
       alert("Hey!");
}

When I click on the button, BtnClick is not fired. What is wrong my code?

Thanks.
Jocelyn
Top achievements
Rank 1
 answered on 03 Jul 2012
5 answers
130 views
I am upgrading 2008 Q3 version of telerik control to 2011 Q3 version in my project in .NET 4.0.  I have a RadAjaxManager used in the page that has a updated control as asp:panel. Multiple user controls are dynamically loaded in to the asp:panel. Initally all the instance of the user control displays the loading image before displaying the content. Before with 2008 version, it dislays all the user controls in top down order. but with the 2011 version it displays in bottom up which is really strange. I appreciate any suggestion on fixing this order issue. Thanks in advance!
Maria Ilieva
Telerik team
 answered on 03 Jul 2012
1 answer
214 views
Within my master page I have a RadSplitter layout. One of the Splitter panes contains the MasterPage contentholder and since the requirement called for only this area to update on the click of a navigation node item I placed an iframe within the contentholder (All content in iframe is located within the site itself). I was wondering however, if there is a way to utilize and show the RadAjaxLoadingPanel after the navigation node item has been clicked and hides when the page in the iframe is finished loading?
Eyup
Telerik team
 answered on 03 Jul 2012
6 answers
140 views
Hello,

I was wondering if there is a way to insert a new radgrid in c#. I basically want to have a grid template that i will use a bunch of times on a web page, but the amount of grids i will create depends on the data being passed. Is there a way I can achieve this?

Thanks,

Nick
Eyup
Telerik team
 answered on 03 Jul 2012
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?