Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
63 views
Dear Telerik Team!
Why All the controls are automatically down the line and use RadAjaxManager RadAjaxLoadingPanel. And if I do not use it then displays normally. I use FireFox browser. How to fix this.

This is my code:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadCboMaHang"> 
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadCboMaHang" LoadingPanelID="RadAjaxLoadingPanel1"/>                 
            </UpdatedControls> 
        </telerik:AjaxSetting>  
         
        <telerik:AjaxSetting AjaxControlID="RadCboMaHang"> 
            <UpdatedControls>                 
                <telerik:AjaxUpdatedControl ControlID="lblSessionMahang" LoadingPanelID=""/>                 
                <telerik:AjaxUpdatedControl ControlID="RadNumericTextBoxChieudaitruc" LoadingPanelID=""/> 
                <telerik:AjaxUpdatedControl ControlID="RadNumericTextBoxGm" LoadingPanelID=""/> 
            </UpdatedControls> 
        </telerik:AjaxSetting>  
    </AjaxSettings> 
</telerik:RadAjaxManager> 
 
<telerik:RadAjaxLoadingPanel  ID="RadAjaxLoadingPanel1" runat="server" Height="20px"  
            Width="20px" Transparency="5" HorizontalAlign="Center" >         
            <img style="margin-top: 10px;" alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page,  
            "Telerik.Web.UI.Skins.Default.Ajax.loading5.gif") %>' /> 
</telerik:RadAjaxLoadingPanel> 

This is my code design:
<tr> 
        <td> 
        Mã hàng:&nbsp;            
            <telerik:RadComboBox ID="RadCboMaHang" Runat="server"  
                    Height="100px" Width="110px" MarkFirstMatch="true"  
                    EnableLoadOnDemand="true" HighlightTemplatedItems="true"  
                    DataTextField="Mahang" DropDownWidth="110px" DataValueField="Mahang" 
                    ItemRequestTimeout="500" 
                    OnItemsRequested="RadCboMaHang_ItemsRequested" Skin="Outlook"  
                        TabIndex="1" AutoPostBack="True"  
                onselectedindexchanged="RadCboMaHang_SelectedIndexChanged"> 
                        <HeaderTemplate> 
                            <table style="width: 110px" cellpadding="0" cellspacing="0"> 
                                <tr> 
                                    <td style="width: 110px;"> 
                                        Mã hàng 
                                    </td> 
                                </tr> 
                            </table> 
                        </HeaderTemplate> 
                        <ItemTemplate> 
                            <table style="width: 100px" class="comboTable"  
                            cellpadding="0" cellspacing="0"> 
                                <tr> 
                                    <td style="width: 100px;" class="comboItemCell"> 
                                        <div class="comboItem"> 
                                            <%# DataBinder.Eval(Container.DataItem, "MAHANG") %> 
                                        </div> 
                                    </td>  
                                </tr> 
                            </table> 
                        </ItemTemplate> 
 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                    </telerik:RadComboBox> 
        </td> 
         
        <td> 
            Cd trục:&nbsp; 
            <telerik:RadNumericTextBox ID="RadNumericTextBoxChieudaitruc"  
                            runat="server" width="70px" AutoPostBack="false" 
                                MaxValue="1000000" MinValue="0" TabIndex="0"  
                Culture="English (United States)" Skin="WebBlue" onkeydown =  "return (event.keyCode!=13);"> 
                                <numberformat decimaldigits="2" GroupSeparator="" /> 
            </telerik:RadNumericTextBox> 
        </td> 
         
        <td> 
            Gm:&nbsp; 
            <telerik:RadNumericTextBox ID="RadNumericTextBoxGm"  
                            runat="server" width="70px" AutoPostBack="false" 
                                MaxValue="1000000" MinValue="0" TabIndex="0"  
                Culture="English (United States)" Skin="WebBlue" onkeydown =  "return (event.keyCode!=13);"> 
                                <numberformat decimaldigits="2" GroupSeparator="" /> 
            </telerik:RadNumericTextBox> 
        </td> 
