Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
122 views
Hy
I have a radgrid and i want to filter the grid dynamically from the c#.
I also need to "sort" and "group by" the grid and i succeed to do that but i cudn't  succeed to filter it.

ReportGeneratorRadGrid.MasterTableView.Columns.FindByUniqueName("xxx").CurrentFilterFunction = GridKnownFunction.EqualTo;
ReportGeneratorRadGrid.MasterTableView.Columns.FindByUniqueName("xxx").CurrentFilterValue = "Open";
ReportGeneratorRadGrid.Rebind()


I can see the parameters that i put but the data isn't actually filtered.
How can i do it. 
Thnks alot
Ezra
Yavor
Telerik team
 answered on 08 Apr 2010
6 answers
296 views
Hello Telerik Team,

I'm hoping the answer to this would be yes.
Can i have certain nodes' orientation set to horizontal based on an attribute value on the node? If so how can I achieve this?
I looked at this forum post but couldn't really figure how i could achieve that only for few nodes based on a condition.
I would really appreciate any help.

Thanks much,
Phani

Yana
Telerik team
 answered on 08 Apr 2010
7 answers
466 views
I have a function that adds dynamic controls to an RadAjaxPanel.  The dynamic controls are RadComboBox and some others.  Everything is working as expected.  On page postbacks, the values for these controls are properly set.

Outside of the panel is a button.  If the user selects this button, the contents of the RadAjaxPanel are modified.  The update panel looks great at the end of this postback, as it has the new control and data.  The problem happens on a subsequent postback.  During the next postback the update panel is recreated with the correct controls however the data/viewstate for the controls is gone.  I can only assume that the controls that were added during a postback client event to the update panel did not save the viewstate. 

The subsequent postback does not contain the state for the control that was added.  My sample code is below.  Here is how to see the problem:

1. The page displays with two comboboxes.
2.  Select an item in the first combobox and the second one repopulates.  This is working as expected.
3.  Press the button on the page and the update panel is created with a single combobox and a new set of values.  This is working as expected.
4.  Press the button again, as this time it just implements a standard postback with no changes.  THe combobox no longer has its values.

Since the viewstate of the objects happens after the PreRender event, there is no reason why the state should not be saved.  What is happening?

<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeFile="Trials.aspx.cs" Inherits="Reporteratti.Trials" %> 
<html> 
<head runat="server">  
          
    </head> 
<body> 
    <form id="form1" runat="server">  
<asp:ScriptManager runat="server" ID="ScriptManager1">  
   <Scripts> 
       <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
       <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
       <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> 
   </Scripts></asp:ScriptManager> 
This page is for trying stuff  
    <telerik:RadAjaxPanel ID="updatePanel" runat="server"   
        HorizontalAlign="NotSet"  > 
    </telerik:RadAjaxPanel> 
    <asp:Button ID="Button2" runat="server"   
        Text="Cause a Postback changing the update panel contents" onclick="Button2_Click" />   
    </form> 
</body> 
</html> 
 

namespace Reporteratti  
{  
 
    using System;  
    using System.Collections.Generic;  
    using System.Linq;  
    using System.Web;  
    using System.Web.UI;  
    using System.Web.UI.WebControls;  
    using Telerik.Web.UI;  
    using System.Collections.Specialized;  
 
    public partial class Trials : System.Web.UI.Page  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            RadComboBox cmb1;  
            RadComboBox cmb2;  
            RadComboBox cmbX;  
            // Rebuild the dynamic controls based on which should be shown  
            if (Session["page"] == null)  
            {  
                cmb1 = new RadComboBox();  
                cmb1.ID = "first";  
                updatePanel.Controls.Add(cmb1);  
                cmb1.AutoPostBack = true;  
                cmb1.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(cmb1_SelectedIndexChanged);  
 
                cmb2 = new RadComboBox();  
                cmb2.ID = "second";  
                cmb2.AutoPostBack = true;  
                cmb2.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(cmb1_SelectedIndexChanged);  
 
                updatePanel.Controls.Add(cmb2);  
 
                if (!this.IsPostBack)  
                {  
                    cmb1.Items.Add(new RadComboBoxItem("Item A", "1"));  
                    cmb1.Items.Add(new RadComboBoxItem("Item B", "2"));  
                    cmb1.Items.Add(new RadComboBoxItem("Item C", "3"));  
 
                    cmb2.Items.Add(new RadComboBoxItem("Item M", "1"));  
                    cmb2.Items.Add(new RadComboBoxItem("Item N", "2"));  
                    cmb2.Items.Add(new RadComboBoxItem("Item O", "3"));  
                }  
 
            }  
            else  
            {  
                cmbX = new RadComboBox();  
                cmbX.ID = "NewPage";  
                updatePanel.Controls.Add(cmbX);  
 
                // This combobox is only filled in the selected event  
            }  
 
        }  
 
        void cmb1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)  
        {  
            string sSelect = e.Text;  
            string sValue = e.Value;  
 
            RadComboBox dd = (RadComboBox)o;  
 
            if (dd.ID == "first")  
            {  
                RadComboBox cmb2 = updatePanel.FindControl("second") as RadComboBox;  
 
                if (cmb2 != null)  
                {  
                    cmb2.Items.Clear();  
                    cmb2.Items.Add(new RadComboBoxItem("Item P", "5"));  
                    cmb2.Items.Add(new RadComboBoxItem("Item Q", "6"));  
                    cmb2.Items.Add(new RadComboBoxItem("Item R", "7"));  
                }  
            }  
 
 
        }  
        protected void Button2_Click(object sender, EventArgs e)  
        {  
            // If the second page is not showing, show it.  
            // If the page is already showing, do nothing and act like a single postback  
 
            if (Session["page"] == null)  
            {  
                // Clear the update panel  
                // Create the single combobox  
                // Fill the combobox  
                updatePanel.Controls.Clear();  
 
                RadComboBox cmbX = new RadComboBox();  
                cmbX.ID = "NewPage";  
                updatePanel.Controls.Add(cmbX);  
 
                cmbX.Items.Clear();  
                cmbX.Items.Add(new RadComboBoxItem("Item XXX", "14"));  
                cmbX.Items.Add(new RadComboBoxItem("Item YYY", "32"));  
                cmbX.Items.Add(new RadComboBoxItem("Item ZZZ", "23"));  
                Button2.Text = "Cause a postback";  
                Session["page"] = 2;  
            }  
 
 
        }  
}  
}  
 


