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

I have a page with cross-browser support

<form id="form1" runat="server">
     <script language="javascript" type="text/javascript">

         if (navigator.userAgent.indexOf('MSIE') != -1) {

           // alert("IE");

             document.write('<link rel="stylesheet" type="text/css" href="CSS/StyleSheet.ie7.css" mce_href="CSS/StyleSheet.ie7.css" />')
         }

         else {
           // alert("firefox");
             document.write('<link rel="stylesheet" type="text/css" href="CSS/StyleSheet.firefox.css" mce_href="CSS/StyleSheet.firefox.css" />')

         }
      
</script>


using 2 different style sheets.

FF:

.tableDruckauftrag
{
    position: absolute;
    top: 250px;
    left: 203px;
    right: 113px;
}

IE:

.tableDruckauftrag
{
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline;
    
}

Grid:

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"
                    GridLines="None" AllowMultiRowSelection="True"  Skin="Web20"
                    AllowPaging="True" AutoGenerateColumns="False" CssClass="tableDruckauftrag"
                    PageSize="5" ShowFooter="True" AllowCustomPaging="True">
<MasterTableView datakeynames="AuftragsnummerID"
                        datasourceid="SqlDataSource1">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

    <Columns>
        <telerik:GridBoundColumn DataField="AuftragsnummerID" DataType="System.Int32"
            HeaderText="Auftragsnummer" ReadOnly="True" SortExpression="AuftragsnummerID"
            UniqueName="AuftragsnummerID">
            <HeaderStyle Width="20px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Datum" HeaderText="Datum"
            SortExpression="Datum" UniqueName="Datum" DataType="System.DateTime">
            <HeaderStyle Width="20px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EmpfaengerFirma"
            HeaderText="Firma" SortExpression="EmpfaengerFirma"
            UniqueName="EmpfaengerFirma">
            <HeaderStyle Width="30px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EmpfaengerStadt" HeaderText="Ort"
            SortExpression="EmpfaengerStadt" UniqueName="EmpfaengerStadt">
            <HeaderStyle Width="30px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="AnzahlPakete" HeaderText="Kuchen"
            SortExpression="AnzahlKuchen" UniqueName="AnzahlKuchen">
            <HeaderStyle Width="15px" />
        </telerik:GridBoundColumn>
        <telerik:GridCheckBoxColumn DataField="LabelDrucken" DataType="System.Boolean"
            HeaderText="Kuchen" SortExpression="Kuchen"
            UniqueName="Kuchen" Visible="False">
            <HeaderStyle Width="10px" />
        </telerik:GridCheckBoxColumn>
        <telerik:GridClientSelectColumn Text="Drucken" UniqueName="column">
        </telerik:GridClientSelectColumn>
    </Columns>
    <PagerStyle PagerTextFormat="" />
</MasterTableView>
                    <ClientSettings>
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                </telerik:RadGrid>




Every Telerik control is positioned well, but not the Grid. It is positioned well in FF, but not in IE7.

I have tried a lot to solve it over the last days but I am failing. The problem is that once I am changing something in the FF CSS it results in changes in IE and vice versa.

I am struggeling with the desing-time mode of the Grid. Only moving it manually in design-time helps positioning it in IE

Any hints are very much appreciated.

Best wishes

Andi
Dimo
Telerik team
 answered on 01 Dec 2009
1 answer
346 views
Hi Eveybody,

I built a page where there is a grid component, and then I accomplished to chage of its style. But I needed to put filter on the grid and I havent been accomplishing to change filter style of grid.

There are some columns on this grid, and there is a date column where there is a date filter for it. so the user clicks on date filter and he/she choose a date and then the grid is filtered with date that user choosed.

I have been needding to change this filter style, but I havent accomplished. The grid style is Office2007 and I setted this style with 

 

EnableEmbeddedSkins="false".

 

 


Also,  I need to set period of time the date filter, How can I do it too?

Has Somebody ever had this problem and situation? Can you help me, please?

Thank you for all attention,

Carlos

 

 

Dimo
Telerik team
 answered on 01 Dec 2009
1 answer
132 views
Does anyone have any tips/tricks for improving export to Excel performance in radgrid?

I have a grid linked to a stored procedure in needdatasource.  The stored procedure returns data in 65 seconds and the grid is fully displayed 11 secs later (with paging).  The datasource is  54 columns and 38,000 rows.  I am very happy with this performance on the front end.


   <telerik:RadGrid ID="RadGrid1" runat="server" PageSize="5" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true"> 
        </telerik:RadGrid> 
 