/<td> 

Sincerely





<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
    <AjaxSettings> 
       <telerik:AjaxSetting AjaxControlID="RadCboMaHang"> 
            <UpdatedControls>                 
                <telerik:AjaxUpdatedControl ControlID="lblSessionMahang" LoadingPanelID=""/>                 
                <telerik:AjaxUpdatedControl ControlID="RadNumericTextBoxChieudaitruc" LoadingPanelID=""/> 
                <telerik:AjaxUpdatedControl ControlID="RadNumericTextBoxGm" LoadingPanelID=""/> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
 </AjaxSettings> 
</telerik:RadAjaxManager> 
 
 
<telerik:RadAjaxLoadingPanel  ID="RadAjaxLoadingPanel1" runat="server" Height="20px"  
            Width="20px" Transparency="5" HorizontalAlign="Center" >         
            <img style="margin-top: 10px;" alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page,  
            "Telerik.Web.UI.Skins.Default.Ajax.loading5.gif") %>' /> 
</telerik:RadAjaxLoadingPanel> 
 
         



Phuoc Nguyen Thanh
Top achievements
Rank 1
 answered on 07 May 2010
2 answers
218 views
Hi,
For the first time, I used Telerik control on my ASP web page and published it on the web server. Since then, my website stopped working. I spent one week to figure out the problem and didn't have any luck.
Now, I read number of forums and it seems the problem is related to the Telerik toolkit deployment.

I have the assemply in my bin folder. How can I create a blank WebResouce.axd on the server? Can you help please?
Here is my web config code:

.......

<

 

 

pages enableEventValidation="true" enableViewStateMac="false" viewStateEncryptionMode="Never">

 

<

 

 

controls>

 

<

 

 

add tagPrefix="data" namespace="wave3.Web.Data" assembly="wave3.Web" />

 

<

 

 

add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

 

add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

 

add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />

 

</

 

 

controls>

 

</

 

 

pages>

 

 

 

 

<httpHandlers>

 

<

 

 

add path="*/coolite.axd" verb="*" type="Coolite.Ext.Web.ResourceManager" validate="false" />

 

<

 

 

remove verb="*" path="*.asmx" />

 

<

 

 

add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

 

add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

 

add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

 

<

 

 

add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />

 

<

 

 

add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />

 

<

 

 

add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />

 

<

 

 

add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />

 

<

 

 

add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />

 

</

 

 

httpHandlers>

 

<

 

 

httpModules>

 

<

 

 

add name="AjaxRequestModule" type="Coolite.Ext.Web.AjaxRequestModule, Coolite.Ext.Web" />

 

<

 

 

add name="ASPxHttpHandlerModule" type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />

 

<

 

 

add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

 

add name="RadCompression" type="Telerik.Web.UI.RadCompression" />

 

</

 

 

httpModules>

 

<

 

 

httpRuntime maxRequestLength="7168" executionTimeout="240" />

 

 

 

 

 

</

 

 

system.web>

 

<

 

 

location path="Users/Telerik.Web.UI.WebResource.axd">

 

<

 

 

system.web>

 

<

 

 

authorization>

 

<

 

 

allow users="*"/>

 

</

 

 

authorization>

 

</

 

 

system.web>

 

</

 

 

location>

 

<

 

 

location path="Telerik.Web.UI.WebResource.axd">

 

<

 

 

system.web>

 

<

 

 

authorization>

 

<

 

 

allow users="*"/>

 

</

 

 

authorization>

 

</

 

 

system.web>

 

</

 

 

location>

 

<!--

 

 

 

The system.webServer section is required for running ASP.NET AJAX under Internet

Information Services 7.0. It is not necessary for previous version of IIS.

 

 

 

--><system.webServer>

 

<

 

 

validation validateIntegratedModeConfiguration="false" />

 

<

 

 

modules>

 

<

 

 

remove name="ScriptModule" />

 

 

<

 

 