Iana Tsolova
Telerik team
 answered on 08 Apr 2010
3 answers
69 views
Hello,

With javascript, I can change the maxLength of an edited node's input textbox, but it appears that only 50 characters of the edited text are actually saving.  Is there a way to increase the maximum length to something greater than 50, say 255?

Thanks,
Ian
Dimitar Milushev
Telerik team
 answered on 08 Apr 2010
3 answers
119 views
There seems to be some issues with an Ajaxified RadGrid when using WebKit Browsers like Safari or Chrome. Both seem to issue back to back requests (and way too many responses); these are not present in IE or Firefox. This is causing an issue due to the fact the loading panel is immediately turned off after the first response, while second request continues to process with no panel (which allow our users to access to areas they should not have while data is being processed). We're currently using Q2-2009 controls in the affected project.

The sample below is setup such that a user may end their filter entry with ENTER, which kicks off an onclick event for a hidden button. This is done so a known control causes the request and can be identified on response. Attempting to decipher which internal RadGrid element caused the response is a bit cumbersome. You will notice that IE and Firefox only deal with the hidden button, while Chrome and Safari seem to push the RadGrid Filter Textbox into the mix. Is there any work around for these browsers? Is this a known issue?

SafariAjaxRequestProblems.zip


*** Please note this issue is not isolated to the RadGrid (we have seen it happen it other places), but this example was easy to pull out of our main project. I'm sure if we can solve this issue, we will be able to remedy it in other areas as well. I've already generated a much simpler sample and issued it in the radinput forum as this seems to be the direct source of the problem.
Iana Tsolova
Telerik team
 answered on 08 Apr 2010
3 answers
234 views
Hi Telerik

