Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
210 views
Hi,

I have a problem with $find("RadAjaxManager1") returning null.
This seems to happen because $find("RadAjaxManager1") is called at page load and apparently the javascript object for the RadAjaxManager is not yet created.
Using a function that calls itself after 300 milliseconds if $find("RadAjaxManager1") returns null until $find("RadAjaxManager1") does return the desired object helps.

Is there another way to force calls like $find("RadAjaxManager1") to wait until after the RadAjaxManager object is created?

Regards,

Mink
Shinu
Top achievements
Rank 2
 answered on 01 Dec 2009
1 answer
212 views
I have read the other posts talking about null values for binaryImages. None seem to work since I am programming in VB.
If my image from the DB is null I get the following:
Unable to cast object of type 'System.DBNull' to type 'System.Byte[]' “

If I do end up having an image, no image displays. I am retrieving the information from a stored procedure. All other information comes through fine except the image.
Any help would be appreciated.

 

<telerik:RadListView ID="RadListSearchresults" runat="server" ItemPlaceholderID="PlaceHolder1" AllowPaging="true" Skin="Default" PageSize="8" >

 

 

<LayoutTemplate>

 

 

<div >

 

 

<asp:Panel ID="SResults" runat="server">

 

 

<div>

 

 

<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>

 

 

</div>

 

 

<br />

 

 

</asp:Panel>

 

 

</div>

 

 

</LayoutTemplate>

 

 

<ItemTemplate>

 

 

<fieldset style="float: left; width: 280px;">

 

 

<legend>Item:

 

<%

#Eval("Nomenclature")%>

 

 

</legend>

 

 

<table cellpadding="0" cellspacing="0">

 

 

<tr>

 

 

<td>

 

 

<table cellpadding="0" cellspacing="0">

 

 

<tr>

 

 

<td style="width: 25%">

 

NSN:

 

</td>

 

 

<td style="width: 50%">

 

<%

#Eval("NSN")%>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

MCN:

 

</td>

 

 

<td>

 

<%

#Eval("MCN")%>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Slamis:

 

</td>

 

 

<td>

 

<%

#Eval("Slamis")%>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

LIN:

 

</td>

 

 

<td>

 

<%

#Eval("LIN")%>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

 

<asp:Button ID="Button1" runat="server" Text="Edit" /></td>

 

 

 

</tr>

 

 

</table>

 

 

</td>

 

 

<td align="right" style="width: 25%;padding-left: 10px;">

 

 

<telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" AlternateText="Photo Not Found" DataValue='<%#Eval("Img") %>'

 

 

ToolTip='<%#Eval("ImgName", "Photo of {0}") %>' Width="90px" Height="110px" AutoAdjustImageControlSize="false"

 

/>

 

</td>

 

 

</tr>

 

 

</table>

 

 

</fieldset>

 

 

</ItemTemplate>

 

 

</telerik:RadListView>

 

Iana Tsolova
Telerik team
 answered on 01 Dec 2009
4 answers
144 views
Hi All,

The smart tag does not work for me with any RADControl in VS 2008.

Please Suggest....!!!

Thanks.

Sebastian
Telerik team
 answered on 01 Dec 2009
2 answers
194 views
I have a radgrid inside a radajaxpanel in a user control. There is a link button in the command item template of the grid, upon clicking the button the grid should refresh with the new dataset assigned to the datasource property of the grid. But the radgrid doesnot refreshes even after the rebind command instead it keeps displaying the old dataset. I am using the Grid.Rebind() command in the ItemCommand event. The page containing the user control has ajaxmanager.Any help in this regard would be helpful.

Thanks
Govy.
Govy Rajappan
Top achievements
Rank 1
 answered on 01 Dec 2009
1 answer
115 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, reply me.

if (e.Item.ItemType == GridItemType.Item)
            {
                GridDataItem item = (GridDataItem)e.Item;
                CheckBox checkBox = (CheckBox)item["SelectColumn"].Controls[0];
                
                checkBox.Checked = true;
            }






Shinu
Top achievements
Rank 2
 answered on 01 Dec 2009
1 answer
104 views
Hello,

I've got this nested grid...

                            <telerik:GridTableView Name="gridMembershipComponents" runat="server"  CommandItemDisplay="Top" 
                                DataKeyNames="MembershipID, MembershipComponentID" DataSourceID="dsMembershipComponents"
                                <ParentTableRelation> 
                                    <telerik:GridRelationFields MasterKeyField="MembershipID" DetailKeyField="MembershipID" /> 
                                </ParentTableRelation> 
                                <Columns> 
                                    <telerik:GridDropDownColumn DataSourceID="dsAvailableMembershipComponents" ListTextField="Component" ListValueField="ComponentID" DataField="ComponentID" 
                                        HeaderText="Organization" SortExpression="Component" UniqueName="Component"
                                    </telerik:GridDropDownColumn> 
                                    <telerik:GridBoundColumn DataField="PaymentStatus" HeaderText="Status"  
                                        ReadOnly="True" SortExpression="PaymentStatus" UniqueName="PaymentStatus"
                                    </telerik:GridBoundColumn> 
                                </Columns> 
                            </telerik:GridTableView> 
                <asp:SqlDataSource ID="dsAvailableMembershipComponents" runat="server" 
                    ConnectionString="<%$ ... %>" 
                    SelectCommand="SELECT..."
                    <SelectParameters> 
                        <asp:Parameter Name="MembershipID" DefaultValue="0" Type="Int32" /> 
                    </SelectParameters> 
                </asp:SqlDataSource> 

The problem is that the MembershipID parameter doesn't seem to be getting a value. It should just get it from the grid - I thought...

Am I just totally missing something here? To give some quick context, I only copied in those parts... the parent grid has membershipID as the one and only key. I also deleted the sql statement and the connection string - I've seen in the code that the parameter is coming through as 0.

Any thoughts? I'm probably just mixed up on something totally basic...

Thanks,

Mike
Princy
Top achievements
Rank 2
 answered on 01 Dec 2009
3 answers
112 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
339 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
124 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
259 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?