Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
147 views
Hi,

I have a grid with a lot of columns.
4 Columns show "who and when" and the rest shows quantities.
So the idea is to freeze the first 4 columns and enable the others to scroll.
I tried this - but there are a lot of "strange things" going on - it's not usable.
I guess (not sure) these problems occur because the columns have a different width.
To see what I mean I prepared a video:
http://www.pp-p.net/scrollproblem/

Normally each grid has some 100 rows - I reduced (and modified) the data because it is sensible.

If I set the width of the scrolling columns to equal values - two columns are missing :)
The first 4 columns have different size in this case...
I can compensate this by adding two "dummy columns".

If I set all columns to the same width - all columns are there - but the last one is "to small" (about half the width I set).
I can compensate this by setting the last column to a larger width.
But than the column is gone - again I have to add a dummy column.

To be more precise:
As you can see from my video the first column is about 130px the next is 70px and the next two are 60px.
This gives 320 pixels for the first four (the static one) columns.
My widest column has to be 135 pixels.
If I set all columns to the same width - this would mean that I need 540 pixels for the first 4 columns.
That's more than half of the space I have - 900 pixels.
In other words - setting all columns to the same width brings (visible at one time):
4 static + 2.5 scrolling columns.
With different column sizes I see 4 static plus 8 (!!) scrollable columns.
To see 8 out of 11 is ok - but 2.5 is more than useless.

Questions:
a.) Am I right that for horizontal scrolling all columns must have the same width?
b.) if a.) is true - is there (a simple) way to fix this (workaround)?
For b.) 
- it must be really simple (the customer is used to scroll the whole grid - no frozen columns)
-----so frozen columns is more or less a "free addition" for the new version of the project
- it must be a solution that is flexible (number and needed width of the value columns changes).

Regards

Manfred


Dimo
Telerik team
 answered on 06 Jan 2010
1 answer
132 views
When I use the RadWindow as a static controls container and add any content within the <ContentTemplate> tags the right border of my window gets cut off.  As soon as I remove everything from within the <ContentTemplate> tags, the border shows correctly.

The attached screenshots show the two different situations.  You can see that even plain text causes the problem to occur.

<telerik:RadWindow ID="HeaderWindow" runat="server" Title="Header" Width="950" Skin="WebBlue"
                    Height="400" Left="10" Top="48" VisibleOnPageLoad="true" Behaviors="None" IconUrl="../../images/invoice_16.png" 
                        VisibleStatusbar="False" Animation="Slide" EnableTheming="True">
                        <ContentTemplate>
                            Just Text
                        </ContentTemplate>
                    </telerik:RadWindow>

Thanks,
Jeff

Edit: Not sure why I didn't notice before but it also seems to be affecting the left border as well.
Georgi Tunev
Telerik team
 answered on 06 Jan 2010
2 answers
78 views
Hi all,

To question:
1: Can any of you tell me why my comboxbox not fill out the cell in my table when the width is set to 100%?
2: Why is there some weird color beneath the combobox?

The code for my combobox is:
<telerik:RadComboBox ID="RcbDepot" runat="server" HighlightTemplatedItems="true" AllowCustomText="false" OnInit="RcbDepot_Init" Width="100%" /> 

The combobox looks like the attached picture.

Thanks in advance!
Kamen Bundev
Telerik team
 answered on 06 Jan 2010
3 answers
145 views
We have an issue for one of the pages.
When I access the page with an IP address telerik based content renders correctly.
However, when I access the page with a computer name telerik based content is not alligned correctly.
Have anyone had similar problem, and how did you resolve it?
Dimo
Telerik team
 answered on 06 Jan 2010
2 answers
115 views
Hello. Here is what I try to do. A user clicks on the row in the radgrid, and then the code is running on the server. Please note the unusual construction of the radgrid. Is there any way to do this ?

rik:RadGrid ID="gv_umowy" runat="server" DataSourceID="sql_moje_umowy" AutoGenerateColumns="False" 
            GridLines="None" AllowSorting="True">  
            <MasterTableView DataKeyNames="id_umo" DataSourceID="sql_moje_umowy">  
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="nazwa_kh" HeaderText="Kontrahent" HeaderStyle-Width="200px" 
                        ItemStyle-Width="200px">  
                        <HeaderStyle Width="200px"></HeaderStyle> 
                        <ItemStyle Width="200px"></ItemStyle> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="nr_ewidencyjny" HeaderText="Nr umowy AU" HeaderStyle-Width="90px" 
                        ItemStyle-Width="90px">  
                        <HeaderStyle Width="90px"></HeaderStyle> 
                        <ItemStyle Width="90px"></ItemStyle> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="waznosc_umowy" HeaderText="Data obowiÄ…zywania" 
                        DataFormatString="{0: dd-MM-yyyy}" HeaderStyle-Width="90px" ItemStyle-Width="90px">  
                        <HeaderStyle Width="90px"></HeaderStyle> 
                        <ItemStyle Width="90px"></ItemStyle> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="odpowiedzialna" HeaderText="Osoba odpowiedzialna" 
                        HeaderStyle-Width="90px" ItemStyle-Width="90px">  
                        <HeaderStyle Width="90px"></HeaderStyle> 
                        <ItemStyle Width="90px"></ItemStyle> 
                    </telerik:GridBoundColumn> 
                </Columns> 
                <ItemTemplate> 
                    <a href="#" target="_blank" onclick="klik('<%#Eval("id_umo")%>')">  
                        <table border="0" align="left" width="100%">  
                            <tr> 
                                <td width="200px">  
                                    <%#IIf(Len(Eval("nazwa_kh")) > 32, Left(Eval("nazwa_kh"), 32) + "...", Eval("nazwa_kh"))%> 
                                </td> 
                                <td width="90px">  
                                    <%#Eval("nr_ewidencyjny")%> 
                                </td> 
                                <td width="90px">  
                                    <%#IIf(Eval("waznosc_umowy") = "1900-01-01", "bezterminowa", String.Format("{0:d}", Eval("waznosc_umowy")))%> 
                                </td> 
                                <td width="90px">  
                                    <%#Eval("odpowiedzialna")%> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td colspan="5" width="100%">  
                                    <b> 
                                        <%#Eval("opis")%></b>  
                                </td> 
                            </tr> 
                        </table> 
                    </a> 
                </ItemTemplate> 
            </MasterTableView> 
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" AllowDragToGroup="True">  
                <Selecting AllowRowSelect="True" /> 
                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
