Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
57 views
I am stuck on 2009.3.1503.35 because 2010 Q1 icon changed for insert/delete.
How do I make the icons look the old way without having to using a custom skin?
Dimo
Telerik team
 answered on 08 Jul 2010
1 answer
92 views
We are using usercontrol for AdvancedEditForm in the scheduler. We are able to bind the controls in the custom user control. But the edit form is not being displayed. We thoroughly followed the demos provided in the telerik. Any help is appreciated.

Thanks,
Vijaya Sankar Kolluri
Peter
Telerik team
 answered on 08 Jul 2010
3 answers
115 views
Hello,

I am working with Telerik v2.0.50727 and am facing a problem with the arrow position for a sub menu.
When the menu is displayed, the arrow is displayed on the text as showed in the printscreen. Once I get over the menu with the mouse, everything is displayed properly.

I tried to change the margin and padding  of the rmArrows and rmExpand classes without success. Is that a problem in my css? If yes, which css class do I have to use in order to have the arrow displayed properly ?

Thanks in advance for your answer.
.RadMenu_Default .rmGroup .rmLink {    
        padding-left: 0px !important;     
        padding-right: 4px !important;   
        padding-top: 0px !important; 
        padding-bottom: 0px !important; 
        background-color:#EEEEEE !important; 
     }    
         
    .RadMenu_Default .rmGroup .rmLink .rmText {    
        padding-left: 0px !important;  
        padding-right: 4px !important;   
        padding-top: 0px !important; 
        padding-bottom: 0px !important; 
     }  
      
     .RadMenu_Default .rmGroup  {   
     border: 0px solid #979797 !important;    
     background: #f0f0f0 !important;    

Peter
Telerik team
 answered on 08 Jul 2010
5 answers
166 views
Hi,

   Barchart is taking time to load in webpage.  I have a data table of 100 records and i am binding that to barchart. Rendering is taking so long from bar chart.
Is there any method that i can fasten the barchart loading


Mike Treat
Top achievements
Rank 1
 answered on 08 Jul 2010
3 answers
132 views
Hi,
    i have a scenario where i use the grid inbuilt sorting inbuilt sorting behaviour:
<sortexpressions> 
        <telerik:gridsortexpression fieldname="Sort" sortorder="Ascending" /> 
</sortexpressions> 
i got an undersired behaviour instead of having row sorting from 1- 15, i get 1-10-15- 2-9. as seen in the attached a screen shot.

Regards;
Adrian


Pavlina
Telerik team
 answered on 08 Jul 2010
1 answer
189 views
Hi,
I am using Q1 2010 AJAX ASP.Net controls for development.

I have one RadGrid placed on page, and on ItemCommand event i am exporting crystal report to pdf (working with response) then it gives me an error like:
{Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.}

One thing to be note is that same is working on any event of asp control.
This happens when I use RadAjaxManager in my page.
My code for same is as below:
// Get the report document 
        CrystalDecisions.CrystalReports.Engine.ReportDocument repDoc = GetReportDocument(); 
        // Stop buffering the response 
        Response.Buffer = false
        // Clear the response content and headers 
        Response.ClearContent(); 
        Response.ClearHeaders(); 
        try 
        { 
            repDoc.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, false"Invoice"); 
            
        } 
        catch (System.Threading.ThreadAbortException ex1) 
        { 
            ex1 = null
            Response.End(); 
        } 
        catch (Exception ex) 
        { 
            ex = null
        } 
        finally 
        { 
        } 

Please suggest to overcome this issue.

With Regards,
Naresh Goradara
Tsvetina
Telerik team
 answered on 08 Jul 2010
1 answer
139 views
Hi ,
I use the two div to load radgrids which one only show grid title (null data) ,other show detail data. and  use javascript to control them, but display abnormal..
If i have not set grid AllowScroll=true,and not use the RadFormDecorator control,webpage can be show normal...Once i setup one of them,the page will show abnormal. 
my project must be used grid allow scroll and RadFormDecorator .