remove name="RadCompression" /><add name="AjaxRequestModule" preCondition="managedHandler" type="Coolite.Ext.Web.AjaxRequestModule, Coolite.Ext.Web" />

 

<

 

 

add name="ASPxHttpHandlerModule" type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v9.3, Version=9.3.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />

 

<

 

 

add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

 

add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode,runtimeVersionv2.0" />

 

</

 

 

modules>

 

<

 

 

handlers>

 

<

 

 

remove name="WebServiceHandlerFactory-Integrated" />

 

<

 

 

remove name="ScriptHandlerFactory" />

 

<

 

 

remove name="ScriptHandlerFactoryAppServices" />

 

<

 

 

remove name="ScriptResource" />

 

 

<

 

 

remove name="ChartImage_axd" />

 

<

 

 

remove name="Telerik_Web_UI_SpellCheckHandler_axd" />

 

<

 

 

remove name="Telerik_Web_UI_DialogHandler_aspx" />

 

<

 

 

remove name="Telerik_RadUploadProgressHandler_ashx" />

 

<

 

 

remove name="Telerik_Web_UI_WebResource_axd" /><add name="AjaxRequestHandler" verb="*" path="*/coolite.axd" preCondition="integratedMode" type="Coolite.Ext.Web.ResourceManager" />

 

<

 

 

add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

 

add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

 

add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<

 

 

add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />

 

<

 

 

add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />

 

<

 

 

add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />

 

<

 

 

add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />

 

<

 

 

add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />

 

</

 

 

handlers>

 

<

 

 

security>

 

<

 

 

requestFiltering>

 

<

 

 

requestLimits maxAllowedContentLength="7340032" /></requestFiltering></security>

 

</

 

 

system.webServer>

 

<

 

 

runtime>

 

<

 

 

assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">

 

<

 

 

dependentAssembly>

 

<

 

 

assemblyIdentity name="System.Web.Extensions" publicKeyToken="31BF3856AD364E35" culture="neutral" />

 

<

 

 

bindingRedirect oldVersion="0.0.0.0-3.5.0.0" newVersion="3.5.0.0" />

 

</

 

 

dependentAssembly>

 

</

 

 

assemblyBinding>

 

</

 

 

runtime>

 

<

 

 

system.codedom>

 


Many thanks,
Kamal

Kamal Mostofi
Top achievements
Rank 1
 answered on 06 May 2010
1 answer
74 views
Hi

Maybe I am missing something really obvious but how do i get the menu items to expand to the left. I have a horizontal menu each item of which has items to drop down vertically - any sub items off them expand to the right how do I stop this and get them to expand to the left and have the expand arrow on the left?

Tearing my hair out at this stage so any help greatly appreciated

Regards
Kieran
Top achievements
Rank 1
 answered on 06 May 2010
2 answers
127 views
I am working with GridDropDownColumn and I need to show a treeview inside the combobox or at least be able to add some icons to each entry. I know that a good way would be to use a template column and handle everything  manually, and that is what I am trying to avoid, because it's so easy to use a dropdownColumn and rest assured that db operations as well as grouping and sorting would be taken care of automatically.

I have tried the following code:
    Private Sub grdOrderable_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles grdOrderable.ItemDataBound  
  
        If e.Item.IsInEditMode And TypeOf (e.Item) Is GridEditableItem Then  
            Dim item As GridEditableItem = e.Item  
  
            Dim catEditor As GridDropDownListColumnEditor = item.EditManager.GetColumnEditor("OrderableCatCode")  
            For Each i As RadComboBoxItem In catEditor.ComboBoxControl.Items  
                i.ImageUrl = GetCatIcon(i.Value)''query the db to get the type and choose an icon  
                i.Text = GetCatStartString(i.Value) & i.Text''insert some '-' characters  
            Next  
  
        End If  
    End Sub  

and the result can be seen in the attached picture and it does not look very elegant. (because it is not a treeview)
Should I go for the template column solution or do you suggest a better one?

Thank you very much.
Safa
Safa Amini
Top achievements
Rank 1
 answered on 06 May 2010