Krzysztof
Top achievements
Rank 1
 answered on 06 Jan 2010
4 answers
552 views

Hi, 
 
I want to implement the multicolumn sorting for radgrid placed in the user control .i have some default sorting (multi column) depends on the page where the user control is used . so , i have used the following code to set the default sorting in the user control ,

<

 

SortExpressions>

 

 

<telerik:GridSortExpression FieldName="SupplierDueDate" SortOrder="Ascending" />

 

 

<telerik:GridSortExpression FieldName="CountyName" SortOrder="Ascending" />

 

 

<telerik:GridSortExpression FieldName="Municipality" SortOrder="Ascending" />

 

 

<telerik:GridSortExpression FieldName="PostalCode" SortOrder="Ascending" />

 

 

<telerik:GridSortExpression FieldName="CooperativeHousing" SortOrder="Ascending" />

 

</

 

SortExpressions>

Then i planned to change these settings(i.e) the columns  programmatically in the server side (to overrride these settings based on the page) like these:

 

 

case "MyOrders":

 

 

 

 

 

 

 

 

 

this.grdOrderList.MasterTableView.SortExpressions.Clear();

 

sortExpr =

new GridSortExpression();

 

sortExpr.FieldName =

"CreatedTime";

 

sortExpr.SortOrder =

GridSortOrder.Ascending;

 

 

this.grdOrderList.MasterTableView.SortExpressions.AddSortExpression(sortExpr);

 

 

break;

 

 

But this seems not working ... since using the sortExpression.Clear() i see a small command button in the headers of the column(just beside the column name ) .... please tell  me where im going wrong with the possible solution to implement the above 

thanks in advance,
Balajee


 



Balajee Vasudevan
Top achievements
Rank 1
 answered on 06 Jan 2010
1 answer
106 views
Hi,
I am using your Rad Scheduler and have customized the Advanced Form by studying it from MSDN topic "Customize The Advance Form Template". I would like to know I have added two dropdown controls in it. Data binding is done programmatically to sharepoint list. Problem I am facing is that the textbox controls I have added to the defaultScheduler form works fine. I am getting the value I entered in it. I have made two seperate drop down controls (like in the demo Telerik have provided ResourceControl). Each is seperately binded. When I click Insert in the Adavanced Form, I dont get the selected value in the drop down. Please assist me with this. How can i get the value selected in the drop down Box.

Yours Truly
Hammad Haneef Pasha
T. Tsonev
Telerik team
 answered on 06 Jan 2010
1 answer
150 views
I have a situation where I have several nested radgrids on the same page. The page takes a very time to load, mostly to the heavy amount of code on the rest of the page. I am not able to refactor this page at the time. The client needs to be able to add multiple rows to various grids, and then when the form is posted back, all of the rows are added. In addition, they need to be able to edit / delete rows. Currently this works through viewstate, which I have already moved to a session state persister to increase performance. If there is an example of this behavior, that would be great. I'm not afraid of writing a little javascript either.
Pavlina
Telerik team
 answered on 06 Jan 2010
3 answers
177 views
Hi All

Have a grid with some datas from a table M_Products (ProductID, Name, ItemID).

While Edit or Add New Record is clicked, Need to show another grid with datas from M_Item table (ItemID, Item Name).

This is due to, Have to display all the items with (M_Product.ItemID=M_Item.ItemID).

So have to show another grid inside EditItemTemplate.

Please could I know is there any possible way.

Thank You.

-Anto




Princy
Top achievements
Rank 2
 answered on 06 Jan 2010
1 answer
149 views
Hi there

I am new at this, so please bear with me
I've looked at all the different demos and read numerous threads, but I was unable to find how to do the following

I have two tabs opened at the same time (IE), and I would like to transfer 2 strings from tab1 to tab2 when e SEARCH button is pressed.

The 2 strings are in textboxes in tab1 and I would like them to be transfered to their corresponding filter fields in tab2, where the radgrid is.
Once the transfer of strings and focus is set on tab2, the grid will filter to display the corresponding records found.

(The radgrid on tab2 already filters by itself as soon as you put a value on any of the filters)

I hope someone can help.



Radoslav
Telerik team
 answered on 06 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?