This is a migrated thread and some comments may be shown as answers.

RadGrid disappears on mouse move

2 Answers 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
SWETHA MANDAVA
Top achievements
Rank 1
SWETHA MANDAVA asked on 30 Nov 2010, 12:29 AM
I ve encountered  this wierd problem of the RadGrid disappearing on mouse over when edit button pressed.
This occurs only in Internet Explorer while works fine in FireFox.  
The master page is default which comes with 2010.
I ve been using the Feb release of Telerik and VS 2010
I even attach the output file where left part is in Firefox,right part in IE.

Hope you help me out!

RadGrid Source

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" 
              AllowSorting="True" AutoGenerateColumns="False" AllowMultiRowEdit="True" DataKeyNames="TradeBreakTxnID"
              DataSourceID="SqlDataSource2" GridLines="Vertical"
               Skin="Black" Height="500px" onneeddatasource="RadGrid1_NeedDataSource"
              Width="1186px" Visible="False" onItemDataBound="Data_OnItemDataBound"  
              AllowMultiRowSelection="True" Font-Names="Times New Roman" 
                                HorizontalAlign="Center">
              <clientsettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                  <Selecting AllowRowSelect="True" />
<Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
                  <resizing allowcolumnresize="True" />
              </clientsettings>
<ClientSettings>
 <Selecting AllowRowSelect="True" EnableDragToSelectRows="True" />
 
<Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
 
<Resizing AllowColumnResize="True"></Resizing>
  </ClientSettings>
<MasterTableView datasourceid="SqlDataSource2" CommandItemDisplay="Top" EditMode="InPlace"
                  AllowAutomaticUpdates="True" AllowAutomaticDeletes="true" DataKeyNames="TradeBreakTxnID">
    
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
 
 
 <Columns>
      <telerik:GridBoundColumn DataField="TradeBreakTxnID" HeaderText="TradeBreakTxnID"
            ReadOnly="true" SortExpression="TradeBreakTxnID"
         UniqueName="TradeBreakTxnID" HeaderStyle-Width="30px"  Visible="true"
          DataType="System.Int32"  >
<HeaderStyle Width="30px"></HeaderStyle>
          </telerik:GridBoundColumn>
    <telerik:GridBoundColumn DataField="Manager" HeaderText="Manager"
         SortExpression="Manager" UniqueName="Manager"  ReadOnly="True"  HeaderStyle-Width="100px">
<HeaderStyle Width="100px"></HeaderStyle>
         </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Product" HeaderText="Product"
         SortExpression="Product" UniqueName="Product"  ReadOnly="True"  HeaderStyle-Width="90px" >
<HeaderStyle Width="90px"></HeaderStyle>
         </telerik:GridBoundColumn>
       <%-- <telerik:GridBoundColumn DataField="AccountNo"  ReadOnly="True" HeaderText="AccountNo"
            SortExpression="AccountNo" UniqueName="AccountNo"
         HeaderStyle-Width="130px">
        </telerik:GridBoundColumn>--%>
        <telerik:GridBoundColumn DataField="Account"
            HeaderText="Account" SortExpression="Account"   ReadOnly="True" UniqueName="Account"
         HeaderStyle-Width="60px">
<HeaderStyle Width="60px"></HeaderStyle>
         </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Price" DataType="System.Decimal"  ReadOnly="True"
            HeaderText="Price" SortExpression="Price" UniqueName="Price"  
          HeaderStyle-Width="60px">
<HeaderStyle Width="60px"></HeaderStyle>
         </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="TradeDate"   ReadOnly="True"
            HeaderText="TradeDate" SortExpression="TradeDate" HeaderStyle-Width="85px"
            UniqueName="TradeDate">
<HeaderStyle Width="85px"></HeaderStyle>
         </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ContractDate" HeaderText="Contract<br/>Date"   ReadOnly="True"
            SortExpression="ContractDate" UniqueName="ContractDate"
         HeaderStyle-Width="50px" DataType="System.Int32">
<HeaderStyle Width="50px"></HeaderStyle>
         </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="B/S" HeaderText="B/S"  ReadOnly="True"
           SortExpression="B/S" UniqueName="B/S" HeaderStyle-Width="25px"
<HeaderStyle Width="25px"></HeaderStyle>
         </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="FCM Quantity"  ReadOnly="True"
            HeaderText="FCM Quantity"   SortExpression="FCM Quantity" HeaderStyle-Width="50px"
            UniqueName="FCM Quantity" >
<HeaderStyle Width="50px"></HeaderStyle>
         </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Manager Quantity"
          HeaderText="Manager Quantity"  ReadOnly="True"
            SortExpression="Manager Quantity" UniqueName="Manager Quantity"
          HeaderStyle-Width="60px">
<HeaderStyle Width="60px"></HeaderStyle>
         </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Difference" HeaderText="Difference"
            SortExpression="Difference" UniqueName="Difference" ReadOnly="True"
         HeaderStyle-Width="65px">
<HeaderStyle Width="65px"></HeaderStyle>
         </telerik:GridBoundColumn>
 
 