When exporttoexcel is called, the process to export is taking nearly 9 minutes.  With the first minute being the stored procedure.  The server is a quad core windows 2008 server.   Currently using build 1124.   Memory usage jumps approx 1.3GB during the 8 minute span which is my biggest concern at the moment.

    Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource 
        Dim sql As String 
        sql = "exec sp_Export" 
        RadGrid1.DataSource = dal.GetDataTableNoTimeout(sql) 
    End Sub 
 
 
    Protected Sub btnExport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExport.Click 
        RadGrid1.ExportSettings.FileName = "myfilename" 
        RadGrid1.ExportSettings.ExportOnlyData = True 
        RadGrid1.ExportSettings.IgnorePaging = True 
        RadGrid1.MasterTableView.ExportToExcel() 
    End Sub 


The resulting spreadsheet is approx 27mb.  I realize this is very large, but the memory usage and time spent for the server to process just doesn't seem proportional.

Thanks for any tips you can provide.

-Joel
Yavor
Telerik team
 answered on 01 Dec 2009
1 answer
272 views
I was wondering how to control the formatting of the file explorer control thru skins?

The skins directory for this control only contains a .gif file of what it looks like.  The only .Css file I see for the control is located outsides the skin directory.

When I change the control to use a custom skin I made, it will use it for the tree potion of the control; but the rest of the control will not be changed.

I want to be able to change the fonts and padding of the AddressBox of the control, but dont' see a way to do it.
Martin
Telerik team
 answered on 01 Dec 2009
6 answers
163 views
Hi,

Is there a way to disable row edition in the grid.?On click on edit button, I want the data from the row to be displayed in the server controls on the form for edition.For that I first of all need to disable edition in grid.
Jack Jim
Top achievements
Rank 1
 answered on 01 Dec 2009
1 answer
83 views
Hell Friends,

I am usig RadGrid with GridClientSelectColumn mention below:
<telerik:GridClientSelectColumn UniqueName="SelectColumn" />

when loading a page that time i would like to select all row with that column checkbox should be checked, and i am using following code, but it will not work, what was the wrong with that code in ItemCreated event, reply me.

if (e.Item.ItemType == GridItemType.Item)
            {
                GridDataItem item = (GridDataItem)e.Item;
                CheckBox checkBox = (CheckBox)item["SelectColumn"].Controls[0];
                
                checkBox.Checked = true;
            }
Princy
Top achievements
Rank 2
 answered on 01 Dec 2009
1 answer
135 views
Hi,

I've a radgrid with filters turned on. I found that filters are case sesitive. But in my project, they do not want the case sensitivity on filters.
For an item caleed abc, when entered abc or ABC , the filter should return the same result.
How do I enable this?
Shinu
Top achievements
Rank 2
 answered on 01 Dec 2009
6 answers
203 views
I'm observing strange behavior with the RadTextBox Multiline in firefox for the 2009.3.1103 version of the controls...

When typing into a multiline textbox, the textbox does not scroll as you type into the textbox.  The behavior does not happen in IE6,7,8, Safari, Opera or Chrome.

In my case, I have a 5 row Multiline RadText Box.  You Can continue to type, you just can't see what you are typing.

Anyone else see this happening?  This does NOT happen in the 2009.2.826 version of the controls.

Thanks, Kuba

EDIT:  FYI, the version of Firefox being used:  3.5.3
George
Top achievements
Rank 1
 answered on 30 Nov 2009
12 answers
331 views
Hi
i have checkbox column as below
            <grid:GridClientSelectColumn HeaderStyle-HorizontalAlign="Center"  HeaderStyle-Width="5%" UniqueName="cbxPortfolioTermMap"  HeaderText="" HeaderStyle-CssClass="columnheader"/>

if i click on any row the check box is checking out.. and if i click any other row other than the one seleted the checked one is unchecked and the selected is checking ..

if i particularly select /deselect check box alone it works fine.. but it is checking out when i click on the row of any column

how to remove the control on the row selection

please help
thanks
-krishna


Karim
Top achievements
Rank 1
 answered on 30 Nov 2009
3 answers
163 views
Hi,

I've a radgrid with gridclient select column.

I've paging turned on with pagesize 10.
My question is

1) when I select 2 items in first page and travel to next page and selct further 2 items, and click on delete , only the records from the second page gets deleted.
But I selected 2 records from first page too. so, how do I even make all items selcted across pages delted.
I don't want to select 2 records from 1 page, delete , then go to next page and again delete.
I want to select all items by checking the check box and delete should delete all the items selected across pages.
Pls help me with code samples in C#.

Thanks,
ZR
Ayesha
Top achievements
Rank 1
 answered on 30 Nov 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?