Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
108 views
Dear Telerik!

Please, advice me on the following issue:

I create an appointment which has a very small duration (e.g. 1 minute). But when it renders it seems to get 0 px height.

Here below is the stack trace.

Can I adjust the appointment height somewhere in the code behind of the page so as to avoid this trouble?

Many thanks!

Stepan.
------------------------
[ArgumentOutOfRangeException: Value of Height must be non-negative. Parameter value: value] System.Web.UI.WebControls.Style.set_Height(Unit value) +8815076 System.Web.UI.WebControls.WebControl.set_Height(Unit value) +30 Telerik.Web.UI.AppointmentControl.CalculateSize() +234 Telerik.Web.UI.DayViewAppointmentControl.CalculateSize() +45 Telerik.Web.UI.Scheduler.Views.RowBuilder..ctor(IList`1 slotList, Int32 maxColumnWidth) +709 Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateViewRows(IList`1 slotLists) +161 Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateInnerContentTable(Control container, IList`1 slotLists) +101 Telerik.Web.UI.Scheduler.Views.Week.GroupedByResource.Renderer.CreateContentTable(SchedulerTopTable topTable) +37 Telerik.Web.UI.Scheduler.Views.Week.GroupedByResource.Renderer.GetInnerContent() +234 Telerik.Web.UI.Scheduler.Views.Week.GroupedByResource.Renderer.GetContent() +93 Telerik.Web.UI.RadScheduler.CreateContent() +122 Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +106 Telerik.Web.UI.RadScheduler.CreateChildControls() +9 System.Web.UI.Control.EnsureChildControls() +102 System.Web.UI.Control.PreRenderRecursiveInternal() +42 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Control.PreRenderRecursiveInternal() +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
-----------------------------

Ivana
Telerik team
 answered on 07 Nov 2011
3 answers
72 views
Dear Telerik,

Could you please advice me on the following issue:

Imagine a user selecting several time-slots of the scheduler moving a mouse with the left button clicked (the slots get painted).

I need to catch on the client the beginning of this process and its end. But the only relevant clien-side event which I've found is the "OnTimeSlotClick" which does not even fire in this case.

Is there any other relevant client side events?

Many thanks!

- Stepan.
Plamen
Telerik team
 answered on 07 Nov 2011
2 answers
52 views
I try to use multiple selection under Load on Demand modes and I set AutoCompleteSeparator and MarkFirstMatch. 
But it does't work. I just want to know it is possible to get multiple selection under loadonDemand.
Yi
Top achievements
Rank 1
 answered on 07 Nov 2011
1 answer
106 views
I need save radgrid state without Button (as telerik example). Its means, dynamically after user click some options of ContextHeaderMenu, drop ans drag column, change with, etc

I try do it using Radgrid inside UpdatePanel,
And execute a tigger when prerender radgrid

but I got an error

 

Unable to register UpdatePanel with ID. 'UpdatePanel1' because it did not register with ScriptManager. This problem can occur if the UpdatePanel was removed from the control tree and later added again, which is not allowed.
Parameter name: UpdatePanel



How I can do this?

July
Top achievements
Rank 2
 answered on 07 Nov 2011
2 answers
166 views

I’ve been pulling out my limited hair over this problem, so I need some help.  I’m getting different RadWindow behavior, from the same code, depending on what control was used to invoke that code.  In one case, the newly displayed window is modal, in another case it is not modal.  But it’s the same code!

Here’s the setup:

The master page contains nothing related to RadWindow.

Top-level page includes the RadWindowManager declaration:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista"

style="z-index:20000"

       Width="600px" AutoSize="true" ReloadOnShow="true" Modal="true"

       VisibleStatusbar="false" Behaviors="Resize, Close, Move" >

</telerik:RadWindowManager>

The top-level page opens the first RadWindow using this client code

var wnd = GetRadWindowManager().open(urlToOpen);

This consistently works fine, gives me a modal window, and dims the entire browser window.  This first RadWindow does NOT contain any declarations related to RadWindow.  This first RadWindow opens a second RadWindow.  I want the second RadWindow to also be modal.  The code that I’m using to open the second RadWindow is:

    var oManager = GetRadWindow().GetWindowManager();   <<< GetRadWindow is from the demo

    var oWnd;

    setTimeout(oWnd = function (p1) {

        return oManager.open(p1, null);   <<< null or “foo”, no difference

    }(urlToOpen), 0);

This code is pretty similar to the demo about opening a window from inside a window.  The first RadWindow form calls this code either from an asp.net Button client click event or from a RadComboBox client SelectedIndexChanging event.  Really, the same code!

The second RadWindow does not contain any declarations related to RadWindows.

When the button click opens the second RadWindow, it works great.  The displayed window is modal, on top, and the browser window is dimmed an additional amount.  When the same code is called from the RadComboBox SelectedIndexChanging event, the RadWindow is displayed with correct contents and size, however it is not modal (the first RadWindow is still active), it is initially displayed under the first RadWindow (should be on top), and the browser window is not dimmed an additional amount.  The two RadWindows can then be closed in either order.

The only thing that is really different is button vs RadComboBox.  Both controls are contained in cells of a DetailsView.  Both controls are created dynamically.  I’ve checked the intermediate values in the JS code and both get the same window ID and manager ID (using get_id() for both).  The second-level RadWindow gets a new ID each time it is displayed, which is expected.  This happens in both IE and FF.

This appears to be tied to the RadComboBox, since I get the same non-modal behavior from a different first RadWindow that has a RadComboBox in a RadGrid template column.  Both of the first-level RadWindows open the same second RadWindow.  The second RadWindow contains a dynamically generated RadGrid but has no knowledge (that I know about) of how it was invoked (both the button and the RadComboBox generate the same url).

Any ideas on how to always get the modal behavior?

Thanks,
DaveL

dave
Top achievements
Rank 1
 answered on 07 Nov 2011
15 answers
822 views
Is there any way to reference a NestedViewTemplate control value. I have a label and a text box within the NestedViewTemplate that i would like to perform other operations on. Is this currently possible. Any help would be greatly appreciated.
John Cooney
Top achievements
Rank 1
 answered on 07 Nov 2011
20 answers
1.5K+ views
I am migrating servers and basically copied every setting from one server to the other. IIS runs on a virtual server running Windows Server 2003 and our files are stored on a share. When moving to the new server I am getting an Unknown server tag error for all of my Telerik controls. I am using some ASP.NET controls and some Prometheus controls.

Everything works fine on my local box still and if I flip it all back to the old box it works without error. We have changed nothing in the files since they are on a share.

Am i missing something. Do I have to run an install on the new server if I have the files in the bin directory?
Sebastian
Telerik team
 answered on 07 Nov 2011
0 answers
90 views
Got it:

Dim mytextbox As RadTextBox = myRadGrid.MasterTableView.GetInsertItem().FindControl("txtBox")
Corina
Top achievements
Rank 1
 asked on 07 Nov 2011
2 answers
95 views
I need to display rows of data, where one of the columns is also rows of data. How can I achieve this with one call to get the data.

The data received from data layer looks like this, it is one call to GetData() and it returns
List<Customer> customers where customer.Products= List<Product>

and I would like to display it as

CustomerId  CustomerName         Products
1 John Smith                 Paper 12.50
                                                        Pin        1.99
                                                        Clip       5.55
              Jane Doe                   Paper    15.55
                                                        Pin           2.99


Can I achieve this display using two RadGrids?
Thanks,
saritha78
Top achievements
Rank 1
 answered on 07 Nov 2011
3 answers
82 views
empty empty
July
Top achievements
Rank 2
 answered on 07 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?