<%--  <telerik:GridTemplateColumn UniqueName="MatchEdit" HeaderText="MatchEdit" HeaderStyle-Width="30px">  
        <ItemTemplate>
            <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="true" checked="false" OnCheckedChanged="CheckBox1_CheckedChanged"  />
        </ItemTemplate>         
 </telerik:GridTemplateColumn>  --%>
  
     <telerik:GridDropDownColumn DataField="MatchType" HeaderText="Match<br/>Type" 
          ReadOnly="False"  HeaderStyle-Width="80px"
         SortExpression="MatchType" UniqueName="MatchType" DataSourceID="DropDownList2_DataSource" ListTextField="MatchType" ListValueField="MatchType">
<HeaderStyle Width="80px"></HeaderStyle>
      </telerik:GridDropDownColumn>
      <telerik:GridBoundColumn DataField="Comment"  HeaderStyle-Width="200px"
          HeaderText="Comment" ReadOnly="false" SortExpression="Comment"
          UniqueName="Comment" Visible="true">
<HeaderStyle Width="200px"></HeaderStyle>
       </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="Note" HeaderText="Note"  HeaderStyle-Width="100px"
          ReadOnly="True" SortExpression="Note" UniqueName="Note" Visible="false">
<HeaderStyle Width="100px"></HeaderStyle>
       </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="UpdateDttm" HeaderText="UpdateDttm"  HeaderStyle-Width="150px"
          ReadOnly="True" SortExpression="UpdateDttm" UniqueName="UpdateDttm"
          DataType="System.DateTime" Visible="true">
<HeaderStyle Width="150px"></HeaderStyle>
       </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="UpdateUser" HeaderText="UpdateUser" HeaderStyle-Width="210px"
          ReadOnly="True" SortExpression="UpdateUser" UniqueName="UpdateUser" Visible="true"  >
<HeaderStyle Width="210px"></HeaderStyle>
       </telerik:GridBoundColumn>
        
 
 
      <telerik:GridTemplateColumn DataField="FileName" HeaderText="FileName"  HeaderStyle-Width="250px"
          ReadOnly="False" SortExpression="FileName" UniqueName="FileName">
          <ItemTemplate>
            <asp:LinkButton ID="LinkButton2" runat="server" OnClick="Retreive_Doc" Text='<%# Bind("FileName") %>'></asp:LinkButton>
          </ItemTemplate>
          <EditItemTemplate>
            <telerik:RadUpload ID="RadUpload2" runat="server"    Skin="Outlook" ControlObjectsVisibility="None" MaxFileInputsCount="1" ReadOnlyFileInputs="true" ></telerik:RadUpload>
             <asp:Button ID="InsertDoc" runat="server" OnClick="InsertDoc_Click" Text="Add"  BackColor="#000" ForeColor="White" Width="60px"/>
                       <asp:Button ID="Button1" runat="server" OnClick="Delete_Click" Text="Delete"  BackColor="#000" ForeColor="White" Width="60px"/>
 
          </EditItemTemplate>
 
  
<HeaderStyle Width="210px"></HeaderStyle>
 
  
      </telerik:GridTemplateColumn>
 
 
    </Columns>
 
     <CommandItemTemplate>
                    <div style="padding: 5px 5px;background-color:#000000">
                        <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# RadGrid1.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="/TradeBreak/images/Edit.gif" />Edit selected</asp:LinkButton>  
                        <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# RadGrid1.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="/TradeBreak/images/Update.gif" />Update</asp:LinkButton>  
                        <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# RadGrid1.EditIndexes.Count > 0 || RadGrid1.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="/TradeBreak/images/Cancel.gif" />Cancel editing</asp:LinkButton>  
                        <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete selected Trade?')"   runat= "server" CommandName="DeleteSelected"><img style="border:0px" alt="" src="/TradeBreak/images/Delete.gif" /> Delete Trade</asp:LinkButton>
                         <asp:LinkButton ID="LinkButton4" runat="server" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="" src="/TradeBreak/images/Refresh.gif" />Refresh</asp:LinkButton>
                     </div>
                </CommandItemTemplate>
 
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
</MasterTableView>
              <HeaderStyle Font-Bold="True" HorizontalAlign="Center" />
              <SelectedItemStyle BackColor="Black" />
  </telerik:RadGrid>

2 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 02 Dec 2010, 10:56 AM
Hello SWETHA,

From the provided code snippet I saw that you use the declarative DataSource to bind the RadGrid, however you also attach a handler to NeedDataSource event which is used for Advanced Data-binding. Could you please try removing one of the bindings and let me know if the issue still exists. Also could you please try setting the RadGrid to be initially visible, by setting its Visible property to true:
Looking forward for your reply.

All the best,
Radoslav
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
SWETHA MANDAVA
Top achievements
Rank 1
answered on 02 Dec 2010, 11:49 PM
 
Tags
Grid
Asked by
SWETHA MANDAVA
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
SWETHA MANDAVA
Top achievements
Rank 1
Share this question
or