Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
260 views
I have a Grid within a table cell <td></td> that I am having difficulty getting to render the way I want.  The Grid has too many columns to show in the table cell so I want the Grid to automatically size down and provide a scrollbar and still give me fully sized columns (for the data in that column.) 

1) In my original try, the entire Grid rendered and the table cell was too large and caused the entire table row to extend beyond all the other rows in the table.  All the columns were sized to the maximum data item size for that column.

2) In my next try, I set TABLELAYOUT="FIXED" for the MasterTableView.  The Grid then rendered within the table cell at the size I had set for the table cell. (The table row was also the same size as the other table rows.)  However, in this rendering, all the columns showed up similarly sized and too small - the text was cut off.  I can manually size the columns on the page and a horizontal scrollbar will appear for columns that get pushed out of the table cell. (I don't want the user to have to do this though.)

3) If I explicitly size each column's HEADERSTYLE WIDTH, I get what happens in #1 above, the entire Grid will render and the table cell will be too large and cause the entire table row to extend beyond all the other rows in the table - again.  I do not get a horizontal scrollbar for the Grid.

Is there a setting I'm missing or something I'm not taking into consideration?  Thanks, Lance

This is the code for #2, which is where I am so far:

<td colspan="2" width="60%">  
 
<telerik:RadGrid ID="trcrgFlightList" runat="server" AllowSorting="True" AutoGenerateColumns="False" GridLines="Horizontal" Height="180px" Skin="Vista" Width="100%" BorderStyle="Solid" ShowStatusBar="True" EnableHeaderContextMenu="True">  
 
<HeaderContextMenu Skin="Vista">  
 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
 
</HeaderContextMenu> 
 
<MasterTableView Font-Names="Tahoma" Font-Size="10pt" TableLayout="Fixed">  
 
<Columns> 
 
<telerik:GridBoundColumn HeaderText="ACID" ReadOnly="True" UniqueName="ACID" DataField="ACID" Groupable="False" SortedBackColor="192, 255, 192">  
 
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" /> 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn HeaderText="Origin" ReadOnly="True" UniqueName="Origin" DataField="Origin" Groupable="False" SortedBackColor="192, 255, 192">  
 
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" /> 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn HeaderText="Dest." ReadOnly="True" UniqueName="Destination" DataField="Destination" Groupable="False" SortedBackColor="192, 255, 192">  
 
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" /> 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn HeaderText="OETD" ReadOnly="True" UniqueName="OETD" DataField="OETD" DataFormatString="{0:MM/dd/yyyy HH:mmZ}" DataType="System.DateTime" Groupable="False" SortedBackColor="192, 255, 192">  
 
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" /> 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn HeaderText="OETA" ReadOnly="True" UniqueName="OETA" DataField="OETA" DataFormatString="{0:MM/dd/yyyy HH:mmZ}" DataType="System.DateTime" Groupable="False" SortedBackColor="192, 255, 192">  
 
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" /> 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn HeaderText="ETD" ReadOnly="True" UniqueName="ETD" DataField="ETD" DataFormatString="{0:MM/dd/yyyy HH:mmZ}" DataType="System.DateTime" Groupable="False" SortedBackColor="192, 255, 192">  
 
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" /> 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn HeaderText="ETA" ReadOnly="True" UniqueName="ETA" DataField="ETA" DataFormatString="{0:MM/dd/yyyy HH:mmZ}" DataType="System.DateTime" Groupable="False" SortedBackColor="192, 255, 192">  
 
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" /> 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn HeaderText="CTD" ReadOnly="True" UniqueName="CTD" DataField="CTD" DataFormatString="{0:MM/dd/yyyy HH:mmZ}" DataType="System.DateTime" Groupable="False" SortedBackColor="192, 255, 192">  
 
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" /> 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn HeaderText="CTA" ReadOnly="True" UniqueName="CTA" DataField="CTA" DataFormatString="{0:MM/dd/yyyy HH:mmZ}" DataType="System.DateTime" Groupable="False" SortedBackColor="192, 255, 192">  
 
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" /> 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn HeaderText="ASLT" ReadOnly="True" UniqueName="ASLT" DataField="ASLT" Groupable="False" SortedBackColor="192, 255, 192">  
 
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" /> 
 
