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

[Solved] Clicking on Row expands the grid

3 Answers 132 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 11 Dec 2009, 03:21 PM
I have the grid with the following settings.  What is happening is when I click on the row the grid expands to the right and goes off screen.  What would be causing this?

 <telerik:RadGrid ID="RadGrid2"    
          AllowMultiRowSelection="True"   
          AllowSorting="True" 
          AllowNaturalSort="True"   
          AutoGenerateColumns="False"   
          AlternatingItemStyle-HorizontalAlign="Center" 
          BackColor="#ffffff"   
          CellPadding="2"   
          CellSpacing="2"   
          GridLines="None"   
          GroupingEnabled="False" 
          HeaderStyle-Height="20"   
          Height="200"   
          ItemStyle-HorizontalAlign="Center"   
          OnItemCommand="RadGrid2_ItemCommand"   
          OnItemDataBound="RadGrid2_ItemDataBound"   
          SelectedItemStyle-ForeColor="#000000"                         
          SelectedItemStyle-BackColor="lightyellow"    
          ShowHeader="True"   
          Skin="Telerik"   
          Width="100%"   
          runat="server">  
 
   <MasterTableView AllowMultiColumnSorting="False" DataKeyNames="ID,NUMBER" EditMode="InPlace" TableLayout="Fixed" HeaderStyle-Wrap="false" Width="100%">  
     <Columns> 
     .............  
     </Columns> 
    </MasterTableView> 
         <ClientSettings AllowColumnsReorder="True">  
             <Resizing AllowColumnResize="True" AllowRowResize="False" ResizeGridOnColumnResize="False" /> 
             <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"/>  
             <Selecting AllowRowSelect="True" /> 
          </ClientSettings> 
</telerik:RadGrid> 

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 14 Dec 2009, 08:27 AM
Hello Mike,

How do you bind the Grid to a database? Please note that hierarchical grid structure is not supported with simple data-binding(calling DataBind() ). If this is the case, try binding the Grid using the NeedDataSource event and let me know about the result.

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Mike
Top achievements
Rank 1
answered on 14 Dec 2009, 01:58 PM
What?  Did you mean to answer someone elses question because it does not apply to mine.
0
Pavlina
Telerik team
answered on 16 Dec 2009, 01:55 PM
Hello Mike,

I followed your scenario in order to replicate the issue but to no avail. Please find attached a simple runnable application which is working as expected. Give it a try and let me know what is the difference in your scenario.

I hope this helps.
 
Greetings,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Mike
Top achievements
Rank 1
Share this question
or