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

I'm using a radtreeview on a page with a an radajaxmanager and from a contextmenu I'm trying to get a number of things to happen. My problem is this: when the treeview and contextmenu is originally created (before any postback) everything is fine and every event is executed as expected, but after postback the contextmenu appears somewhat strange, without the arrows to indicate submenus and it does not trigger any events.

I'm using a straight forward event - handler pattern on the treeview and the contextmenu :

(the class inherits radtreeview)

this.ContextMenuItemClick += new RadTreeViewContextMenuEventHandler(OrganizerTreeView_ContextMenuItemClick);

and a event handler:
protected void OrganizerTreeView_ContextMenuItemClick(object sender, RadTreeViewContextMenuEventArgs e)


I create the treeview and the contextmenu dynamically and I add the treeview anew on Page_PreRender if  IsPostBack is true.

Any ideas?

kind regards

/Per Holmgren

Inka Interactive
Erjan Gavalji
Telerik team
 answered on 08 Jul 2008
13 answers
358 views
Hello,

I was taking a first look at the online demos of the classic RadGrid vs. the RadGrid Prometheus.  When I compare the two on the demo website, it appears that the Prometheus version is noticeably slower than the classic version for things like sorting, and especially paging.

I obviously want to start working with the Prometheus version, but am concerned that there is a significant performance hit.

Does anyone else notice this?  Perhaps it has been discussed already...

Thanks,
Chris
Mike
Top achievements
Rank 1
 answered on 08 Jul 2008
7 answers
242 views
Hi,

I seem to be having a Safari-specific problem involving a MultiView and RadUpload. If the RadUpload control is present in a View of a MultiView that is not the active View, then Safari does not render the control properly. Upon viewing the WebInspect Console, the following error is obtained:

      Sys.ScriptLoadFailedException: The script 'http://localhost/deltanet/ScriptResource.axd?d=KHlrNZ2Q4IDiiwop_XNJxkQGN1i2x-sO6rt-iO3fB2zZXzp8EjGBcFdHrYUZ61jWPpt9H4Hsf4_3abAyDCQU0A2&t=633438057580000000' failed to load. Check for: Inaccessible path. Script errors. (IE) Enable 'Display a notification about every script error' under advanced settings. Missing call to Sys.Application.notifyScriptLoaded().
This problem does not occur when:
- the RadUpload control is not within a View control
- the active View is defaulted to the View with the RadUpload control in it
-  using any other browser besides Safari 3

Any ideas?

The aspx code and code behind follows. Note that the switching of the Views is triggered by a click of the "Switch to Next View" button.

using System; 
using System.Collections; 
using System.Configuration; 
using System.Data; 
using System.Linq; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.HtmlControls; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Xml.Linq; 
 
public partial class Test_testradupload_safari : System.Web.UI.Page 
{ 
 
    protected void TestViewButton_Click(object sender, EventArgs e) 
    { 
        MultiView1.ActiveViewIndex = 1; 
    } 
} 
 



<%@ Page Language="C#" AutoEventWireup="true" CodeFile="testradupload-safari.aspx.cs" Inherits="Test_testradupload_safari" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register Src="testradupload-safari-uc.ascx" TagName="testradupload" TagPrefix="uc1" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
     <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
    <asp:UpdatePanel runat="server" ID="UpdatePanelWizard" UpdateMode="Conditional"> 
        <ContentTemplate> 
            <asp:Panel runat="server" ID="PanelWizard"> 
                <asp:MultiView runat="server" ID="MultiView1" ActiveViewIndex="0"> 
                    <asp:View ID="View1" runat="server"> 
                        <table> 
                            <tr> 
                                <td> 
                                    test view 
                                </td> 
                            </tr> 
                        </table> 
                        <asp:Button ID="TestViewButton" runat="server" Text="Switch to Next View" OnClick="TestViewButton_Click" /> 
                    </asp:View> 
                    <asp:View ID="View2" runat="server"> 
                         
                        <table> 
                            <tr> 
                                <td> 
                                    <telerik:RadUpload ID="RadUploadControl"  runat="server" Skin="Vista" /> 
                                </td> 
                            </tr> 
                        </table> 
                    </asp:View> 
                </asp:MultiView> 
            </asp:Panel> 
        </ContentTemplate> 
    </asp:UpdatePanel> 
    </div> 
    </form> 
