Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views
Hi,  I just started using the splitter control to create a admin page for my website.  I have a left pane for my admin menu and a right pane for the content.

If I set the contentUrl to a page like google.com it works great.  but if I use any page that has a logon screen when you logon it just flashes and re-loads the screen.

Anything I did internal to my site works fine but any external site with a logon doesn't.  For yahoo mail the page loads fine but when I hit logon my entire page goes away and its just the yahoo logon page.

I know im trying to make this work like frames, but I want the user to be able to collapse the left menu if they need more room on the right pane.

Any Thoughts?
Thanks
-Keith
SonicImaging
Top achievements
Rank 1
 answered on 21 Aug 2008
4 answers
407 views
I am using a RadGrid with the following settings.
<telerik:RadGrid ID="RadGrid1"   
AllowMultiRowSelection="True"   
AllowSorting="True"   
AllowPaging="False"   
AllowNaturalSort ="True"   
AutoGenerateColumns="False"   
AlternatingItemStyle-HorizontalAlign="Center"                                             
BackColor="#ffffff"   
HeaderStyle-HorizontalAlign="Center" 
ItemStyle-HorizontalAlign="Center"   
GridLines="None"   
GroupingEnabled="True"   
Height="370px"   
OnSortCommand="RadGrid1_SortCommand"                                                       OnNeedDataSource="RadGrid1_NeedDataSource"                                                  OnItemDataBound="RadGrid1_ItemDataBound"   
OnItemCommand="RadGrid1_ItemCommand"   
ShowHeader="True"   
ShowGroupPanel="True"   
ShowStatusBar="True"   
ShowFooter="False"   
Skin="MySkin"    
EnableEmbeddedSkins="False"   
Width="98%"   
runat="server"

It is calling a stored procedure that takes 4 seconds to run in PL/SQL developer.  When I hook it up to the RadGrid it takes 40 seconds to load 10 X greater.  When I use a regular GridView it takes 8 seconds.  What is the RadGrid doing to slow the grid creation  and how can I make it faster?

There are anywhere from 10-400 rows being returned.
.Net 3.5 and Ajax 2008 Q-2
Thank you!
Mike
Top achievements
Rank 1
 answered on 21 Aug 2008
1 answer
97 views
Hi

Is there any way of trapping the event which is fired when closing a window with the "X" in the top right of the window ?

Kind Regards

David
Georgi Tunev
Telerik team
 answered on 21 Aug 2008
1 answer
64 views
I have a RadEditor with toolbar configured to be shown on focus. In this mode user can resize toolbar. Is there a way to prohibit this?
Rumen
Telerik team
 answered on 21 Aug 2008
21 answers
423 views
Hi Telerik team,

I am upgrading my telerik controls from classic to prometheus (2008 Q2).
i upgraded my radajaxmanager classic to prometheus all other controls are the classic release.

and i am receiving this error.

Collection was modified; enumeration operation may not execute.   at System.Web.UI.ControlCollection.ControlCollectionEnumerator.MoveNext()
   at Telerik.WebControls.RadMultiPage.ClearControls()
   at Telerik.WebControls.RadMultiPage.Render(HtmlTextWriter output)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Control.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Control.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Page.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.Page.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


looking forward for a reply asap.

regards,
ishwar
Larry
Top achievements
Rank 2
 answered on 21 Aug 2008
1 answer
112 views
Hello,

Im using radchart ajax Q2.

well,i have a problem i cant solve,actually its a bit difficult to explain so i will use a specific example.

my chart should display data about a single stock market - rate distribution.

the data can be calculate for different times durations:

1)Past Week (from today) -
   in this case i need to display on the XAxis 7 days = 7 points.
2)Past Month (from today) -
   in this case i need to display 4 weeks = 4 points.
3)Past 6 Months (from today) - 
   in this case i need to display 6 months = 6 points.
4)Past Year (from today) -
   in this case i need to display 4 quarters = 4 points.
5)Past 2 Years (from today) - 
   in this case i need to display 4 halfs = 4 points.
