Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
Hi,
    We have been using Telerik contols in our projects. In one of the aspx pages I am using RadGrid, it loads the data on IE8 but on IE9 it displays blank data. Is there any specific property which I need to set.
The following is my grid code

<

 

radG:RadGrid ID="grdVBList" runat="server" GridLines="None" Skin="Vista" height="96%" width="99%" AllowAutomaticUpdates="True" AllowSorting="True"

 

 

AllowPaging="false" PageSize="17" EnableAJAX="True" CellPadding="0" CellSpacing="0"

 

 

EnableAJAXLoadingTemplate="True" OnSortCommand="grdVBList_SortCommand"

 

 

BorderWidth="1px" ItemStyle-Wrap = "False" >

 

 

<MasterTableView AutoGenerateColumns="False" TableLayout="Fixed">

 

 

<ExpandCollapseColumn Resizable="False" Visible="False">

 

 

<HeaderStyle HorizontalAlign="Center" />

 

 

</ExpandCollapseColumn>

 

 

<RowIndicatorColumn Visible="False">

 

 

<HeaderStyle />

 

 

</RowIndicatorColumn>

 

 

<Columns>

 

 

<radG:GridTemplateColumn ItemStyle-HorizontalAlign="Left" UniqueName="Icon">

 

 

<HeaderStyle Width="8%"/>

 

 

<ItemTemplate>

 

 

<asp:CheckBox ID="chkSelected" runat="server" onclick="enabledisablebutton(this.checked);"></asp:CheckBox>

 

 

</ItemTemplate>

 

 

</radG:GridTemplateColumn>

 

 

<radG:GridBoundColumn DataField="lVBID" HeaderText="VBID" ReadOnly="True"

 

 

UniqueName="lVBID" Display="False">

 

 

</radG:GridBoundColumn>

 

 

<radG:GridBoundColumn DataField="sSAPNO" HeaderStyle-Width="12%" HeaderStyle-HorizontalAlign="Left"

 

 

ReadOnly="True" UniqueName="sSAPNO" ItemStyle-HorizontalAlign="Left">

 

 

</radG:GridBoundColumn>

 

 

<radG:GridBoundColumn DataField="sVBName" ReadOnly="True" HeaderStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign = "Left"

 

 

SortExpression="sVBName" UniqueName="sVBName">

 

 

</radG:GridBoundColumn>

 

 

<radG:GridBoundColumn DataField="lUnits" ReadOnly="True" HeaderStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign = "Left"

 

 

SortExpression="lUnits" UniqueName="lUnits">

 

 

</radG:GridBoundColumn>

 

 

<radG:GridBoundColumn DataField="lBonus" ReadOnly="True" HeaderStyle-Width="12%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign = "Left"

 

 

SortExpression="lBonus" UniqueName="lBonus">

 

 

</radG:GridBoundColumn>

 

 

<radG:GridBoundColumn DataField="lQuantity" ReadOnly="True" HeaderStyle-Width="12%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign = "Left"

 

 

SortExpression="lQuantity" UniqueName="lQuantity">

 

 

</radG:GridBoundColumn>

 

 

<radG:GridBoundColumn DataField="lMinQuantity" ReadOnly="True" HeaderStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign = "Left"

 

 

SortExpression="lMinQuantity" UniqueName="lMinQuantity">

 

 

</radG:GridBoundColumn>

 

 

<radG:GridTemplateColumn ItemStyle-HorizontalAlign="Left" UniqueName="Qty" HeaderStyle-HorizontalAlign="Left" DataField="lMinQuantity">

 

 

<HeaderStyle />

 

 

<ItemStyle HorizontalAlign="Left" />

 

 

<ItemTemplate>

 

 

<asp:TextBox ID="txtQty" Width="70px" height="14px" MaxLength="4" runat="server" onKeyPress="return checkNumeric(event)"></asp:TextBox>

 

 

</ItemTemplate>

 

 

</radG:GridTemplateColumn>

 

 

<radG:GridTemplateColumn ItemStyle-HorizontalAlign="Left" UniqueName="Qty" HeaderStyle-HorizontalAlign="Left" Display="false">

 

 

<HeaderStyle Width="0px" />

 

 

<ItemStyle width="0px" />

 

 

<ItemTemplate>

 

 

<asp:HiddenField ID="hdnQty" runat="server" value='<%#DataBinder.Eval(Container.DataItem,"lMinQuantity") %>'></asp:HiddenField>

 

 

</ItemTemplate>

 

 

</radG:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="true" ScrollHeight="200px" />

 

 

