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

IE column width expands on ExpandCollapse command

5 Answers 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lukrs
Top achievements
Rank 2
Lukrs asked on 22 Apr 2009, 11:50 AM
Hi,

I've been trying a lot of diferent ways how to achieve that column width wouldn't expand when I try to expand parent nodes (IE).

Here is my aspx code. When child tables are viewed, IE simpli expands mastertableview columns.

Any help would be appreciated.

     <telerik:RadGrid ID="skupineGrid" runat="server" AllowAutomaticDeletes="True" EnableAJAX="true" Width="100%"

          AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
          AllowMultiRowSelection="True" AllowPaging="True"
          AllowSorting="True" SortingSettings-SortToolTip="Klikni tukaj za sortiranje"
          AutoGenerateColumns="False" AutoGenerateDeleteColumn="False"   
          AutoGenerateEditColumn="False" DataSourceID="skupineSource" GridLines="None"
          Skin="Vista"
          OnItemCommand="skupineGrid_ItemCommand"
          OnItemCreated="skupineGrid_ItemCreated"
          onitemdatabound="skupineGrid_ItemDataBound"
          oninsertcommand="skupineGrid_InsertCommand"
          onprerender="skupineGrid_PreRender">
          
          <PagerStyle Mode="NextPrevAndNumeric" ShowPagerText="True"
              PagerTextFormat="Stran: {4} &amp;nbsp;Prikazujem stran {0} od {1}, zapisov {2} do {3} od {5}."
              NextPagesToolTip="Naslednje strani" NextPageToolTip="Naslednja stran"
              PrevPagesToolTip="Prejšnje strani" PrevPageToolTip="Prejšnja stran"
              FirstPageToolTip="Prva stran" LastPageToolTip="Zadnja stran" />
          
           <ValidationSettings EnableValidation="false" />
           
            <MasterTableView DataSourceID="skupineSource" DataKeyNames="ID,checked" ClientDataKeyNames="ID" Width="100%"
              TableLayout="Auto" EditMode="InPlace" CommandItemDisplay="Top"
              CommandItemSettings-AddNewRecordText="Dodaj skupino"
              CommandItemSettings-RefreshText="Osveži" Name="Skupine"
              NoDetailRecordsText="V bazi ni zapisov o naslovnikih."
              NoMasterRecordsText="V bazi ni zapisov o skupinah.">

             
                
<CommandItemSettings AddNewRecordText="Dodaj skupino" RefreshText="Osveži"></CommandItemSettings>

    <Columns>
        <telerik:GridBoundColumn DataField="skupina" HeaderText="Skupina" HeaderButtonType="TextButton"
            UniqueName="skupina">
        </telerik:GridBoundColumn>
        <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderText="Uredi"
            UniqueName="EditCommandColumn">
            <HeaderStyle HorizontalAlign="Center" Width="50"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center" />
        </telerik:GridEditCommandColumn>
        <telerik:GridButtonColumn ConfirmText="Ali želite res izbrisati skupino?\n\nIzbrisali boste tudi vsa planirana sporočila (SMS + e-mail) namenjena tej skupini, tako kot tudi vezave naslovnikov na to skupino." ButtonType="ImageButton" HeaderText="Izbriši"
                    CommandName="Delete" UniqueName="DeleteColumn">
                    <HeaderStyle HorizontalAlign="Center" Width="50"></HeaderStyle>
                     <ItemStyle HorizontalAlign="Center" />
         </telerik:GridButtonColumn>  
         <telerik:GridTemplateColumn HeaderText="Pošlji SMS" UniqueName="SMS">
         <ItemTemplate>
             <asp:CheckBox ID="smscheck" runat="server" Enabled="true" />
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="Center" Width="80"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center" />
         </telerik:GridTemplateColumn>
   </Columns>