6)Betwwen 2 dates the user insert.

the user can choose the frequency to calculate the rates:

daily  = i get an average rates for every single day between 2 dates(dynamicly).

weekly = i get an average rates for every single week between 2 dates(dynamicly).

monthly = i get an average rates for every single month between 2 dates(dynamicly).

yearly = i get an average rates for every single year between 2 dates(dynamicly).

OK,the problem begin here,for example :

the user can choose to display a chart for the past 6 months in 3 ways of frequency:
1)Daily -
   in this case my data source contains an average rate for each day = 180 points
2)Weekly - in this case my data source contains 4*6 = 24 points.
3)Monthly - in this case my data source contains 6 points for each month.

well,finally,my problom is that the Y values are not correlated to the X values,
i mean:

1)i have 180 Y values and 6 X values.

2)i have 24 Y values and 6 X values

3)i have 6 Y values and 6 X values.

how do i handle it ? is there any solution ?

Thank you in advanced,

yossi.






Ves
Telerik team
 answered on 21 Aug 2008
4 answers
129 views

Hi I am trying to add the RadAjaxManager programmatically to a page and override the Render method on the page.  Here is my code:

using System;  
using System.Collections;  
using System.Configuration;  
using System.Data;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.HtmlControls;  
using System.Web.UI.WebControls;  
 
using Telerik.Web.UI;  
namespace Neetrix.Web.Administration.TempFiles  
{  
    public partial class TestRender : Page  
    {  
         
        protected void Page_Load(object sender, EventArgs e)  
        {  
            RadAjaxManager AjaxManager = new RadAjaxManager();  
            AjaxManager.ID = "RadAjaxManager1";              
 
            HtmlForm form = new HtmlForm();  
            form.Controls.Add(new ScriptManager());  
 
            form.Controls.Add(AjaxManager);  
 
            form.Controls.Add(new LiteralControl("hello"));  
            this.Page.Controls.Add(form);  
        }  
 
        protected override void Render(HtmlTextWriter writer)  
        {  
            writer.Write("<html>");  
            base.Render(writer);  
            writer.Write("</html>");  
        }  
    }      
}  
 

After compiled and run it, it repeating itself when it reach the line "base.render(writer)". If you view page source on the page, you can clearly see that it duplicate both "<html>" and </html>" tags. If I took out the line "form.Controls.Add(AjaxManager)", it will behave correctly. So my question is, is it a bug or is there something i have missed? Thanks in advanced.

Denny 
Mishel
Top achievements
Rank 1
 answered on 21 Aug 2008
1 answer
120 views
my radeditor is not displaying properly. the icons in the toolbar are separated and disoriented. the clickable area is incorrect.. i.e. clicking on the icon sometimes doesn't trigger. I think this is a css problem, but I didn't even mess with the css properties yet..

the icons work properly in firefox but not ie 6 or 7...
George
Telerik team
 answered on 21 Aug 2008
2 answers
125 views
Hi

I am having trouble calling a javscript routine from inside the ajax panel server event.

i have an ajax panel which wraps severel controls on the page so that when the server events fire, they all fire through ajax and not postback.
One button in particular needs to do some database processing and then call a javsacript routine that will open a new window.

I have tried the following methods inside the button click routine.

string strBuildUp = "<script type=\"text/javascript\">";
strBuildUp +=
" PaymentGateway('" + OrderId.ToString() +"')</script>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "paymentgateway", strBuildup);

I also tried
Page.Response.Write(strBuildUp);

and
Page.ClientScript.RegisterStartupScript(this.GetType(), "paymentgateway", " PaymentGateway('" + OrderId.ToString() + "')");

Then I tried to simplify the call with
Page.ClientScript.RegisterStartupScript(this.GetType(), "paymentgateway", "alert('hello'");
and
Page.Response.Write("alert('hello')");

if I remove the ajax panel then these will work fine!! (I like ajax I dont want to remove it)

None of the above worked for me I even replace registerstartupscript with register clientscriptblock (just in case).

