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

Expand / collapse grid messes

2 Answers 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Francisco
Top achievements
Rank 1
Francisco asked on 22 Nov 2012, 03:33 PM
By expanding one by one of my main grid subgrillas I have no problems, but when I open and close and all I have left some of the grid lines that are not well, stay on top of the data

Expand all
Expand and Collapse
Expand and Collapse 2

<asp:Panel id="pnlVoyage" runat="server" width="1400">
<radG:RadGrid ID="RadGrid1" runat="server" PageSize="6"  Width="1400px" AllowMultiRowSelection="True" 
AllowPaging="True" AllowSorting="False"  AutoGenerateColumns="False" Skin="BDS" Visible="false">
 
<ClientSettings AllowDragToGroup="false" AllowGroupExpandCollapse="true"  AllowExpandCollapse = "true">
<Selecting AllowRowSelect="false" ></Selecting>
</ClientSettings>
<MasterTableView Width="100%" runat="server" AllowPaging="false" DataKeyNames="call_id" HierarchyLoadMode="Client">
<DetailTables>
<radG:GridTableView runat="server" DataKeyNames="call_id" Name="Table" Width="100%" HierarchyLoadMode="Client"
AllowAutomaticUpdates="true" AllowPaging="false" Font-Size="11px">
<Columns>
    <radG:GridBoundColumn ItemStyle-Width="123" HeaderStyle-Width="123" HeaderStyle-Height="21" ReadOnly="true"  HeaderText="" HeaderButtonType="TextButton" DataField="tipo"></radG:GridBoundColumn>
    <radG:GridBoundColumn ItemStyle-Width="190" HeaderStyle-Width="190"  ReadOnly="true"  HeaderText="Date" HeaderButtonType="TextButton" DataField="date"></radG:GridBoundColumn>
    <radG:GridBoundColumn ItemStyle-Width="100" HeaderStyle-Width="100" ReadOnly="true"  HeaderText="TEU Avail" HeaderButtonType="TextButton" DataField="TEUSTOTAL"></radG:GridBoundColumn>
    <radG:GridBoundColumn ItemStyle-Width="100" HeaderStyle-Width="100"  ReadOnly="true"  HeaderText="Weight Avail" HeaderButtonType="TextButton" DataField="WEIGHTTOTAL"></radG:GridBoundColumn>
    <radG:GridBoundColumn ItemStyle-Width="100" HeaderStyle-Width="100"  ReadOnly="true"  HeaderText="Plugs Avail" HeaderButtonType="TextButton" DataField="PLUGSTOTAL"></radG:GridBoundColumn>
</Columns>
</radG:GridTableView>
</DetailTables>
 
<Columns>
<radG:GridBoundColumn ItemStyle-Width="123" HeaderStyle-Width="123" ReadOnly="true"  HeaderText="Port" HeaderButtonType="TextButton" DataField="port_id"></radG:GridBoundColumn>
<radG:GridBoundColumn ItemStyle-Width="190" HeaderStyle-Width="190" ReadOnly="true"  HeaderText="Date" HeaderButtonType="TextButton" DataField="etd"></radG:GridBoundColumn>
 
<radG:GridTemplateColumn ItemStyle-Width="100" HeaderStyle-Width="100" HeaderText="TEU Avail" HeaderButtonType="TextButton" DataField="TEUSTOTAL">
<ItemTemplate>
    <%# IIf(DataBinder.Eval(Container.DataItem, "TEUSTOTAL") < 0, "<font color='red'>", "") %>
    <%# IIf(DataBinder.Eval(Container.DataItem, "TEUSTOTAL") = 0, "-", DataBinder.Eval(Container.DataItem, "TEUSTOTAL")) %>
    <%# IIf(DataBinder.Eval(Container.DataItem, "TEUSTOTAL") < 0, "</font>", "") %>
</ItemTemplate>
</radG:GridTemplateColumn>
<radG:GridTemplateColumn ItemStyle-Width="100" HeaderStyle-Width="100" HeaderText="Weight Avail" HeaderButtonType="TextButton" DataField="WEIGHTTOTAL">
<ItemTemplate>
    <%# IIf(DataBinder.Eval(Container.DataItem, "WEIGHTTOTAL") < 0, "<font color='red'>", "") %>
    <%# IIf(DataBinder.Eval(Container.DataItem, "WEIGHTTOTAL") = 0, "-", DataBinder.Eval(Container.DataItem, "WEIGHTTOTAL")) %>
    <%# IIf(DataBinder.Eval(Container.DataItem, "WEIGHTTOTAL") < 0, "</font>", "") %>
</ItemTemplate>
</radG:GridTemplateColumn>
<radG:GridTemplateColumn ItemStyle-Width="100" HeaderStyle-Width="100" HeaderText="Plugs Avail" HeaderButtonType="TextButton" DataField="PLUGSTOTAL">
<ItemTemplate>
    <%# IIf(DataBinder.Eval(Container.DataItem, "PLUGSTOTAL") < 0, "<font color='red'>", "") %>
    <%# IIf(DataBinder.Eval(Container.DataItem, "PLUGSTOTAL") = 0, "-", DataBinder.Eval(Container.DataItem, "PLUGSTOTAL")) %>
    <%# IIf(DataBinder.Eval(Container.DataItem, "PLUGSTOTAL") < 0, "</font>", "") %>
</ItemTemplate>
</radG:GridTemplateColumn>
</Columns>                   
</MasterTableView>
</radG:RadGrid>
</asp:Panel>

2 Answers, 1 is accepted

Sort by
0
Francisco
Top achievements
Rank 1
answered on 23 Nov 2012, 12:38 PM
Please...
0
Eyup
Telerik team
answered on 27 Nov 2012, 10:11 AM
Hello Francisco,

Please note that custom created controls are not supported even if they are inherited directly from RadControls.

Try using a regular <telerik:RadGrid> declaration and if the issue still remains, please open a support ticket to send us a sample runnable application demonstrating the problematic appearance or provide us the exact steps to reproduce the issue. Thus, we will be able to further analyze the issue and provide a proper solution.

Greetings,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Francisco
Top achievements
Rank 1
Answers by
Francisco
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or