the attachment is  error screen,

I don't know how to handle, please help me! Thank you..
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Div+RadGird Error</title>
    <script language="javascript" type="text/javascript">
        function showdiv()
        {
            var obj=document.getElementById("DType").value;
            if(obj==1)
            {
                document.getElementById("Div_NullData").style.display="none";
                document.getElementById("Div_FullData").style.display="";
            }
            else
            {
                document.getElementById("Div_NullData").style.display="";
                document.getElementById("Div_FullData").style.display="none";
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" />
        <select id="DType" onclick="showdiv()">
            <option value="0" selected="selected">Null Data</option>
            <option value="1">Full Data</option>
        </select>
    <div id="Div_NullData">
        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" GridLines="None" Width="780">
            <HeaderContextMenu EnableAutoScroll="True">
            </HeaderContextMenu>
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="CustomerID" DataSourceID="SqlDataSource1">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID" ReadOnly="True"
                        SortExpression="CustomerID" UniqueName="CustomerID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CompanyName" HeaderText="CompanyName" SortExpression="CompanyName"
                        UniqueName="CompanyName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ContactName" HeaderText="ContactName" SortExpression="ContactName"
                        UniqueName="ContactName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ContactTitle" HeaderText="ContactTitle" SortExpression="ContactTitle"
                        UniqueName="ContactTitle">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Address" HeaderText="Address" SortExpression="Address"
                        UniqueName="Address">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City"
                        UniqueName="City">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Region" HeaderText="Region" SortExpression="Region"
                        UniqueName="Region">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" SelectCommand="SELECT * FROM [Customers] WHERE 1=0"></asp:SqlDataSource>
    </div>
    <div id="Div_FullData" style="display:none">
        <telerik:RadGrid ID="RadGrid2" runat="server" DataSourceID="SqlDataSource2" GridLines="None"   Width="780" Height="300px">
            <HeaderContextMenu EnableAutoScroll="True">
            </HeaderContextMenu>
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="CustomerID" DataSourceID="SqlDataSource2">
                <Columns>
                    <telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID" ReadOnly="True"
                        SortExpression="CustomerID" UniqueName="CustomerID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CompanyName" HeaderText="CompanyName" SortExpression="CompanyName"
                        UniqueName="CompanyName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ContactName" HeaderText="ContactName" SortExpression="ContactName"
                        UniqueName="ContactName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ContactTitle" HeaderText="ContactTitle" SortExpression="ContactTitle"
                        UniqueName="ContactTitle">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Address" HeaderText="Address" SortExpression="Address"
                        UniqueName="Address">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City"
                        UniqueName="City">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Region" HeaderText="Region" SortExpression="Region"
                        UniqueName="Region">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings>
                <Scrolling AllowScroll="True" />
            </ClientSettings>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" SelectCommand="SELECT TOP 20  * FROM [Customers]"></asp:SqlDataSource>
         
    </div>
    </form>
</body>
</html>
Dimo
Telerik team
 answered on 08 Jul 2010
3 answers
122 views
We have a page which is getting the results of a file system folder/file scan that will occasionally throw an ":out of memory" pop-up to the user (and the list of folders which is within a RadListBox, will actually flow over the box boundaries and down off the bottom of the page); close the browser, re-launch and log in and hit the same page again and it will work just fine.

Below is the sub that scans the file system & loads the list - it seems to all work ok every time - it is the rendering that seems to be taking the hit.

My dev team is not able to identify any specific causes for this - was wondering if anyone has seen this or has any suggestions for debugging or correction.  

    Private Sub LoadItems(Optional ByVal bolClearText As Boolean = True)  
        If bolClearText Then  
            lblFinished.Text = "" 
        End If  
        If txtIngestServerPath.Text.Trim = "" Then Exit Sub  
        Dim dir As IO.DirectoryInfo  
        Try  
            dir = New IO.DirectoryInfo(txtIngestServerPath.Text.Trim)  
        Catch  
            lstTemplateFiles.Items.Clear()  
            lstRadTemplateFiles.Items.Clear()  
            Dim intLanguageCode As Integer = SystemLanguages.SystemLanguages.GetInstance().LanguageCodeForID(userinfo.DefaultLanguage)  
            lblFinished.Text = Global.Castnet.App.Language.CastnetInterpreter.InternationalizeString("Invalidfolderpath", intLanguageCode)  
            Exit Sub  
        End Try  
        lstTemplateFiles.Items.Clear()  
        lstRadTemplateFiles.Items.Clear()  
        If dir.Exists Then  
            If Not dir.Parent Is Nothing Then  
                Dim item As New RadListBoxItem  
                item.Text = "..." 
                item.Value = "" 
                item.Attributes("itemtype") = "0"  
                item.ImageUrl = Resources.ImagePaths.ParentDirectoryIcon  
                lstRadTemplateFiles.Items.Add(item)  
            End If  
            'If Recurse.Checked() Then  
            'ParseDirectory(dir)  
            'Else  
            Dim folders As System.IO.DirectoryInfo = New System.IO.DirectoryInfo(txtIngestServerPath.Text.Trim)  
            For Each Folder As System.IO.DirectoryInfo In folders.GetDirectories  
                Dim item As New RadListBoxItem  
                'item.Text = Folder.FullName.Replace(txtIngestServerPath.Text.Trim, "")  
                item.Text = Folder.Name  
                item.Value = Folder.FullName  
                item.ImageUrl = Resources.ImagePaths.FolderIcon  
                item.Attributes("itemtype") = "1"  
                lstRadTemplateFiles.Items.Add(item)  
            Next  
 
            Dim files As IO.FileInfo() = dir.GetFiles("*.sca")  
            Dim fileName As IO.FileInfo  
            For Each fileName In files  
                'Dim li As New ListItem  
                'li.Text = fileName.FullName.Replace(txtIngestServerPath.Text.Trim, "")  
                'li.Value = fileName.FullName  
                'lstTemplateFiles.Items.Add(li)  
                Dim item As New RadListBoxItem  
                'item.Text = fileName.FullName.Replace(txtIngestServerPath.Text.Trim, "")  
                item.Text = fileName.Name  
                item.Value = fileName.FullName  
                item.ImageUrl = Resources.ImagePaths.TemplateIcon  
                item.Attributes("itemtype") = "2"  
                lstRadTemplateFiles.Items.Add(item)  
            Next  
            'End If  
            objContentPage.AjaxManager.ResponseScripts.Add("ScrollToTop();")  
        Else  
            Dim intLanguageCode As Integer = SystemLanguages.SystemLanguages.GetInstance().LanguageCodeForID(userinfo.DefaultLanguage)  
            lblFinished.Text = Global.Castnet.App.Language.CastnetInterpreter.InternationalizeString("Notemplatefilesexistsinselectedfolder", intLanguageCode)  
        End If  
    End Sub 
T. Tsonev
Telerik team
 answered on 08 Jul 2010
10 answers
173 views
Hi!

i am using radwindow inside a timer. it refreshes in firefox and works fine in ie...

plz help me...

thanks in advance...

Fiko
Telerik team
 answered on 08 Jul 2010
4 answers
195 views
i used this code for close Rad window

  string script1 = "<SCRIPT LANGUAGE='JavaScript'> ";
                script1 += "OK_Clicked()";
                script1 += "</SCRIPT>";
                Page.RegisterClientScriptBlock("ClientScript", script1);

but its not work
i also tried with
  string script2 = "<SCRIPT LANGUAGE='JavaScript'> ";
                script2 += "OK_Clicked()";                
                script2 += "</SCRIPT>";
                //RadScriptManager1.EnableScriptCombine = true;
                //Page.RegisterClientScriptBlock("ClientScript", script2);
                RegisterStartupScript("Startup", script2);


Jeremy
Top achievements
Rank 1
 answered on 08 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?