</body> 
</html> 
 

Lini
Telerik team
 answered on 08 Jul 2008
1 answer
83 views
When my cursor is on a filterTextBox of a column on my grid, if I press EnterButton from the keyboard, grid tries to delete the first item in the list!!!

How can I owercome this problem?
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2008
1 answer
112 views
Hello
i use from telerik Q1 2007 version
now i download Q1 2008 version(05/15/2008)

can i have a seprate tab in a vs.net 2005 toolbox or not?

if yes how to?

if not
how to i install new version of telerik ( Q1 2008 version(05/15/2008)
that my previus web site have not a change

Thanks
Davari
Daniel
Telerik team
 answered on 08 Jul 2008
1 answer
94 views
Hi
 I have use a radcolor Picker, The Problm is that If i have use a script manager in aspx page the colorpicker working correctly ,If i have use a Script manager in Master page then ColorPicker skin Does not Showing ,What is problm

Please help anyone

advanced Thakx,

Muhammad Khalid Latif
Sophy
Telerik team
 answered on 08 Jul 2008
5 answers
175 views

During stress testing of RadUpload I have experienced that the memory consumption on the webserver increases dramatically when uploading.

This is no surprise as we are testing with a lot of data, but I am getting quite concerned about the general memory usage of the component.

Lets say for instance that we have:
10 user each uploading 25 files of 35 mb's at the same time amounting to roughly 9gb of data.

So can you give a rough overview of the maximum memory usage in this scenario? (data only ofcourse, not objects etc.) - and what and when the data is in the memory. Are all files for each user in memory simultaneously? Or only 1 at a time?

Hope you can enlighten me

BR.
Nikolaj
Erjan Gavalji
Telerik team
 answered on 08 Jul 2008
5 answers
105 views

Hi, I am just using the radgrid to show the data from a dynamic datasource, everything is ok except when I enable  the aggregrate function for the autogenerated columns it gives me the error "Column 'xxxx' not belong to the table", below is my C#code:

using System;  
using System.Data;  
using System.Configuration;  
using System.Collections;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Web.UI.HtmlControls;  
using Telerik.Web.UI;  
using System.Data.SqlClient;  
 
public partial class test : System.Web.UI.Page  
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
 
    }  
 
    protected void RadGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)  
    {  
        this.RadGrid.DataSource =  GetReportDataset() ;  
    }  
 
 
 
    private DataSet GetReportDataset()  
    {  
        SqlConnection sqlconn = new SqlConnection();  
        sqlconn.ConnectionString = ConfigurationManager.ConnectionStrings["NorthWind"].ConnectionString;  
        SqlCommand sqlcomm = new SqlCommand("select CategoryID,ProductName,UnitPrice,UnitsInStock,UnitsInStock  From Northwind.dbo.Products", sqlconn);  
        sqlcomm.CommandType = CommandType.Text;  
        DataSet ds = new DataSet();  
        SqlDataAdapter adapter = new SqlDataAdapter();  
        adapter.SelectCommand = sqlcomm;  
        sqlconn.Open();  
        adapter.Fill(ds);  
        sqlconn.Close();  
        return ds;  
    }  
    protected void show_Click(object sender, EventArgs e)  
    {  
        this.RadGrid.Rebind();  
        this.RadGrid.Visible = true;  
    }  
 
 
 
    protected void RadGrid_ColumnCreated(object sender, GridColumnCreatedEventArgs e)  
    {  
 
        if (e.Column is GridBoundColumn)  
        {  
            GridBoundColumn col = (GridBoundColumn)e.Column;  
            if (col.DataField != "Group" && col.DataField != "Store")  
            {  
                col.Aggregate = GridAggregateFunction.Sum;  
            }  
        }  
    }    
 
}  
 