</ClientSettings>

 

 

</radG:RadGrid>

Regards,
Preethi D

 

Preethi
Top achievements
Rank 1
 answered on 09 Sep 2011
0 answers
85 views
Hi Team,
I have a radgrid with a radcombobox in EditItemTemplate.
When for the first time I click the mouse on RadCombo, ItemRequest event fires and shows me tha data.
But when I input the Text in it, it doesnt fire the event again.

This is my aspx :
<telerik:RadGrid ID="rgCSTaskComponents" runat="server" 
            OnNeedDataSource="rgCSTaskComponents_NeedDataSource"
            OnInsertCommand="rgCSTaskComponents_InsertCommand"
            OnUpdateCommand="rgCSTaskComponents_UpdateCommand"
            OnDeleteCommand="rgCSTaskComponents_DeleteCommand"
            OnItemCommand="rgCSTaskComponents_ItemCommand"
            OnItemDataBound="rgCSTaskComponents_OnItemDataBound"
            OnItemCreated="rgCSTaskComponents_ItemCreated"
            AutoGenerateColumns="False" PageSize="15" AllowFilteringByColumn="true"
            PagerStyle-AlwaysVisible="true" PagerStyle-Mode="NextPrevAndNumeric">
           <MasterTableView  AutoGenerateColumns="False" DataKeyNames="CSTaskComponentID" DataMember="CSTaskComponents"
                            CommandItemDisplay="Top">
             <ExpandCollapseColumn Visible="False">
                <HeaderStyle Width="20px" />
             </ExpandCollapseColumn>
             <EditFormSettings>
                 <EditColumn UniqueName="EditCommandColumn">
                </EditColumn>
            </EditFormSettings>
            <Columns>
            <telerik:GridTemplateColumn HeaderText="Part Item" UniqueName="PartItem"  DataField="DisplayName"
                      DataType="System.String"  AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                                                         FilterControlWidth="80%">
                    <ItemTemplate>
                        <asp:Label ID="lbl_DisplayName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DisplayName")%>'>
                        </asp:Label>
                    </ItemTemplate>                   
                    <EditItemTemplate>
                             <telerik:RadComboBox ID="rcbSKU" runat="server"
                                             AutoPostBack="true"
                                             Width="180px"
                                             MarkFirstMatch="true"
                                             DataTextField="DisplayName"
                                             DataValueField="PartItemID"
                                             OnItemsRequested="rcbSKU_ItemsRequested"
                                             EnableLoadOnDemand="true"
                                             ShowMoreResultsBox="true"
                                             ItemRequestTimeout="5"
                                             AllowCustomText="true" >
                           </telerik:RadComboBox>   
                    </EditItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" Width="40%" />
                    <ItemStyle HorizontalAlign="Left" Width="40%" />                   
                </telerik:GridTemplateColumn>          
         
        </Columns>
                </MasterTableView>
            </telerik:RadGrid>

and this is my cs side :
protected void rcbSKU_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
      {
          LoadSKUForDropDown();
          //RadComboBox rcbSKU = rgCSTaskComponents.MasterTableView.Items[0].FindControl("rcbSKU") as RadComboBox;
          RadComboBox rcbSKU = (RadComboBox)o;
          rcbSKU.Items.Clear();
          string text = e.Text;
 
          try
          {
              DataRow[] rows = mSKUDataTable.Select("DisplayName LIKE '" + text + "*'", "DisplayName");
 
              int itemsPerRequest = 10;
              int itemOffset = e.NumberOfItems;
              int endOffset = itemOffset + itemsPerRequest;
              if (endOffset > rows.Length)
              {
                  endOffset = rows.Length;
              }
 
              for (int i = itemOffset; i < endOffset; i++)
              {
                  rcbSKU.Items.Add(new RadComboBoxItem(rows[i]["DisplayName"].ToString(), rows[i]["PartItemID"].ToString()));
              }
              if (rows.Length > 0)
              {
                  e.Message = String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset.ToString(), rows.Length.ToString());
              }
              else
              {
                  e.Message = "No matches";
              }
          }
          catch (Exception ex)
          {
              ex.Source = this.AppRelativeVirtualPath;
              e.Message = "No matches";
          }
      }

Waiting for your positive and quick reply,
Regards,
Lok..

Lokesh
Top achievements
Rank 1
 asked on 09 Sep 2011
2 answers
119 views


Hi,

I am using Radgrid with Hierarchy concept. The Main Table has a Total amount and the detail table also have another total amount. In the Footer i need to get the sum of both tables. For eg: i have given the grid sample below