I know that I can resolve this by creating an edit box on the page with no value, then creating a timer function that waits for a value to be added to the text box and then fires the javascript event from the javascript timer event.
On the server OnAjaxRequest event i simply put a value in the box and it all will happen.

But i was hoping for something a bit more tidier than that.
Does anyone know how i can achieve this without doing my suggested fudge?

Mick
Top achievements
Rank 1
 answered on 21 Aug 2008
3 answers
391 views
Hi, we are often getting this exception on a screen where we show a large amount of data in a RadGrid. Could someone please suggest what could be the issue. Because it loads at times and fails at other times.

Message: Thread was being aborted.; Source: mscorlib; Trace:    at System.ModuleHandle._GetModuleTypeHandle()
   at System.ModuleHandle.GetModuleTypeHandle()
   at System.RuntimeType.RuntimeTypeCache..ctor(RuntimeType runtimeType)
   at System.RuntimeType.get_Cache()
   at System.RuntimeType.ToString()
   at System.Web.UI.PageTheme.CreateSkinKey(Type controlType, String skinID)
   at System.Web.UI.PageTheme.ApplyControlSkin(Control control)
   at System.Web.UI.Control.ApplySkin(Page page)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.Add(Control child)
   at System.Web.UI.WebControls.Table.RowControlCollection.Add(Control child)
   at Telerik.WebControls.GridEditFormItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.WebControls.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.WebControls.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.WebControls.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls)
   at Telerik.WebControls.GridTableView.CreateControlHierarchy(Boolean useDataSource)
   at Telerik.WebControls.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
   at Telerik.WebControls.GridTableView.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
   at Telerik.WebControls.GridTableView.DataBind()
   at Telerik.WebControls.RadGrid.DataBind()
   at Telerik.WebControls.RadGrid.AutoDataBind(GridRebindReason rebindReason)
   at Telerik.WebControls.RadGrid.Rebind()
   at ReportMilestoneSummary.GenerateReport(DateTime selStartDate, DateTime selEndDate)
   at ReportMilestoneSummary.btnGo_Click(Object sender, EventArgs e); Details: System.Threading.ThreadAbortException: Thread was being aborted.
   at System.ModuleHandle._GetModuleTypeHandle()
   at System.ModuleHandle.GetModuleTypeHandle()
   at System.RuntimeType.RuntimeTypeCache..ctor(RuntimeType runtimeType)
   at System.RuntimeType.get_Cache()
   at System.RuntimeType.ToString()
   at System.Web.UI.PageTheme.CreateSkinKey(Type controlType, String skinID)
   at System.Web.UI.PageTheme.ApplyControlSkin(Control control)
   at System.Web.UI.Control.ApplySkin(Page page)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.Add(Control child)
   at System.Web.UI.WebControls.Table.RowControlCollection.Add(Control child)
   at Telerik.WebControls.GridEditFormItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.WebControls.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.WebControls.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridItemBuilder.CreateGroupSubItems(GridGroupingContext group, GridEnumerableBase enumerable)
   at Telerik.WebControls.GridItemBuilder.HandleGrouping(GridGroupingContext group, GridEnumerableBase enumerable, Boolean& isGroup)
   at Telerik.WebControls.GridItemBuilder.CreateItems(GridGroupingContext group)
   at Telerik.WebControls.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls)
   at Telerik.WebControls.GridTableView.CreateControlHierarchy(Boolean useDataSource)
   at Telerik.WebControls.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
   at Telerik.WebControls.GridTableView.PerformSelect()
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
   at Telerik.WebControls.GridTableView.DataBind()
   at Telerik.WebControls.RadGrid.DataBind()
   at Telerik.WebControls.RadGrid.AutoDataBind(GridRebindReason rebindReason)
   at Telerik.WebControls.RadGrid.Rebind()
   at ReportMilestoneSummary.GenerateReport(DateTime selStartDate, DateTime selEndDate)
   at ReportMilestoneSummary.btnGo_Click(Object sender, EventArgs e)
Konstantin Petkov
Telerik team
 answered on 21 Aug 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?