and aspx code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %> 
 
<%@ 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"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <div id="test" visible="false">  
            <Telerik:RadAjaxManager EnableAJAX="true" ID="ajax1" runat="server">  
                <AjaxSettings> 
                    <Telerik:AjaxSetting AjaxControlID="RadGrid">  
                        <UpdatedControls> 
                            <Telerik:AjaxUpdatedControl ControlID="RadGrid" /> 
                        </UpdatedControls> 
                    </Telerik:AjaxSetting> 
                </AjaxSettings> 
            </Telerik:RadAjaxManager> 
            <Telerik:RadGrid ID="RadGrid" runat="server" AllowPaging="True" AllowSorting="True" OnColumnCreated="RadGrid_ColumnCreated" 
                GridLines="None" Height="361px" OnNeedDataSource="RadGrid_NeedDataSource" ShowFooter="false" 
                ShowGroupPanel="false" PageSize="50" Width="100%"  Visible="false">  
                <ClientSettings> 
                    <Scrolling AllowScroll="True"  FrozenColumnsCount="2" UseStaticHeaders="True" /> 
                </ClientSettings> 
                <MasterTableView ShowGroupFooter="true" GroupLoadMode="Client" TableLayout="Auto">  
                    <Columns> 
                    </Columns> 
                    <GroupByExpressions> 
                        <Telerik:GridGroupByExpression> 
                            <GroupByFields> 
                                <Telerik:GridGroupByField FieldName="CategoryID" FieldAlias="CategoryID" HeaderText="CategoryID" /> 
                            </GroupByFields> 
                            <SelectFields> 
                                <Telerik:GridGroupByField FieldName="CategoryID" FieldAlias="CategoryID" HeaderText="CategoryID" /> 
                            </SelectFields> 
                        </Telerik:GridGroupByExpression> 
                    </GroupByExpressions> 
                    <RowIndicatorColumn Visible="False">  
                        <HeaderStyle Width="20px" /> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn Resizable="False" Visible="False">  
                        <HeaderStyle Width="20px" /> 
                    </ExpandCollapseColumn> 
                    <EditFormSettings> 
                        <PopUpSettings ScrollBars="None" /> 
                    </EditFormSettings> 
                </MasterTableView> 
                <HeaderStyle Width="200px" /> 
            </Telerik:RadGrid> 
            <asp:Button ID="show" runat="server" Text="show grid" OnClick="show_Click" /></div>  
    </form> 
</body> 
</html> 
 

when I enable the aggregate by using:
col.Aggregate = GridAggregateFunction.Sum;

it gives me error 
"Column 'ProductName' does not belong to table"
in the RadGrid.Rebind();

anyone know why this happens?
Thx
Veli
Telerik team
 answered on 08 Jul 2008
1 answer
221 views
hi all,

i am developing a page with a treeview where people can add and delete nodes clientside. My idea was to do this with trackchanges and commitchanges at each action of the user, WITHOUT going to the server at that point.
So if an user adds 2 nodes, the server does not know this at the moment.

I will only go to the server when the user chooses for a SAVE, this happens with a button. But.... does the button have to callback the treeview from the server to the client as well? Cause if i do not do this, i will get an index out of bounds the second time i press the SAVE button. (or when i add nodes, nodes get added each time i have a postback to the server).

What i want is that i can do changes at the client, and commit them to the server at the time the user chooses to save the data. BUT! i do not need / want to have to callback the data from the server back to the client, cause i allready know 100% sure my client state is the same as on the server.

I think above has something to do with the client state? Without a callback of the treeview from server to client, this is not emptied, but it is applied to the server (at poostback) by the clientside call commitchanges?

Cheers and thx,

Dimitar Milushev
Telerik team
 answered on 08 Jul 2008
2 answers
81 views
Is it possible to set width of NoRecordsTemplate because when I have grid with only Edit and delete column (because all other column will be added dynamically), norecordstemplate is to short and message appears on many lines

Thanks
ericc34
Top achievements
Rank 1
 answered on 08 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?