SNo      Item Name        Unit        Qty      Price       Total
1.          Item1                Nos        10       100          1000             ----> Main Table
             SNo        Item Name     Unit         Qty         Total
              1.           ItemDetail1      Nos        10          500              --->Detail Table
              2.           ItemDetail2      Nos         5           250
2.        Item2               Nos            20        100        2000          
 
                                                               Total :     3750             ----> Footer Total

Please guide me in this regards

Thanks
Kannan. S




Kannan
Top achievements
Rank 1
 answered on 09 Sep 2011
1 answer
172 views
I am using Version=2011.2.712.35 and am having a problem getting the RadComboBox to work properly with the RequiredFieldValidator. I have verified that the RequiredFieldValidator works with a DropDownList and then replaced the ddl with the rcb and it works no longer

<telerik:RadComboBox ID="ddlSourceSystem" runat="server" Width="250px" Height="220px" AllowCustomText="True"
         ShowToggleImage="True" CausesValidation="false" ShowMoreResultsBox="false" EnableLoadOnDemand="false"
         MarkFirstMatch="false" EnableVirtualScrolling="false" AutoPostBack="false">
         <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
     </telerik:RadComboBox>
      
<asp:RequiredFieldValidator runat="server" ID="rfvSourceSystem" ValidationGroup="accountValidation"
                ControlToValidate="ddlSourceSystem" ErrorMessage="Source System is required"
                InitialValue="" Text=""><img src="images/exclamation_red.png" width="16" height="16"/></asp:RequiredFieldValidator>

Tim
Top achievements
Rank 2
 answered on 09 Sep 2011
2 answers
125 views
Hi,

 I have been trying to search this on the forum but couldnt find any. I have a simple requirement of dynamically showing (from client side) at the x y position of the mouse. The difference between some example shown at the site is that it always has targetcontrolid but the element i clicked does not have any id.... Its a html anchor element and an example is shown below

<a href="javascript:showComments(1);">Comment1</a>

So far i have been able to determine the x y position of the mouse but wanted to see if there is any tooltip.showAt function which will position the tooltip at the specified x,y co-ordinates?

Pretty sure this has been answered somewhere but couldnt find it

 
TIGER
Top achievements
Rank 1
 answered on 09 Sep 2011
12 answers
257 views
My apologies if this has already been asked and answered. I searched, but did not find specific results relating to this problem.

RadGrid hooked up to a SQLDataSource. This is part of a utilitarian admin interface. The data is simple zip code information. It is an SSL protected website with BASIC windows authentication on IIS6. When I click on Export to Excel(or Word, etc..) the username/password credentials prompt comes back up. If the user re-enters their information, the download completes successfully. I don't want the prompt to re-appear.
My thought was that it may have something to do with where the RadGrid stores its temporary file on the server before export, or is it streamed in memory?

Any help is appreciated.
Steele
Top achievements
Rank 1
 answered on 09 Sep 2011
2 answers
82 views
We have a form with a RadMaskedTextBox on it for phone numbers.  We also have a control on the page that allows users to "lookup" employees using a popup web form which is tied to AD.  The "lookup" form is a pop-up window which when a user selects an employee name; populates information back to the form that launched it.  However, the phone number is not being properly set in the RadMaskedTextBox.

When the popup window opens it sends the ID of the RadMaskedTextBox in the query string and attempt to use the following code to set the RadMaskedTextBox's value.