I am using four levels Hierarchical grid. here i need to disabled all the level's grid edit and delete button if a item is being editted in any level. i mean if 4th level grid data is in edit mode then the edit/delete button in 1st,2nd and 3rd level grid should be disabled. i tried it but i am able to find grid EditItem itself in ItemDataBound. Below is my Code in aspx page.
 <telerik:RadGrid ID="rdGOSTView" runat="server" AllowPaging="true" PageSize="3" AllowSorting="True" 
                    OnDetailTableDataBind="rdGOSTView_DetailTableDataBind" OnNeedDataSource="rdGOSTView_NeedDataSource" 
                    OnPreRender="rdGOSTView_PreRender" OnDeleteCommand="rdGOSTView_DeleteCommand" 
                    OnInsertCommand="rdGOSTView_InsertCommand" OnItemCreated="rdGOSTView_ItemCreated" 
                    OnItemDataBound="rdGOSTView_ItemDataBound" OnUpdateCommand="rdGOSTView_UpdateCommand" 
                    OnItemCommand="rdGOSTView_ItemCommand">  
                    <GroupingSettings CaseSensitive="false" /> 
                    <FilterItemStyle HorizontalAlign="Left" /> 
                    <HeaderStyle HorizontalAlign="Center" ForeColor="Black" Font-Bold="true" Font-Size="10px" 
                        Font-Names="Verdana" /> 
                    <AlternatingItemStyle Font-Size="10px" Font-Names="verdana" /> 
                    <ItemStyle HorizontalAlign="Left" Font-Size="10px" Font-Names="verdana" /> 
                    <PagerStyle Mode="NumericPages"></PagerStyle> 
                   <GroupHeaderItemStyle HorizontalAlign="Left" Width="15px" VerticalAlign="Middle" /> 
                   <GroupingSettings ExpandTooltip="Expand" CollapseTooltip="Collapse"/>  
                    <MasterTableView DataKeyNames="GoalID" Width="100%" CommandItemDisplay="Top" Name="Goals" 
                        EditMode="EditForms" AutoGenerateColumns="false" TableLayout="Fixed" HierarchyLoadMode="ServerBind">  
                        <%--Goal Grid Starts--%> 
                        <DetailTables> 
                            <%--Objective Grid Starts--%> 
                            <telerik:GridTableView DataKeyNames="GoalID,ObjectiveID" Width="100%" runat="server" 
                                AutoGenerateColumns="false" CommandItemDisplay="Top" Name="Objectives" EditMode="EditForms">  
                                <ParentTableRelation> 
                                    <telerik:GridRelationFields DetailKeyField="GoalID" MasterKeyField="GoalID" /> 
                                </ParentTableRelation> 
                                <DetailTables> 
                                    <%--Strategy Grid Starts--%> 
                                    <telerik:GridTableView DataKeyNames="GoalID,ObjectiveID,StrategyID" Width="100%" 
                                        AutoGenerateColumns="false" runat="server" CommandItemDisplay="Top" Name="Strategy" 
                                        EditMode="EditForms">  
                                        <ParentTableRelation> 
                                            <telerik:GridRelationFields DetailKeyField="ObjectiveID" MasterKeyField="ObjectiveID" /> 
                                        </ParentTableRelation> 
                                        <DetailTables> 
                                            <%--Tactics Grid starts--%> 
                                            <telerik:GridTableView DataKeyNames="GoalID,ObjectiveID,StrategyID,TacticsID" Width="100%" 
                                                AutoGenerateColumns="false" runat="server" CommandItemDisplay="Top" Name="Tactics" 
                                                EditMode="EditForms">  
                                                <ParentTableRelation> 
                                                    <telerik:GridRelationFields DetailKeyField="StrategyID" MasterKeyField="StrategyID" /> 
                                                </ParentTableRelation> 
                                                <Columns> 
                                                    <%--Tactics Grid Column--%> 
                                                    <telerik:GridBoundColumn DataField="GoalID" UniqueName="GoalID" HeaderText="GoalID" 
                                                        Visible="false">  
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn DataField="ObjectiveID" UniqueName="ObjectiveID" HeaderText="ObjectiveID" 
                                                        Visible="false">  
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn DataField="StrategyID" UniqueName="StrategyID" HeaderText="StrategyID" 
                                                        Visible="false">  
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn DataField="TacticsID" UniqueName="TacticsID" HeaderText="TacticsID" 
                                                        Visible="false">  
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn DataField="PriorityOrder" UniqueName="PriorityOrder" HeaderText="#" 
                                                        Visible="true" ItemStyle-Width="20px" CurrentFilterFunction="EqualTo" AutoPostBackOnFilter="true" 
                                                        FilterControlWidth="20px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">  
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridTemplateColumn HeaderText="Tactics" Visible="true" UniqueName="Tactics" 
                                                        ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center">  
                                                        <ItemTemplate> 
                                                            <asp:Label ID="lblTac" runat="server" Text='<%#Bind("Tactics")%>'></asp:Label> 
                                                        </ItemTemplate> 
                                                    </telerik:GridTemplateColumn> 
                                                    <telerik:GridBoundColumn DataField="PointPersonName" UniqueName="PointPerson" HeaderText="Point Person" 
                                                        Visible="true" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center" 
                                                        CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" ItemStyle-Wrap="true">  
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn DataField="TimeFrame" UniqueName="TimeFrame" HeaderText="Time Frame" 
                                                        Visible="true" ItemStyle-Width="150px" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center">  
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridBoundColumn DataField="OtherPointPerson" UniqueName="OtherPointPerson" 
                                                        HeaderText="OtherPointPerson" Visible="false">  
                                                    </telerik:GridBoundColumn> 
                                                    <telerik:GridTemplateColumn UniqueName="PriorityStatus" HeaderText="Status" DataField="StatusID" 
                                                        ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="30px" 
                                                        Visible="true" AllowFiltering="false">  
                                                        <ItemTemplate> 
                                                            <asp:ImageButton ID="btnStatus" runat="server" ImageUrl='<%#Bind("logopath")%>' ToolTip='<%#Bind("Status")%>' /> 
                                                        </ItemTemplate> 
                                                    </telerik:GridTemplateColumn> 
                                                    <telerik:GridTemplateColumn HeaderText="Edit" UniqueName="EditCommandColumn" HeaderStyle-HorizontalAlign="Center" 
                                                        ItemStyle-HorizontalAlign="Center" AllowFiltering="false">  
                                                        <ItemTemplate> 
                                                            &nbsp;<asp:ImageButton ID="btnEdit" ToolTip="Edit" runat="server" ImageUrl="~/images/Edit.gif" 
                                                                CommandName="Edit" CssClass="MyImageButton" Enabled="true" />&nbsp;  
                                                        </ItemTemplate> 
                                                        <ItemStyle Width="40px" HorizontalAlign="Center" /> 
                                                        <HeaderStyle Width="40px" HorizontalAlign="Center" /> 
                                                    </telerik:GridTemplateColumn> 
                                                    <telerik:GridTemplateColumn HeaderText="Delete" UniqueName="DeleteCommandColumn" 
                                                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowFiltering="false">  
                                                        <ItemTemplate> 
                                                            &nbsp;<asp:ImageButton ID="btnDelete" ToolTip="Delete" runat="server" ImageUrl="~/images/Delete.gif" 
                                                                CommandName="Delete" CssClass="MyImageButton" Enabled="true" />&nbsp;  
                                                        </ItemTemplate> 
                                                        <ItemStyle Width="40px" HorizontalAlign="Center" /> 
                                                        <HeaderStyle Width="40px" HorizontalAlign="Center" /> 
                                                    </telerik:GridTemplateColumn> 
                                                </Columns> 
                                                <CommandItemTemplate> 
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">  
                                                        <tr> 
                                                            <td width="40%" align="left" style="padding-left: 10px">  
                                                                <%--   <asp:CheckBox ID="chkViewFilter" runat="server" Checked="false" onclick="showFilterItemGrid2(this)" /> 
                                                        <asp:Label ID="Label4" runat="server" Text=" Show Filter"></asp:Label>--%> 
                                                                <asp:Label ID="lblTactics" runat="server" Text="Tactics"></asp:Label> 
                                                            </td> 
                                                            <td align="right" style="padding-right: 15px">  
                                                            </td> 
                                                            <td align="right" width="60%">  
                                                                <asp:Image ID="Imge" ImageUrl="~/Images/AddRecord.gif" runat="server" /><asp:LinkButton  
                                                                    ID="btn_Add" Font-Size="10px" Text="Add New" Font-Underline="true" runat="server" 
                                                                    CommandName="InitInsert" Enabled="true" ToolTip="Add New Record"></asp:LinkButton> 
                                                            </td> 
                                                        </tr> 
                                                    </table> 
                                                </CommandItemTemplate> 
                                                <EditFormSettings PopUpSettings-Modal="true" PopUpSettings-Width="810px" EditFormType="Template">  
                                                    <FormTemplate> 
                                                        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: #ffffff;  
                                                            padding-left: 10px" height="100px">  
                                                            <tr> 
                                                                <td class="select_parameter" align="left" style="width: 100px">  
                                                                    Priority Order  
                                                                </td> 
                                                                <td align="left" style="width: 170px">  
                                                                    <telerik:RadComboBox ID="rdcmbTPriorityOrder" runat="server" Width="170px">  
                                                                    </telerik:RadComboBox> 
                                                                </td> 
                                                                <td class="select_parameter" align="left" style="width: 90px">  
                                                                    Tactics  
                                                                </td> 
                                                                <td align="left" style="width: 60%" colspan="7">  
                                                                    <telerik:RadTextBox ID="txtTactics" MaxLength="250" Text='<% #Bind("Tactics") %>' 
                                                                        Width="100%" runat="server" Font-Names="verdana" Font-Size="10px" Wrap="true" 
                                                                        Height="15px">  
                                                                    </telerik:RadTextBox> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td class="select_parameter" align="left">  
                                                                    Point Person  
                                                                </td> 
                                                                <td align="left">  
                                                                    <telerik:RadComboBox ID="rdcmbPointPerson" runat="server" EmptyMessage='Select PointPerson' 
                                                                        Width="170px" Height="220px">  
                                                                        <Items> 
                                                                            <telerik:RadComboBoxItem runat="server" /> 
                                                                        </Items> 
                                                                        <ItemTemplate> 
                                                                            <div> 
                                                                                <telerik:RadTreeView ID="rtPointPerson" runat="server" CheckBoxes="true" OnClientNodeChecked="onPPNodeChecked">  
                                                                                </telerik:RadTreeView> 
                                                                            </div> 
                                                                        </ItemTemplate> 
                                                                    </telerik:RadComboBox> 
                                                                </td> 
                                                                <td class="select_parameter" align="left">  
                                                                    TimeFrame  
                                                                </td> 
                                                                <td colspan="7">  
                                                                    <table> 
                                                                        <tr> 
                                                                            <td> 
                                                                                From  
                                                                            </td> 
                                                                            <td> 
                                                                                <telerik:RadDatePicker Width="100px" DateInput-ReadOnly="true" ID="fromDatePicker" 
                                                                                    runat="server">  
                                                                                    <DatePopupButton Visible="True"></DatePopupButton> 
                                                                                </telerik:RadDatePicker> 
                                                                            </td> 
                                                                            <td> 
                                                                                To  
                                                                            </td> 
                                                                            <td> 
                                                                                <telerik:RadDatePicker Width="100px" DateInput-ReadOnly="true" Visible="true" ID="toDatePicker" 
                                                                                    runat="server">  
                                                                                    <DatePopupButton Visible="True"></DatePopupButton> 
                                                                                </telerik:RadDatePicker> 
                                                                            </td> 
                                                                        </tr> 
                                                                    </table> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td class="select_parameter" align="left">  
                                                                    Additional Point Person  
                                                                </td> 
                                                                <td align="left">  
                                                                    <telerik:RadTextBox ID="rdtxtOthersPointPerson" MaxLength="100" runat="server" Width="170px" 
                                                                        Text='<% #Bind("OtherPointPerson") %>'>  
                                                                    </telerik:RadTextBox> 
                                                                </td> 
                                                                <td class="select_parameter" align="left">  
                                                                    Status  
                                                                </td> 
                                                                <td align="left">  
                                                                    <telerik:RadComboBox ID="rdcmbStatus" runat="server" Width="170px" Height="150px">  
                                                                    </telerik:RadComboBox> 
                                                                </td> 
                                                                <td align="right" colspan="6" style="padding-right: 20px">  
                                                                    <asp:ImageButton ID="imgTUpdate" ToolTip='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "Insert" : "Update" %>' 
                                                                        runat="server" CommandName='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "PerformInsert" : "Update" %>' 
                                                                        ImageUrl="~/images/Update.gif" OnClientClick="if(!validationTactics())return false;">  
                                                                    </asp:ImageButton> 
                                                                    &nbsp;  
                                                                    <asp:ImageButton ID="imgTCancel" runat="server" CausesValidation="false" CommandName="Cancel" 
                                                                        ToolTip="Cancel" ImageUrl="~/images/Cancel.gif" OnClientClick="if(!CancelValidation())return false;" /> 
                                                                </td> 
                                                            </tr> 
                                                        </table> 
                                                    </FormTemplate> 
                                                </EditFormSettings> 
                                            </telerik:GridTableView> 
                                            <%--Tactics Grid Ends--%> 
                                        </DetailTables> 
                                        <Columns> 
                                            <%--Strategy Grid Column--%> 
                                            <telerik:GridBoundColumn DataField="GoalID" UniqueName="GoalID" HeaderText="GoalID" 
                                                Visible="false">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="ObjectiveID" UniqueName="ObjectiveID" HeaderText="ObjectiveID" 
                                                Visible="false">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="StrategyID" UniqueName="StrategyID" HeaderText="StrategyID" 
                                                Visible="false">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn DataField="PriorityOrder" UniqueName="PriorityOrder" HeaderText="#" 
                                                Visible="true" ItemStyle-Width="30px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">  
                                            </telerik:GridBoundColumn> 
                                            <telerik:GridTemplateColumn HeaderText="Strategy" Visible="true" UniqueName="Strategy" 
                                                ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center">  
                                                <ItemTemplate> 
                                                    <asp:Label ID="lblstr" runat="server" Text='<%#Bind("Strategy")%>'></asp:Label> 
                                                    <asp:ImageButton ID="imgbtnChange" ImageUrl='<%#Bind("RDLogoPath")%>' CommandName="RDChange" 
                                                        Enabled="true" CssClass="MyImageButton" runat="server" OnClientClick="if(!CancelChanges())return false;" /> 
                                                </ItemTemplate> 
                                                <ItemStyle Width="80%" HorizontalAlign="Left" /> 
                                                <HeaderStyle Width="80%" HorizontalAlign="Center" /> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridTemplateColumn HeaderText="Edit" UniqueName="EditCommandColumn" HeaderStyle-HorizontalAlign="Center" 
                                                ItemStyle-HorizontalAlign="Center" AllowFiltering="false">  
                                                <ItemTemplate> 
                                                    &nbsp;<asp:ImageButton ID="btnEdit" ToolTip="Edit" runat="server" ImageUrl="~/images/Edit.gif" 
                                                        CommandName="Edit" CssClass="MyImageButton" Enabled="true" />&nbsp;  
                                                </ItemTemplate> 
                                                <ItemStyle Width="40px" HorizontalAlign="Center" /> 
                                                <HeaderStyle Width="40px" HorizontalAlign="Center" /> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridTemplateColumn HeaderText="Delete" UniqueName="DeleteCommandColumn" 
                                                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowFiltering="false">  
                                                <ItemTemplate> 
                                                    &nbsp;<asp:ImageButton ID="btnDelete" ToolTip="Delete" runat="server" ImageUrl="~/images/Delete.gif" 
                                                        CommandName="Delete" CssClass="MyImageButton" Enabled="true" />&nbsp;  
                                                </ItemTemplate> 
                                                <ItemStyle Width="40px" HorizontalAlign="Center" /> 
                                                <HeaderStyle Width="40px" HorizontalAlign="Center" /> 
                                            </telerik:GridTemplateColumn> 
                                        </Columns> 
                                        <CommandItemTemplate> 
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">  
                                                <tr> 
                                                    <td width="40%" align="left" style="padding-left: 10px">  
                                                        <%--   <asp:CheckBox ID="chkViewFilter" runat="server" Checked="false" onclick="showFilterItemGrid2(this)" /> 
                                                        <asp:Label ID="Label4" runat="server" Text=" Show Filter"></asp:Label>--%> 
                                                        <asp:Label ID="lblStrategy" runat="server" Text="Strategy"></asp:Label> 
                                                    </td> 
                                                    <td align="right" style="padding-right: 15px">  
                                                    </td> 
                                                    <td align="right" width="60%">  
                                                        <asp:Image ID="Imge" ImageUrl="~/Images/AddRecord.gif" runat="server" /><asp:LinkButton  
                                                            ID="btn_Add" Font-Size="10px" Text="Add New" Font-Underline="true" runat="server" 
                                                            CommandName="InitInsert" Enabled="true" ToolTip="Add New Record"></asp:LinkButton> 
                                                    </td> 
                                                </tr> 
                                            </table> 
                                        </CommandItemTemplate> 
                                        <EditFormSettings PopUpSettings-Modal="true" PopUpSettings-Width="840px" EditFormType="Template">  
                                            <FormTemplate> 
                                                <table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: #ffffff;  
                                                    padding-left: 10px" height="30px">  
                                                    <tr> 
                                                        <td class="select_parameter" align="left" style="width: 100px">  
                                                            Priority Order  
                                                        </td> 
                                                        <td align="left" style="width: 60px">  
                                                            <telerik:RadComboBox ID="rdcmbSPriorityOrder" runat="server" Width="55px">  
                                                            </telerik:RadComboBox> 
                                                        </td> 
                                                        <td class="select_parameter" align="left" style="width: 60px">  
                                                            Strategy  
                                                        </td> 
                                                        <td align="left" style="width: 70%">  
                                                            <telerik:RadTextBox ID="txtStrategy" MaxLength="250" Text='<% #Bind("Strategy") %>' 
                                                                Width="100%" runat="server" Font-Names="verdana" Font-Size="10px" Wrap="true" 
                                                                Height="15px">  
                                                            </telerik:RadTextBox> 
                                                        </td> 
                                                        <td align="right" colspan="8" style="padding-right: 20px; width: 80px">  
                                                            <asp:ImageButton ID="ImageButton3" ToolTip='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "Insert" : "Update" %>' 
                                                                runat="server" CommandName='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "PerformInsert" : "Update" %>' 
                                                                ImageUrl="~/images/Update.gif" OnClientClick="if(!validationStrategy())return false;">  
                                                            </asp:ImageButton> 
                                                            &nbsp;  
                                                            <asp:ImageButton ID="ImageButton4" runat="server" CausesValidation="false" CommandName="Cancel" 
                                                                ToolTip="Cancel" ImageUrl="~/images/Cancel.gif" OnClientClick="if(!CancelValidation())return false;" /> 
                                                        </td> 
                                                    </tr> 
                                                </table> 
                                            </FormTemplate> 
                                        </EditFormSettings> 
                                    </telerik:GridTableView> 
                                    <%--Strategy Grid Ends--%> 
                                </DetailTables> 
                                <Columns> 
                                    <%--Objective Grid Column--%> 
                                    <telerik:GridBoundColumn DataField="GoalID" UniqueName="GoalID" HeaderText="GoalID" 
                                        Visible="false">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="ObjectiveID" UniqueName="ObjectiveID" HeaderText="ObjectiveID" 
                                        Visible="false">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="PriorityOrder" UniqueName="PriorityOrder" HeaderText="#" 
                                        Visible="true" ItemStyle-Width="30px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridTemplateColumn HeaderText="Objective" Visible="true" UniqueName="Objective" 
                                        ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center">  
                                        <ItemTemplate> 
                                            <asp:Label ID="lblOb" runat="server" Text='<%#Bind("Objective")%>'></asp:Label> 
                                            <asp:ImageButton ID="imgbtnChange" ImageUrl='<%#Bind("RDLogoPath")%>' CommandName="RDChange" 
                                                Enabled="true" CssClass="MyImageButton" runat="server" OnClientClick="if(!CancelChanges())return false;" /> 
                                        </ItemTemplate> 
                                        <ItemStyle Width="80%" HorizontalAlign="Left" /> 
                                        <HeaderStyle Width="80%" HorizontalAlign="Center" /> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn HeaderText="Edit" UniqueName="EditCommandColumn" HeaderStyle-HorizontalAlign="Center" 
                                        ItemStyle-HorizontalAlign="Center" AllowFiltering="false">  
                                        <ItemTemplate> 
                                            &nbsp;<asp:ImageButton ID="btnEdit" ToolTip="Edit" runat="server" ImageUrl="~/images/Edit.gif" 
                                                CommandName="Edit" CssClass="MyImageButton" Enabled="true" />&nbsp;  
                                        </ItemTemplate> 
                                        <ItemStyle Width="40px" HorizontalAlign="Center" /> 
                                        <HeaderStyle Width="40px" HorizontalAlign="Center" /> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn HeaderText="Delete" UniqueName="DeleteCommandColumn" 
                                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowFiltering="false">  
                                        <ItemTemplate> 
                                            &nbsp;<asp:ImageButton ID="btnDelete" ToolTip="Delete" runat="server" ImageUrl="~/images/Delete.gif" 
                                                CommandName="Delete" CssClass="MyImageButton" Enabled="true" />&nbsp;  
                                        </ItemTemplate> 
                                        <ItemStyle Width="40px" HorizontalAlign="Center" /> 
                                        <HeaderStyle Width="40px" HorizontalAlign="Center" /> 
                                    </telerik:GridTemplateColumn> 
                                </Columns> 
                                <CommandItemTemplate> 
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">  
                                        <tr> 
                                            <td width="40%" align="left" style="padding-left: 10px">  
                                                <%--   <asp:CheckBox ID="chkViewFilter" runat="server" Checked="false" onclick="showFilterItemGrid2(this)" /> 
                                                        <asp:Label ID="Label4" runat="server" Text=" Show Filter"></asp:Label>--%> 
                                                <asp:Label ID="lblObjective" runat="server" Text="Objective"></asp:Label> 
                                            </td> 
                                            <td align="right" style="padding-right: 15px">  
                                            </td> 
                                            <td align="right" width="60%">  
                                                <asp:Image ID="Imge" ImageUrl="~/Images/AddRecord.gif" runat="server" /><asp:LinkButton  
                                                    ID="btn_Add" Font-Size="10px" Text="Add New" Font-Underline="true" runat="server" 
                                                    CommandName="InitInsert" Enabled="true" ToolTip="Add New Record"></asp:LinkButton> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                </CommandItemTemplate> 
                                <EditFormSettings PopUpSettings-Modal="true" PopUpSettings-Width="100%" EditFormType="Template">  
                                    <FormTemplate> 
                                        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: #ffffff;  
                                            padding-left: 10px" height="30px">  
                                            <tr> 
                                                <td class="select_parameter" align="left" style="width: 80px">  
                                                    Priority Order  
                                                </td> 
                                                <td align="left" style="width: 60px">  
                                                    <telerik:RadComboBox ID="rdcmbOPriorityOrder" runat="server" Width="55px" Height="15px">  
                                                    </telerik:RadComboBox> 
                                                </td> 
                                                <td class="select_parameter" align="left" style="width: 60px">  
                                                    Objective  
                                                </td> 
                                                <td align="left" style="width: 70%">  
                                                    <telerik:RadTextBox ID="txtObjective" MaxLength="250" Text='<% #Bind("Objective") %>' 
                                                        Width="100%" runat="server" Font-Names="verdana" Font-Size="10px" Wrap="true" 
                                                        Height="15px">  
                                                    </telerik:RadTextBox> 
                                                </td> 
                                                <td align="right" colspan="8" style="padding-right: 20px; width: 80px">  
                                                    <asp:ImageButton ID="ImageButton1" ToolTip='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "Insert" : "Update" %>' 
                                                        runat="server" CommandName='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "PerformInsert" : "Update" %>' 
                                                        ImageUrl="~/images/Update.gif" OnClientClick="if(!validationObjective())return false;">  
                                                    </asp:ImageButton> 
                                                    &nbsp;  
                                                    <asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="false" CommandName="Cancel" 
                                                        ToolTip="Cancel" ImageUrl="~/images/Cancel.gif" OnClientClick="if(!CancelValidation())return false;" /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </FormTemplate> 
                                </EditFormSettings> 
                            </telerik:GridTableView> 
                            <%--Objective Grid Ends--%> 
                        </DetailTables> 
                        <Columns> 
                            <%--Goal Grid Column--%> 
                            <telerik:GridBoundColumn DataField="GoalID" UniqueName="GoalID" HeaderText="GoalID" 
                                Visible="false">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="PriorityOrder" UniqueName="PriorityOrder" HeaderText="#" 
                                Visible="true" ItemStyle-Width="30px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" 
                                HeaderStyle-Width="30px">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridTemplateColumn HeaderText="Goal" Visible="true" UniqueName="Goal" ItemStyle-Wrap="true" 
                                ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center">  
                                <ItemTemplate> 
                                    <asp:Label ID="lblG" runat="server" Text='<%#Bind("Goal")%>'></asp:Label> 
                                    <asp:ImageButton ID="imgbtnChange" ImageUrl='<%#Bind("RDLogoPath")%>' CommandName="RDChange" 
                                        Enabled="true" CssClass="MyImageButton" runat="server" OnClientClick="if(!CancelChanges())return false;" /> 
                                </ItemTemplate> 
                                <ItemStyle Width="80%" HorizontalAlign="Left" /> 
                                <HeaderStyle Width="80%" HorizontalAlign="Center" /> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="Edit" UniqueName="EditCommandColumn" HeaderStyle-HorizontalAlign="Center" 
                                ItemStyle-HorizontalAlign="Center" AllowFiltering="false" Resizable="false">  
                                <ItemTemplate> 
                                    &nbsp;<asp:ImageButton ID="btnEdit" ToolTip="Edit" runat="server" ImageUrl="~/images/Edit.gif" 
                                        CommandName="Edit" CssClass="MyImageButton" Enabled="true" />&nbsp;  
                                </ItemTemplate> 
                                <ItemStyle Width="40px" HorizontalAlign="Center" /> 
                                <HeaderStyle Width="40px" HorizontalAlign="Center" /> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="Delete" UniqueName="DeleteCommandColumn" 
                                Resizable="false" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" 
                                AllowFiltering="false">  
                                <ItemTemplate> 
                                    &nbsp;<asp:ImageButton ID="btnDelete" ToolTip="Delete" runat="server" ImageUrl="~/images/Delete.gif" 
                                        CommandName="Delete" CssClass="MyImageButton" Enabled="true" />&nbsp;  
                                </ItemTemplate> 
                                <ItemStyle Width="40px" HorizontalAlign="Center" /> 
                                <HeaderStyle Width="40px" HorizontalAlign="Center" /> 
                            </telerik:GridTemplateColumn> 
                        </Columns> 
                        <CommandItemTemplate> 
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">  
                                <tr> 
                                    <td width="40%" align="left" style="padding-left: 10px">  
                                        <%--   <asp:CheckBox ID="chkViewFilter" runat="server" Checked="false" onclick="showFilterItemGrid2(this)" /> 
                                                        <asp:Label ID="Label4" runat="server" Text=" Show Filter"></asp:Label>--%> 
                                        <asp:Label ID="lblGoal" runat="server" Text="Goal"></asp:Label> 
                                    </td> 
                                    <td align="right" style="padding-right: 15px">  
                                    </td> 
                                    <td align="right" width="60%">  
                                        <asp:ImageButton ID="imgbtnExport" OnClick="btn_ExportToExcel_Click" ImageUrl="~/images/icon_excel.gif" 
                                            runat="server" ToolTip="Export To Excel" />&nbsp;&nbsp;  
                                        <asp:Image ID="Imge" ImageUrl="~/Images/AddRecord.gif" runat="server" /><asp:LinkButton  
                                            ID="btn_Add" Font-Size="10px" Text="Add New" Font-Underline="true" runat="server" 
                                            CommandName="InitInsert" Enabled="true" ToolTip="Add New Record"></asp:LinkButton> 
                                    </td> 
                                </tr> 
                            </table> 
                        </CommandItemTemplate> 
                        <EditFormSettings PopUpSettings-Modal="true" PopUpSettings-Width="900px" EditFormType="Template">  
                            <FormTemplate> 
                                <table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: #ffffff;  
                                    padding-left: 10px" height="30px">  
                                    <tr> 
                                        <td class="select_parameter" align="left" style="width: 80px">  
                                            Priority Order  
                                        </td> 
                                        <td align="left" style="width: 60px">  
                                            <telerik:RadComboBox ID="rdcmbGPriorityOrder" runat="server" Width="55px" Height="15px">  
                                            </telerik:RadComboBox> 
                                        </td> 
                                        <td class="select_parameter" align="left" style="width: 40px">  
                                            Goal  
                                        </td> 
                                        <td align="left" style="width: 70%">  
                                            <telerik:RadTextBox ID="txtGoal" MaxLength="250" Text='<% #Bind("Goal") %>' Width="100%" 
                                                runat="server" Font-Names="verdana" Font-Size="10px" Wrap="true" Height="15px">  
                                            </telerik:RadTextBox> 
                                        </td> 
                                        <td align="right" style="padding-right: 20px; width: 80px">  
                                            <asp:ImageButton ID="imgGUpdate" ToolTip='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "Insert" : "Update" %>' 
                                                runat="server" CommandName='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "PerformInsert" : "Update" %>' 
                                                ImageUrl="~/images/Update.gif" OnClientClick="if(!validationGoal())return false;">  
                                            </asp:ImageButton> 
                                            &nbsp;  
                                            <asp:ImageButton ID="imgGCancel" runat="server" CausesValidation="false" CommandName="Cancel" 
                                                ToolTip="Cancel" ImageUrl="~/images/Cancel.gif" OnClientClick="if(!CancelValidation())return false;" /> 
                                        </td> 
                                    </tr> 
                                </table> 
                            </FormTemplate> 
                        </EditFormSettings> 
                        <%--Goal Grid Ends--%> 
                    </MasterTableView> 
                </telerik:RadGrid> 