</telerik:GridBoundColumn> 
 
<telerik:GridBoundColumn HeaderText="Delay" ReadOnly="True" UniqueName="Delay" DataField="Delay" DataType="System.Int32" Groupable="False" SortedBackColor="192, 255, 192">  
 
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" /> 
 
</telerik:GridBoundColumn> 
 
</Columns> 
 
</MasterTableView> 
 
<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" ColumnsReorderMethod="Reorder">  
 
<Selecting AllowRowSelect="True" /> 
 
<Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
 
<Resizing AllowColumnResize="True" /> 
 
</ClientSettings> 
 
<FilterMenu Skin="Vista">  
 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
 
</FilterMenu> 
 
<HeaderStyle Font-Bold="True" /> 
 
</telerik:RadGrid> 
 
</td> 
 
LANCE NECKAR
Top achievements
Rank 1
 answered on 09 Mar 2009
2 answers
236 views
I have a radgrid where for some reason the columns that have NULL values are causing the radgrid column borders to disappear.  Here is an image of what is happening:

http://www.flyupload.com/get?fid=289027062

How can I prevent this from happening?

Thanks in advance for the help.

John.

John
Top achievements
Rank 1
 answered on 09 Mar 2009
4 answers
463 views
Hello
How can i select row (after rebind grid)  that seleted befor rebind.
The multi page of grid is true
Marty
Top achievements
Rank 1
 answered on 09 Mar 2009
3 answers
136 views
Hi, I have an issue.
I am using the radGrid, and when I try to insert or update a row with the insert/update command, nothing happens. The radGrid has both events assigned but they have never fired.

any idea?
Daniel
Telerik team
 answered on 09 Mar 2009
2 answers
239 views
Hi

I have an iFrame with RAD Editor in it.

I have a button outside the ifame.

How do i get text/html of the Editor while pressing the button?

I use alert(window.frames["iFramID"].getText()); but it doesn't seem to work.

What am i doing wrong?



izverg
Top achievements
Rank 1
 answered on 09 Mar 2009
0 answers
67 views
I can not find a way to have a day view grouped by resource, Is this currently implemented in the scheduler or do I need to code that into my app?  I like the multi-day view and it groups by resource, but I would need the other way as well.  I appreciate any suggestions.
Jody Harbour
Top achievements
Rank 1
 asked on 09 Mar 2009
1 answer
124 views
Dear All,

please to help me in this case by an example,,,

i have 3 radDockZone in the page
each radZone have some radDocks

when user move radDock from Zone to another Zone i need to save (for each radDock) the new zone , new index ,expand or collapsed and
open or close

so that each user change docks as he need and when visit the page next time,,, each dock position is as the user put,,, the user dont need every time visit the page to custom the docks as he need!!!

please to help me as soon as possible to store the docks location and other information (closed , collapsed ...etc) in cookies and how to load it when user visit the page next time

i know how to get the new zone and index but i can't do that

please to help me and thank you in advanced

Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 09 Mar 2009
1 answer
117 views
Ok maybe I am a newbie at this but I downloaded the RadMenu and it is a .msi file and I cannot open it. I have windows installer 4.5 the newest version and I just can't figure it out. I tried opening my msiexec but it just comes up with all the commands to use. I even tried typing the commands in my command prompt... I have noooo clue what to do.. Can anyone help me?
Paul
Telerik team
 answered on 09 Mar 2009
3 answers
106 views
I have a RadGrid with self referencing hierarchy.  I would like to sum all of the values below a collapsible row.  I have done this with a grid before using the GroupByExpressions (with aggregate="sum").  However, with the Self-referencing structure, I cannot also add the GroupByExpressions.  Is there a way to sum the values in this type of grid?
Tsvetoslav
Telerik team
 answered on 09 Mar 2009
3 answers
217 views
I am wondering what control I use to get the ability to collapse some text. For example on this page: http://demos.telerik.com/aspnet-ajax/grid/examples/client/livedata/defaultcs.aspx if you search for the text "Example Source Code & Description", you can see that you can click it to collapse or expand the text below it. What control is that using and how do I style it similarly to that look?

Paul
Telerik team
 answered on 09 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?