window.opener.aspnetForm.MASKEDTEXTBOX_ID.set_value('0001234567);
The issue we're encountering is similar to the one described in this thread but it doesn't seem to have an answer.

http://www.telerik.com/community/forums/aspnet-ajax/input/getting-radmaskedtextbox-client-object-on-other-page.aspx

The issue we're encountering is similar to the one described in this thread but it doesn't seem to have an answer.
JR
Top achievements
Rank 1
 answered on 08 Sep 2011
3 answers
115 views
$find() is failing miserably for me when I try to obtain a reference to the RadMultiPage control on my page. The following just returns null on the second statement of showPageView .Here is my markup... I've got the showPageView function bound to the OnClientItemClicked event of the RadMenu. I'm just trying to show a different multiPage when a RadMenuItem is clicked. Extremely simple, I know. Any thoughts? This is driving me crazy. I'm using VS2008 and v 2010.2.929.35

Thanks in advance for any help/insight!

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    <link href="CSS/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager" runat="server">
        <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>
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script type="text/javascript">
            $(document).ready(function() {      // Wait for the HTML to finish loading.
                var resize = function() {
                    var height = $(window).height();  // Get the height of the browser window area.
                    var element = $("form");          // Find the element to resize.
                    element.height(height);           // Set the element's height.
                }
                resize();
                $(window).bind("resize", resize);
            });
 
            function showPageView(sender, eventArgs) {
                var clientId = "<%= RadMultiPage1.ClientID %>";
                var multipage = $find(clientId);
                if (eventArgs.get_item().get_value() != null) {
                    alert(eventArgs.get_item().get_value());
                    var pageView = multipage.findPageViewByID(eventArgs.get_item().get_value());
                    if (pageView)
                        pageView.set_selected(true);
                }
            }
    </script>
    </telerik:RadScriptBlock>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div id="mainWrapper">
        <div id="pageWrapper">
            <div id="topWelcomeBanner">
                <div id="welcomebox">
                    <a target="_blank" href="http://www.mercer.com:80/regredirect.htm?siteLanguage=100">Register on our site</a
                    <font style="color:#0057A6">|</font>
                    <a target="_blank" href="https://clients.haifc.com">Log in to Client Portal</a>
                </div>
            </div>
            <div id="masthead">
                <a href="">
                    <img border="0" src="images/mercer_logo_175x24.gif" name="cmp_img_global_header_logo" alt="Mercer" title="Mercer"/>
                </a>
                <div align="right" style="font-size:10px" class="piller1">
                    <a href="">
                        <img border="0" src="images/mercer_pillars_new.gif" name="cmp_img_global_header_logo" alt="Consulting. Outsourcing. Investments."/>
                    </a>
                </div>
            </div>
            <div class="hnav">
                <telerik:RadMenu ID="RadMenu1" runat="server" Flow="Horizontal" OnClientItemClicked="showPageView" CssClass="menu">
                <DefaultGroupSettings ExpandDirection="Auto" Flow="Vertical" />
                <CollapseAnimation Duration="200" Type="OutQuint" />
                <Items>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Home" Value="RadPageView6" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Bold="true">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Who We Are" Value="RadPageView1" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Bold="true">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Who We Serve" Value="RadPageView2" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Bold="true">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Research" Value="RadPageView3" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Bold="true">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Media Center" Value="RadPageView4" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Bold="true">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" ExpandMode="ClientSide" Text="Contact Us" Value="RadPageView5" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Bold="true">
                        <GroupSettings ExpandDirection="Auto" Flow="Vertical" />
                    </telerik:RadMenuItem>
                </Items>
                <ExpandAnimation Type="OutQuart" />
            </telerik:RadMenu>              
            </div>
                    <div id="leftCol">
                        <telerik:RadMultiPage ID="RadMultiPage1" runat="server"
                                            SelectedIndex="0">
                            <telerik:RadPageView ID="RadPageView6" runat="server">                                           
                            </telerik:RadPageView>
                            <telerik:RadPageView ID="RadPageView1" runat="server">                                  
                            </telerik:RadPageView>
                            <telerik:RadPageView ID="RadPageView2" runat="server">                              
                            </telerik:RadPageView>
                            <telerik:RadPageView ID="RadPageView3" runat="server">
                            </telerik:RadPageView>
                            <telerik:RadPageView ID="RadPageView4" runat="server">
                                Media Center</telerik:RadPageView>
                            <telerik:RadPageView ID="RadPageView5" runat="server">
                                </telerik:RadPageView>
                        </telerik:RadMultiPage>
                    </div>
                <div id="rightCol">                 
                    <img src="images/DRH.gif" width="121px" height="212px" alt="Dennis R. Hammond"  />
                    <div id="overlay"></div>
                    <div id="dennis">Dennis Hammond</div>
                    <div style="margin-bottom:8px" class="hrboxForMercerInNewsRightBucket"></div>
                    <h3><font color="#000000"><strong>Research Weekly Update</strong></font></h3>
                    <br />
                    <asp:Button ID="btnWeekly" runat="server" Text="Get the Latest" CssClass="headerbutton" PostBackUrl="http://www.haifc.com/ResearchLibrary/weekly/2011/09062011.pdf"/>
                    <div style="margin-bottom:8px" class="hrboxForMercerInNewsRightBucket"></div>
                    <div id="connect">
                     <h3><font color="#000000"><strong>Connect with us</strong></font></h3>
                            <br />
                           <p style="font-size:12px; margin-bottom:10px;">
                          <span class="iconMercerInNews">
                            <a href="http://twitter.com/MercerInsights" target="_blank">
                            <img align="absmiddle" src="images/icn-share-twitter_14x14.gif"/>
                            </a>
                            </span>
                              <a href="http://twitter.com/MercerInsights" target="_blank" class="linksNoSize">Twitter</a>
                            </p>
                           <p style="font-size:12px; margin-bottom:10px;">
                          <span class="iconMercerInNews">
                            <a href="http://www.linkedin.com/groups?mostPopular=&;gid=113026" target="_blank">
                            <img align="absmiddle" src="images/icn-share-linkedin_14x14.gif"/>
                            </a>
                            </span>
                              <a href="http://www.linkedin.com/groups?mostPopular=&;gid=113026" target="_blank" class="linksNoSize">LinkedIn</a>
                            </p>
                           <p style="font-size:12px; margin-bottom:10px;">   
                          <span class="iconMercerInNews">
                            <a href="http://www.facebook.com/MercerInsights" target="_blank">
                            <img align="absmiddle" src="images/icn-share-facebook_14x14.gif"/>
                            </a>
                            </span>
                              <a href="http://www.facebook.com/MercerInsights" target="_blank" class="linksNoSize">Facebook</a>
                             </p>
                             <div style="margin-bottom:8px" class="hrboxForMercerInNewsRightBucket"></div>
                      </div>
                </div>
                <div id="footer">
                    <hr />
                    <table width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tbody><tr>
                            <td valign="top" align="left">
                            <p style="margin-bottom:20px;"><a href="http://www.mmc.com" title="Marsh & McLennan Companies" target="_blank">
                            <img border="0" src="images/parent_logo_199x27.gif" name="cmp_img_global_header_logo" alt="Consulting. Outsourcing. Investments."/>
                            </a></p>
                            </td>
                            <td valign="top">
                            <div id="footertable">
                                <a href="http://www.mercer.com:80/rsslisting.htm?siteLanguage=100"><img style="cursor: pointer" src="images/icon_rss.gif"></a> |  
                                <a href="http://www.mercer.com:80/termsofuse.htm?siteLanguage=100">Terms of use</a> | <a href="http://www.mercer.com:80/privacy.htm?siteLanguage=100">Privacy</a> | <a href="http://www.mercer.com:80/help.htm?siteLanguage=100">  
                                Help</a> | <a href="https://connectv7.mercer.com/eRoom">Mercer's Client Extranet</a><br />
                            Â©2011 Mercer LLC, All Rights Reserved</div>
                            </td>
                        </tr>
                    </tbody></table>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
 answered on 08 Sep 2011
2 answers
282 views
Hi,
I added the below code for masking a column. The column has to display 9-digit number in this form ####-#####
But the column is displayed as  123456789 instead of  1234-56789

<telerik:RadGrid ID="rg_submitted_requests" runat="server" AllowPaging="True" AutoGenerateColumns="False" AllowSorting="True" GridLines="Both" CellPadding="0">
   <MasterTableView  AutoGenerateColumns="false">
    <Columns>
        <telerik:GridMaskedColumn Mask="####-#####" HeaderText="PAF #" DataField="PAF_NUMBER">                        
        </telerik:GridMaskedColumn>
    </Columns>
   </MasterTableView>
</telerik:RadGrid>

Please let me know if there any issues with the above code.

Appreciate your help,
Mani
Eva
Top achievements
Rank 1
 answered on 08 Sep 2011
2 answers
106 views
I have a screen awith a radgrid and In the eidt form I have a textbox which allows a user to enter a numeric value. 
<td>
      <label for="CIK">
           CIK:</label>
     <asp:TextBox ID="CIKTextbox" runat="server" Text='<%# Bind("CIK") %>' Columns="35" AutoPostBack="true" OnTextChanged="CIK_TextChanged" />
     <asp:label id="DupCheck" Font-Bold="true" ForeColor="Red" runat="server" />
</td>
Ithen in the code behind I have
protected void CIK_TextChanged(object sender, EventArgs e)
 {
     TextBox txtbx = (TextBox)sender;            
     GridEditFormItem editFormItem = (GridEditFormItem)txtbx.NamingContainer;
     Label lbl = (Label)editFormItem.FindControl("DupCheck");
     if (CheckCIK(txtbx.Text))
         lbl.Text = "This CIK Already Exists";
     else
         lbl.Text = "";
 }

This works and it displays the message when it should, but when it refreshes the grid is locked and I am unabel to edit any of the text fields fields, but the drop down lists work and when ever I access a drop down that causes a postback the textboxes work again. 

Eric Klein
Top achievements
Rank 1
 answered on 08 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?