and below is the code which i tried to achieve my result:
if ((e.Item is GridEditableItem) && (e.Item.IsInEditMode))  
            {  
                if (e.Item.OwnerTableView.Name == "Goals")  
                {  
                    foreach (GridCommandItem cmdItm in e.Item.OwnerTableView.GetItems(GridItemType.CommandItem))  
                    {  
                        LinkButton Addbtn = (LinkButton)cmdItm.FindControl("btn_Add");  
                        Addbtn.Enabled = false;  
 
                    }  
                    GridTableView nestedTableView = (rdGOSTView.MasterTableView.Items[0] as GridDataItem).ChildItem.NestedTableViews[0];  
                    foreach (GridEditableItem editItm in nestedTableView.GetItems(GridItemType.EditItem))  
                    {  
                        ImageButton Delbtn = (ImageButton)editItm.FindControl("btnDelete");  
                        if (Delbtn != null)  
                            Delbtn.Enabled = false;  
                        ImageButton btnEdit = (ImageButton)editItm.FindControl("btnEdit");  
                        if (btnEdit != null)  
                            btnEdit.Enabled = false;  
                    }  
 
                    //For Goals  
                    //for (int i = 0; i < e.Item.OwnerTableView.Items.Count; i++)  
                    //{  
 
                    //    ImageButton Delbtn = (ImageButton)e.Item.OwnerTableView.Items[i].FindControl("btnDelete");  
                    //    if (Delbtn != null)  
                    //        Delbtn.Enabled = false;  
                    //    ImageButton btnEdit = (ImageButton)e.Item.OwnerTableView.Items[i].FindControl("btnEdit");  
                    //    if (btnEdit != null)  
                    //        btnEdit.Enabled = false;  
                    //}  
                }  
                if (e.Item.OwnerTableView.Name == "Objectives")  
                {  
                    foreach (GridCommandItem cmdItm in e.Item.OwnerTableView.GetItems(GridItemType.CommandItem))  
                    {  
                        LinkButton Addbtn = (LinkButton)cmdItm.FindControl("btn_Add");  
                        Addbtn.Enabled = false;  
 
                    }  
                    //For Objective  
                    for (int i = 0; i < e.Item.OwnerTableView.Items.Count; i++)  
                    {  
 
                        ImageButton Delbtn = (ImageButton)e.Item.OwnerTableView.Items[i].FindControl("btnDelete");  
                        if (Delbtn != null)  
                            Delbtn.Enabled = false;  
                        ImageButton btnEdit = (ImageButton)e.Item.OwnerTableView.Items[i].FindControl("btnEdit");  
                        if (btnEdit != null)  
                            btnEdit.Enabled = false;  
                    }  
                    //For Goals  
                    for (int i = 0; i < e.Item.OwnerTableView.OwnerGrid.Items.Count; i++)  
                    {  
 
                        ImageButton Delbtn = (ImageButton)e.Item.OwnerTableView.OwnerGrid.Items[i].FindControl("btnDelete");  
                        if (Delbtn != null)  
                            Delbtn.Enabled = false;  
                        ImageButton btnEdit = (ImageButton)e.Item.OwnerTableView.OwnerGrid.Items[i].FindControl("btnEdit");  
                        if (btnEdit != null)  
                            btnEdit.Enabled = false;  
                    }  
 
                }  
                if (e.Item.OwnerTableView.Name == "Strategy")  
                {  
                    foreach (GridCommandItem cmdItm in e.Item.OwnerTableView.GetItems(GridItemType.CommandItem))  
                    {  
                        LinkButton Addbtn = (LinkButton)cmdItm.FindControl("btn_Add");  
                        Addbtn.Enabled = false;  
 
                    }  
                    //For Strategy  
                    for (int i = 0; i < e.Item.OwnerTableView.Items.Count; i++)  
                    {  
 
                        ImageButton Delbtn = (ImageButton)e.Item.OwnerTableView.Items[i].FindControl("btnDelete");  
                        if (Delbtn != null)  
                            Delbtn.Enabled = false;  
                        ImageButton btnEdit = (ImageButton)e.Item.OwnerTableView.Items[i].FindControl("btnEdit");  
                        if (btnEdit != null)  
                            btnEdit.Enabled = false;  
                    }  
                    //For Goals  
                    for (int i = 0; i < e.Item.OwnerTableView.OwnerGrid.Items.Count; i++)  
                    {  
 
                        ImageButton Delbtn = (ImageButton)e.Item.OwnerTableView.OwnerGrid.Items[i].FindControl("btnDelete");  
                        if (Delbtn != null)  
                            Delbtn.Enabled = false;  
                        ImageButton btnEdit = (ImageButton)e.Item.OwnerTableView.OwnerGrid.Items[i].FindControl("btnEdit");  
                        if (btnEdit != null)  
                            btnEdit.Enabled = false;  
                    }  
                    //For Objecives  
                    for (int i = 0; i < e.Item.OwnerTableView.OwnerGrid.MasterTableView.OwnerGrid.Items.Count; i++)  
                    {  
 
                        ImageButton Delbtn = (ImageButton)e.Item.OwnerTableView.OwnerGrid.MasterTableView.OwnerGrid.Items[i].FindControl("btnDelete");  
                        if (Delbtn != null)  
                            Delbtn.Enabled = false;  
                        ImageButton btnEdit = (ImageButton)e.Item.OwnerTableView.OwnerGrid.MasterTableView.OwnerGrid.Items[i].FindControl("btnEdit");  
                        if (btnEdit != null)  
                            btnEdit.Enabled = false;  
                    }  
                }  
                if (e.Item.OwnerTableView.Name == "Tactics")  
                {  
                    foreach (GridCommandItem cmdItm in e.Item.OwnerTableView.GetItems(GridItemType.CommandItem))  
                    {  
                        LinkButton Addbtn = (LinkButton)cmdItm.FindControl("btn_Add");  
                        Addbtn.Enabled = false;  
 
                    }  
                    //For Tactics  
                    for (int i = 0; i < e.Item.OwnerTableView.Items.Count; i++)  
                    {  
 
                        ImageButton Delbtn = (ImageButton)e.Item.OwnerTableView.Items[i].FindControl("btnDelete");  
                        if (Delbtn != null)  
                            Delbtn.Enabled = false;  
                        ImageButton btnEdit = (ImageButton)e.Item.OwnerTableView.Items[i].FindControl("btnEdit");  
                        if (btnEdit != null)  
                            btnEdit.Enabled = false;  
                    }  
 
                    //For Goals  
                    for (int i = 0; i < e.Item.OwnerTableView.OwnerGrid.Items.Count; i++)  
                    {  
 
                        ImageButton Delbtn = (ImageButton)e.Item.OwnerTableView.OwnerGrid.Items[i].FindControl("btnDelete");  
                        if (Delbtn != null)  
                            Delbtn.Enabled = false;  
                        ImageButton btnEdit = (ImageButton)e.Item.OwnerTableView.OwnerGrid.Items[i].FindControl("btnEdit");  
                        if (btnEdit != null)  
                            btnEdit.Enabled = false;  
                    }  
                    //For Objecives  
                    for (int i = 0; i < e.Item.OwnerTableView.OwnerGrid.MasterTableView.OwnerGrid.Items.Count; i++)  
                    {  
 
                        ImageButton Delbtn = (ImageButton)e.Item.OwnerTableView.OwnerGrid.MasterTableView.OwnerGrid.Items[i].FindControl("btnDelete");  
                        if (Delbtn != null)  
                            Delbtn.Enabled = false;  
                        ImageButton btnEdit = (ImageButton)e.Item.OwnerTableView.OwnerGrid.MasterTableView.OwnerGrid.Items[i].FindControl("btnEdit");  
                        if (btnEdit != null)  
                            btnEdit.Enabled = false;  
                    }  
                    //For Strategy  
                    for (int i = 0; i < e.Item.OwnerTableView.OwnerGrid.MasterTableView.OwnerGrid.MasterTableView.OwnerGrid.Items.Count; i++)  
                    {  
 
                        ImageButton Delbtn = (ImageButton)e.Item.OwnerTableView.OwnerGrid.MasterTableView.OwnerGrid.MasterTableView.OwnerGrid.Items[i].FindControl("btnDelete");  
                        if (Delbtn != null)  
                            Delbtn.Enabled = false;  
                        ImageButton btnEdit = (ImageButton)e.Item.OwnerTableView.OwnerGrid.MasterTableView.OwnerGrid.MasterTableView.OwnerGrid.Items[i].FindControl("btnEdit");  
                        if (btnEdit != null)  
                            btnEdit.Enabled = false;  
                    }  
 
                }  
            } 