6 answers
287 views
Hi

When I try to dynamically add a RadTreeView to a page, VS returns a JScript error, inside the Telerik.Web.UI.RadTreeView._preInitialize function.

This is my page :

<body> 
    <form id="form1" runat="server"> 
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
        </telerik:RadScriptManager> 
    </div> 
    </form> 
</body> 

my code-behind :

namespace DynamicTreeViewTest 
{ 
    public partial class _Default : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            Telerik.Web.UI.RadTreeView testtree = new Telerik.Web.UI.RadTreeView(); 
            testtree.ID = "testtree"; 
            Telerik.Web.UI.RadTreeNode testnode = new Telerik.Web.UI.RadTreeNode("Node 1"); 
            testtree.Nodes.Add(testnode); 
            this.Controls.Add(testtree); 
        } 
    } 
} 

VS throws a null exception error, but the text is :

Microsoft JScript runtime error: 'null' is null or not an object

This is the code where the exception is thrown (line indicated) :

Telerik.Web.UI.RadTreeView._preInitialize=function(_219,_21a){ 
var _21b=$get(_219); 
_21b.scrollTop=_21a; <-- Error
if(Telerik.Web.UI.RadTreeView._isRtl(_21b)){ 
Telerik.Web.UI.RadTreeView._initializeRtl(_21b); 
} 
}; 

I've downloaded the new version of the controls (2008 Q2 1001), but they cause the same error.









James
Top achievements
Rank 1
 answered on 06 May 2010
10 answers
507 views
Hi All

I have a radgrid with first name, middle name, last name and date of Birth

All the data is taken from the table to grid

Then I have Two button Export to Excel,Export to pdf

While I click this button, the datas are shown in the excel sheet.

But The column Date of Birth appears with some numbers ex: 38843.00

While I click Export to pdf this it shows the correct date.

-Anto 
Mike
Top achievements
Rank 1
 answered on 06 May 2010
2 answers
133 views
Hi.

Is it possible to have a chart where each point is another chart itself?

For example, a bubble chart with each bubble/point being an individual pie chart. (see attached image)

Mbott
Top achievements
Rank 1
 answered on 06 May 2010
2 answers
168 views
How can I get Group Titles (based on the dataset) into my listview?

The H2 in my Group Template doesn't appear to work, but the data IS in the dataset

 <telerik:RadListView ID="imageListView" runat="server" onneeddatasource="imageListView_NeedDataSource" 
                                 ItemPlaceholderID="mainImagesContainer" GroupPlaceholderID="GroupContainer"> 
 
                <LayoutTemplate> 
                    <asp:PlaceHolder ID="GroupContainer" runat="server" /> 
                </LayoutTemplate> 
 
                <GroupTemplate> 
                    <h2><%# Eval("LibraryName")%></h2> 
                    <asp:PlaceHolder ID="mainImagesContainer" runat="server" /> 
                </GroupTemplate> 
 
                <ItemTemplate> 
                    <div class="imageContainer"> 
                        <asp:Image ID="image" runat="server" CssClass="imageItem" ImageUrl='<%# Eval("ImageURL") %>' EnableViewState="false" /><br /> 
                        <asp:CheckBox ID="check" runat="server" CssClass="checkItem" EnableViewState="false" /> 
                        <asp:Label ID="name" runat="server" CssClass="imageName" EnableViewState="false" Text='<%# Eval("ImageTitle") %>' /> 
                    </div> 
                </ItemTemplate> 
            </telerik:RadListView> 

Is this just not supported?
Sean Sparkman
Top achievements
Rank 2
 answered on 06 May 2010
1 answer
123 views
I am using the built in PDF export functionality of RadEditor, and there's a need to have a table. I've found that because of some issues between the PDF export tool, that a filter needs to be run to add some tags, as per http://www.telerik.com/community/forums/aspnet-ajax/editor/html-to-pdf-shows-blank.aspx and http://www.telerik.com/community/forums/aspnet-ajax/editor/export-to-pdf-doc.aspx

