Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
130 views
Have noticed a couple of bugs whilst developing a wrapper for your Window controls.

I think it would help you to know that with my wrapper, every window gets spawned from window.top where there is an instance of RadWindowManager exposed.  This is to prevent dialogs opening inside each other.

Bug 1:
When multiple modal windows are open (non-modal can be open too) and I call the cascade() function, the modal windows become non-modal.

Bug 2:
To see this bug you need to do the following...
- Open a Modal Dialog that has a link inside that will spawn another modal dialog (from window.top).
- Ok, so we've got a dialog open - now click the link to spawn the second dialog and then quickly right click in some whitespace of the first dialog, before the second one has appeared.   Wait for dialog 2 to render and load. Your browsers context menu should still be visible.  If you then click on Refresh (IE), or This Frame > Reload (FF) the first dialog will reload and re-render itself on-top of dialog 2!

I am personally not overly bothered about bug 2, but bug one is a little annoying, as I want our clients to have an always-on-top global controls panel that contains a Cascade Windows button.

Any help is greatly appreciated!

Georgi Tunev
Telerik team
 answered on 30 Jun 2009
3 answers
159 views
Hi

I am trying to set a view from a multiview as an updated control in rad ajax manager.

This is the aspx

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="btnSubmit">

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="vwSuccess" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

When the page runs i get this error

 

Controls added to a ViewCollection must be of type View.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Controls added to a ViewCollection must be of type View.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Controls added to a ViewCollection must be of type View.]
   System.Web.UI.WebControls.ViewCollection.AddAt(Int32 index, Control v) +92
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +123
   Telerik.Web.UI.RadAjaxControl.PerformRender() +420
   Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) +1223
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +87
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +98
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +21
   System.Web.UI.Page.Render(HtmlTextWriter writer) +27
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +53
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +310
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7375


many thanks
Sebastian
Telerik team
 answered on 30 Jun 2009
3 answers
234 views
Hello,

We have tried to bind SPList to the RadGrid using two strategies that we saw in the examples and forum.
1.To use the method SPList.GetDataTable() and to bind the dataTable to the RadGrid. The problem with this option that GetDataTable() contains only String and Int32 types, no Boolean and other types of SPField.
2. The second strategy was to bind SPListItemCollection of the list (we tryed to return spesific columns and all items).
The problem here is RadGrid does not display all columns that are in SPListItemCollection, particulary it does not display the columns that were added manually from sharepoint UI. We work on server side, we also tried autogenerate columns and custom generate, in both cases there is no results in RadGrid.

Can you please sent us some example of how to bind SPListItemCollection to RadGrid or any other way to bind SPList to RadGrid.

Thank you,
Shiri.
Bruno
Top achievements
Rank 2
 answered on 30 Jun 2009
3 answers
173 views
HI,

I am using Rad Editor Control. Let me tell you what I need to know.

When I drag and Drop image from any IE browser to Editor and when I release the mouse, I need to replace that HTML image tag (generated on html side) with my scripts.

So As soon as I release the mouse, I need some event handler so I can write the code and replace that HTML image tag with my small script.

For this task which event I can use of Rad Editor to fulfill my requirement.

Thnaks
Dipsa Shah
Rumen
Telerik team
 answered on 30 Jun 2009
2 answers
89 views
I want all RadGrids on my site to have fixed sized columns and that text should wrap to a new line if a word or sentence is to long. Which style should I use?
Anders
Top achievements
Rank 1
 answered on 30 Jun 2009
1 answer
117 views
2 quick questions;
1. How do I turn off the display of the url string that appears in the bottom left part of the RadWindow frame?
2. How do I change the "look" of a window? Say I wanted to make the frame look like wood, is that possible?

Thanks,

joe B
Shinu
Top achievements
Rank 2
 answered on 30 Jun 2009
4 answers
112 views
Regarding this example http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=upload

Where is the code for the showimagecs.aspx page which handles displaying the image?
Genady Sergeev
Telerik team
 answered on 30 Jun 2009
3 answers
132 views

The styler does not encompass other components of the RadGrid, such as DateTime, Dropdown list, Pager dropdown list...

Can that be integrated to this or is all that stuff supposed to be separate pieces ?

It makes sense to me it should all go together.

1.  Otherwise "the grid breaks"
2.  Have to go hunting for more pieces to style and fix
3.  Annoying...
Alex Gyoshev
Telerik team
 answered on 30 Jun 2009
3 answers
141 views
I'm using the RadComboBox control to do sorting on a grid I'm using.

The RadComboBox I'm using is set like so:
<telerik:RadComboBox ID="ddlSortBy" runat="server" OnClientSelectedIndexChanged="OrderSearch" 
                        CssClass="ddlSortBy" OnClientLoad="SortByLoad"> 
                        <Items> 
                            <telerik:RadComboBoxItem Text="Displayed Randomly" Value="1" /> 
                            <telerik:RadComboBoxItem Text="By Nightly Rate Ascending" Value="2" /> 
                            <telerik:RadComboBoxItem Text="By Nightly Rate Descending" Value="3" /> 
                            <telerik:RadComboBoxItem Text="By Weekly Rate Ascending" Value="4" /> 
                            <telerik:RadComboBoxItem Text="By Weekly Rate Descending" Value="5" /> 
                        </Items> 
                    </telerik:RadComboBox> 
The problem I'm experiencing is setting the selected sort order when the page loads, since I pass in the url.

What I mean, is that I can't write this:
ddlSortBy.FindItemByValue("[query]").Selected = true; 
When I write that nothing gets selected, it still remains with the first item selected.

Is it not possible to select a specific item of the RadComboBox in MVC through code or should I be doing it another way. I've tried using javascript, but I handle the "OnClientSelectedIndexChanged" event of the control and when I select the item in javascript that event is raised causing the page to postback.

If you could suggest a solution to a problem that would be great.

Thanks.


Atanas Korchev
Telerik team
 answered on 30 Jun 2009
6 answers
256 views
Hi

I have just installed the latest trial (2007_2_918). I get a lot more controls on my toolbar under Prometheus including RadAjaxManager and RadAjaxPanel. Are these now in Promethius or have you included the ASP.Net RadControls in here?

My main problem is with RegisterArrayDeclaration. I use this to provide 2 arrays client side for use with the slider.

Before trying Ajax I used Page.ClientScriptManager.

When I moved to Ajax and used the Ajax UpdatePanel I had to use ScriptManager. All worked fine.

Now I am replacing the UpdatePanel with RadAjaxPanel.

The first time I perform an Ajax update my arrays work fine. If I change a parameter and re-submit my query, my arrays still contain the old values.

I use:

ScriptManager.GetCurrent(this).RegisterDispose(ScaleImageTop, "PremiumArray = undefined; SumAssuredArray = undefined;");


To clear the arrays.

Are ScriptManager and RadAjaxPanel compatible? Any idea why my arrays have stopped updating when I switched from UpdatePanel to RadAjaxpanel?

Cheers

Steve

Sebastian
Telerik team
 answered on 30 Jun 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?