i have given you all the code which i tried to get my result but still i am not successfull. Please help me.

Guys if any one has any solution please post....

Thanks a lot to Telerik and all the members in advance.
waiting for reply.
Binod
Top achievements
Rank 1
 answered on 08 Apr 2010
3 answers
267 views
Hello,

I am using Q1 2010 telerik controls with IE 8 browser. I have faced UI problem please see the attached image circled.
Dimo
Telerik team
 answered on 08 Apr 2010
1 answer
108 views
I am evaulating radgrid and it's client side functionality for databinding.

My grid is calling a web method and retireves the required data just fine.

I found that when I setup client binding (declarative) as oppoes to standard binding on the server, the edit form no longer appears when the add new record or edit buttons of the grid are clicked. I created a javascript function to call showinsertitem(), but I get a out of memory error with that. is the showinsertitem functional? (using q1 2010 version).

what I would like to do is call another aspx.net page when the add new record or edit buttons are clicked.. is there an example of this?

is it possible to put a custom button in the grid that would do post backs, so I could perfrom server c# functionality?

Thanks in advance
Tsvetoslav
Telerik team
 answered on 08 Apr 2010
0 answers
86 views
its done..thx
bharat kumar
Top achievements
Rank 1
 asked on 08 Apr 2010
1 answer
79 views
Hi,
Im using a self referencing grid. When there are no child records im hiding the expand/collpase button, but still there is a empty coloured row displayed below the child row(See blue coloured row in the attachment). I dont need that empty row to be displayed.
Can anyone help me out???

PFA the grid image

Regards,
Krishnan
Dimo
Telerik team
 answered on 08 Apr 2010
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?