However, when I added the JavaScript code, I get an error on the line: 
MyFilter.registerClass('MyFilter', Telerik.Web.UI.Editor.Filter); 

The error being 'Telerik is not defined'. I'm not entirely sure if there is an extra requirement to use the registerClass method. There are other Telerik controls on the page, and they do not throw any errors and work as expected without this line of code being there. 

Thanks for any suggestions. 
Sergey
Top achievements
Rank 2
 answered on 06 May 2010
4 answers
163 views

I am having the following Isuues while using RAD Grid & RAD Combo

1. How to remove the space between grid columns. (Shown in attached Image 'which are marked in red color').

2. Is it possible to reduce the RAD Combo TextBox height (Shown in attached Image).

<telerik:RadGrid ID="RadGrid1" runat="server" CellPadding="0" AutoGenerateColumns="False" 
                            GridLines="None" ShowHeader="False" AllowMultiRowEdit="True" CellSpacing="0" 
                            TabIndex="19">  
                            <MasterTableView EditMode="InPlace">  
                                <Columns> 
                                    <telerik:GridTemplateColumn ItemStyle-Width="155px">  
                                        <ItemTemplate> 
                                            <telerik:RadComboBox ID="tcbNumberType" runat="server" Width="153px" Height="13px">  
                                            </telerik:RadComboBox> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn ItemStyle-Width="30px">  
                                        <ItemTemplate> 
                                            <asp:TextBox runat="server" ID="txtAreacode" Width="27px" Height="13px"></asp:TextBox> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn ItemStyle-Width="58px">  
                                        <ItemTemplate> 
                                            <telerik:RadTextBox runat="server" ID="ttxtPhoneNo" Width="56px" Height="13px">  
                                            </telerik:RadTextBox> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn ItemStyle-Width="10px">  
                                        <ItemTemplate> 
                                            <asp:Label runat="server" ID="lblExt" Text="x" Width="7px"></asp:Label> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn ItemStyle-Width="46px">  
                                        <ItemTemplate> 
                                            <telerik:RadTextBox runat="server" ID="ttxtExtension" Width="44px" Height="13px">  
                                            </telerik:RadTextBox> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn ItemStyle-Width="45px" HeaderStyle-Width="45px">  
                                        <ItemTemplate> 
                                            <asp:Label runat="server" ID="lblEmail" Text="E-mail :" Width="45px"></asp:Label> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn ItemStyle-Width="235px">  
                                        <ItemTemplate> 
                                            <telerik:RadTextBox runat="server" ID="ttxtEmailAddress" Width="233px" Height="13px">  
                                            </telerik:RadTextBox> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                </Columns> 
                            </MasterTableView> 
 
        </telerik:RadGrid> 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
        Dim dtContact As DataTable = New DataTable("Contact")  
        Dim row As DataRow = Nothing 
        ' add columns  
        dtContact.Columns.Add("id", Type.GetType("System.Int32"))  
        dtContact.Columns.Add("NumberType", Type.GetType("System.String"))  
        dtContact.Columns.Add("AreaCode", Type.GetType("System.String"))  
        dtContact.Columns.Add("PhoneNumber", Type.GetType("System.String"))  
        dtContact.Columns.Add("Extension", Type.GetType("System.String"))  
        dtContact.Columns.Add("EmailAddress", Type.GetType("System.String"))  
 
        ' set PrimaryKey  
        dtContact.Columns("id").Unique = True 
        dtContact.Rows.Add(1, "", "", "", "", "")  
        dtContact.Rows.Add(2, "", "", "", "", "")  
 
        RadGrid1.DataSource = dtContact  
        RadGrid1.DataBind()  
 
    End Sub 
 
    Protected Sub Page_PreRender1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender  
        If Not Page.IsPostBack Then 
            For Each item As GridDataItem In RadGrid1.Items  
                item.Edit = True 
            Next 
            RadGrid1.Rebind()  
        End If 
 
    End Sub 
Ramesh kumar Kuppusamy
Top achievements
Rank 1
 answered on 06 May 2010
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?