<DetailTables>
                    <telerik:GridTableView DataKeyNames="ID,checked" DataSourceID="naslovnikiSource"
                    EditMode="InPlace" CommandItemDisplay="Top"
                     CommandItemSettings-AddNewRecordText="Dodaj Naslovnika" Width="100%"
                     CommandItemSettings-RefreshText="Osveži"
                     NoDetailRecordsText="V tej skupini ni zapisov o naslovnikih." runat="server"
                     Name="Naslovniki">
                                  
              <PagerStyle Mode="NextPrevAndNumeric" ShowPagerText="True"
                  PagerTextFormat="Stran: {4} &amp;nbsp;Prikazujem stran {0} od {1}, zapisov {2} do {3} od {5}."
                  NextPagesToolTip="Naslednje strani" NextPageToolTip="Naslednja stran"
                  PrevPagesToolTip="Prejšnje strani" PrevPageToolTip="Prejšnja stran"
                  FirstPageToolTip="Prva stran" LastPageToolTip="Zadnja stran" />
              
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="skupID" MasterKeyField="ID" />
                        </ParentTableRelation>
                        
                        <CommandItemSettings AddNewRecordText="Dodaj Naslovnika" RefreshText="Osveži"></CommandItemSettings>
                        
                        <Columns>
                            <telerik:GridBoundColumn HeaderText="Ime" HeaderButtonType="TextButton"
                                DataField="ime" UniqueName="ime">
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn HeaderText="Telefonska številka(m)" HeaderButtonType="TextButton"
                                DataField="stevilka" UniqueName="stevilka">
                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn HeaderText="e-mail" HeaderButtonType="TextButton"
                                DataField="email" UniqueName="email">
                            </telerik:GridBoundColumn>
                                                        
                             <telerik:GridTemplateColumn UniqueName="LST" HeaderText="Skupine">
                             <ItemTemplate>
                                 <asp:ListBox ID="skupddl" Width="160" runat="server" Rows="5" SelectionMode="Multiple"></asp:ListBox>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" Width="80px"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center" />
                             </telerik:GridTemplateColumn>
                                                
                                   <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderText="Uredi"
                                        UniqueName="EditCommandColumn">
                                        <HeaderStyle HorizontalAlign="Center" Width="50"></HeaderStyle>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridEditCommandColumn>
                                    
                                    <telerik:GridButtonColumn ConfirmText="Ali želite res izbrisati naslovnika?\n\nIzbrisali boste tudi vsa planirana sporočila (SMS + e-mail) namenjena temu naslovniku." ButtonType="ImageButton" HeaderText="Izbriši"
                                                CommandName="Delete" UniqueName="DeleteColumn">
                                                <HeaderStyle HorizontalAlign="Center" Width="50"></HeaderStyle>
                                                 <ItemStyle HorizontalAlign="Center" />
                                     </telerik:GridButtonColumn>  
                                     
                                     
                                     <telerik:GridTemplateColumn HeaderText="Pošlji SMS" UniqueName="SMS">
                                     <ItemTemplate>
                                         <asp:CheckBox ID="smscheck" runat="server" Enabled="true" />
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" Width="80"></HeaderStyle>
                                        <ItemStyle HorizontalAlign="Center" />
                                     </telerik:GridTemplateColumn>
                                     
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>

</MasterTableView>

         <ClientSettings AllowKeyboardNavigation="True">
            <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
            <ClientEvents OnRowSelecting="RowSelecting" OnRowSelected="RowSelected" />
             <ClientMessages PagerTooltipFormatString="Stran: &lt;b&gt;{0}&lt;/b&gt; od &lt;b&gt;{1}&lt;/b&gt; strani" />
            </ClientSettings>

        
          <SortingSettings SortToolTip="Klikni tukaj za sortiranje"></SortingSettings>
          <StatusBarSettings LoadingText="Nalagam..." ReadyText="Pripravljen" />
          <HierarchySettings CollapseTooltip="Minimiziraj" ExpandTooltip="Maksimiziraj" />
    </telerik:RadGrid>



LP, Luka

5 Answers, 1 is accepted

Sort by
0
Lukrs
Top achievements
Rank 2
answered on 23 Apr 2009, 11:33 AM
Hi again...

Any ideas?

How can I get the mentioned priority support (24 h)  I got when we bought our package?



LP, Luka




0
Lukrs
Top achievements
Rank 2
answered on 26 Apr 2009, 10:55 PM
Helllllooooo?
0
Sebastian
Telerik team
answered on 27 Apr 2009, 06:59 AM
Hello Lukrs,

We guarantee response time in support tickets based on our support package during business days (Monday to Friday) as listed on this page on our site:

http://www.telerik.com/support/technical-support-options.aspx

Additionally, we provide answers in public forums posts around 95% of the time within 72 hours (although very often our responses take from 24 to 48 hours).

Therefore, if you would like your answers to be answered through a private support channel based on your purchase, I suggest you use our support ticketing system.

Regarding your question:
From your code snippets I see that you set TableLayout= Auto for the master table in the grid and at the same time Width = 100% and fixed widths for your master table columns. These setting conflict with each other, hence if you would like to keep the widths of the main/child table columns, you need to set TableLayout = Fixed for the master/detail tables.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Lukrs
Top achievements
Rank 2
answered on 27 Apr 2009, 10:49 PM
Hi Sebastian,

Thank you very much for your effective reply.

It worked like a charm, and I will gladly use your support ticket system from now on. I didn't find it obvious, that the 24h reply is based only on support tickets.

Also, for a beginner it is hard to notice, that the table layout property could be causing problems in IE if not set to Fixed. I think it could be automated, based on the "fixed widths for your master table columns" when you set them to be fixed.

Thanks again,
LP, Luka
0
Accepted
Sebastian
Telerik team
answered on 28 Apr 2009, 07:47 AM

Hello Lukrs,

I am glad that my explanation/directions were helpful.

Thank you for the suggestion as well - actually this would be the case unless you specified TableLayout = Auto explicitly or the size of the detail table requires the master table to be expanded to accommodate the child table columns.

Best regards,

Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Lukrs
Top achievements
Rank 2
Answers by
Lukrs
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or