Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
125 views
Hi there

Is there any way to avoid the valueChanged event from firing when setting a textbox value using set_value(...)?

Thanks
Bent
Top achievements
Rank 2
 answered on 15 Apr 2009
5 answers
153 views

I am using RadScheduler control in timeline view. Very similar to the following link:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/timelineview/defaultcs.aspx

I have created several assignments with start and end DATETIME's.

For any assignment even if the time start at noon or evenening time, still it will occupy complete timeslot.

For any assignment ending there is some gap in the timeslot which is not consistent with the time.

I want to know that:

1. If for a paricular resource timeslot ends today noon and the next assignment starts today evening, both the assignments occupy part of today's slot, instead of occupying 2 different rows.
Pls check the attached file:
Assignment, Res1-A1 ends at 2/17/2009 13:00 and Res1-A2 starts at 02/17/2009 19:30. But they take 2 different rows. How to avoid this?

2. The gap in the end time slot differs from one assignment to another.
As in the attached file:
Res2-B1 ends at 02/20/2009 00:00. But in the control it occupies only part of Feb 19th slot.
Res1-A2 ends at 02/25/2009 10:30. But in the control it occupies part of Feb 25th.
The gap in both cases are different. how to avaoid this.

Can we have the assignment actually occupy approximate timeslot depending on time and not the full slot.

View screen shot  at: http://www.telerik.com/ClientsFiles/121857_scheduler-assignment-bars.JPG 

Paige Cook
Top achievements
Rank 2
 answered on 15 Apr 2009
3 answers
193 views
Hi
   I have created a form where if any thing changes then unbeforeunload event is called for confirmation to navigate away.
if I add a tabstrip with two tabs and after changing I click on second tab then this message prompts and on cancel it generates javascript error with message "unspecified error", If I click on any other control to navigate away then it works fine. The version of Telerik is 2009.1.402.35
Environment: IE 6 & IE 7

Here is the code

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ 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 runat="server">
    <title></title>
</head>
<script language="javascript" type="text/javascript">
    var canPost = true;
    function SomeThingChanged() {
        canPost = false;
    }

    function canSubmit() {
        if (!canPost)
            return "You have made changes to the data and will lose these if you continue.";
    }
    
    // Attach the event
    window.onbeforeunload = canSubmit;

</script>
<body>
    <form id="form1" runat="server">
            <asp:ScriptManager runat="server" ID="smTest"></asp:ScriptManager>        
 
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" OnTabClick="RadTabStrip1_Click">
             <Tabs>
                <telerik:RadTab runat="server" Selected="True"  PageViewID="mpvTest1" Text="View">
                </telerik:RadTab>
                
                <telerik:RadTab runat="server"   PageViewID="mpvTest2" Text="New">
                </telerik:RadTab>
            </Tabs>
       </telerik:RadTabStrip>

      <telerik:RadMultiPage ID="mpTest" runat="server" SelectedIndex="0" Width="100%">
            <telerik:RadPageView ID="mpvTest1" runat="server">
            For error : Change some thing in textbox and click other tab then click cancel on popup
                <input type="text" onchange="SomeThingChanged();" id="test" />
                <asp:Button ID="Button1" runat="server" Text="Cancel Post without issue"
                    onclick="Button1_Click" />
            </telerik:RadPageView>
            
            <telerik:RadPageView ID="mpvTest2" runat="server">
                test page 2
            </telerik:RadPageView>
        </telerik:RadMultiPage>
   
    </form>
</body>
</html>

ON SERVER SIDE PASTE THIS

protected void RadTabStrip1_Click(object sender, RadTabStripEventArgs e)
    {
        
    }
    protected void Button1_Click(object sender, EventArgs e)
    {

    }


Looking forward for solution

Best Regards
Rizwan Bashir




Atanas Korchev
Telerik team
 answered on 15 Apr 2009
8 answers
355 views
We are having a problem with the RadTreeView control.  After creating an Event (it doesn't matter if its just a single or a recurring event...), when you refresh the page, another event is created... basically a duplicate of what you just created. 

I wonder if this is a bug or am just missing something (i.e., needs to declare something, etc...).  Below are the step-by-step detail in recreating the issue:

1.  Invoke a treeview event such as add / remove node on server side.
2.  Click on the browser's "Page Refresh" button or "F5"... you will notice that a duplicate event is created.

What should we do to prevent this issue from happening?

Thanks for your help.
Rajesh Aggarwal
Top achievements
Rank 1
 answered on 15 Apr 2009
2 answers
73 views
Hello Sir,
If you see my screenshot attached you will see that i am not able to see image in radgrid.
see image mark with red circle....there is an image of expand and collapse....but not able to see that image.
What mistake i am making, please let me know.
Please see the ascx file also.

Thanks,
Jwalant Dange.
Jwalant
Top achievements
Rank 1
 answered on 15 Apr 2009
4 answers
909 views
Hello Sir,
I have attached screen shot. I want to make vertical gridlines visible false and show horizontal lines.
See the image grid.jpg file, i want to achieve this look and feel.
How do i achieve this?
Thanks,
Jwalant Dange
Jwalant
Top achievements
Rank 1
 answered on 15 Apr 2009
1 answer
94 views
Hello....
I have a problem with the styles of my RadGrid....
in Firefox this work perfectly,  but in IE does not show any style....
This is Urgent, plz i need help!!

look my code of my RadGrid:::

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                                                                                                                <AjaxSettings>
                                                                                                                    <telerik:AjaxSetting AjaxControlID="grvFields">
                                                                                                                    </telerik:AjaxSetting>
                                                                                                                    <telerik:AjaxSetting AjaxControlID="grvFields">
                                                                                                                        <UpdatedControls>
                                                                                                                            <telerik:AjaxUpdatedControl ControlID="grvFields" LoadingPanelID="RadAjaxLoadingPanel1" />
                                                                                                                        </UpdatedControls>
                                                                                                                    </telerik:AjaxSetting>
                                                                                                                </AjaxSettings>
                                                                                                            </telerik:RadAjaxManager>
                                                                                                            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
                                                                                                                Width="75px">
                                                                                                                <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                                                                                                                    style="border: 0px;" />
                                                                                                            </telerik:RadAjaxLoadingPanel>
                                                                                                            <telerik:RadGrid ID="grvFields" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
                                                                                                                AllowSorting="True" PageSize="5" Skin="Office2007" Width="100%" AutoGenerateColumns="False"
                                                                                                                AllowMultiRowSelection="True" GridLines="None" ShowFooter="True" ShowGroupPanel="True"
                                                                                                                ShowStatusBar="True">
                                                                                                                <GroupPanel Text="Mueva a esta posici&#243;n una columna y sueltela para agrupar por ella.">
                                                                                                                </GroupPanel>
                                                                                                                <PagerStyle Mode="NumericPages" />
                                                                                                                <MasterTableView EditMode="InPlace" Width="100%">
                                                                                                                    <RowIndicatorColumn Visible="True">
                                                                                                                        <HeaderStyle Width="20px" />
                                                                                                                    </RowIndicatorColumn>
                                                                                                                    <ExpandCollapseColumn>
                                                                                                                        <HeaderStyle Width="20px" />
                                                                                                                    </ExpandCollapseColumn>
                                                                                                                </MasterTableView>
                                                                                                                <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Wrap="True" />
                                                                                                                <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">
                                                                                                                    <Selecting AllowRowSelect="True" />
                                                                                                                    <ClientMessages DragToGroupOrReorder="Trae la columna para ordenar." DragToResize="Mueve para ajustar tamano."
                                                                                                                        DropHereToReorder="Suelta para ordenar." PagerTooltipFormatString="P&#225;gina: &lt;b&gt;{0}&lt;/b&gt; fuera de &lt;b&gt;{1}&lt;/b&gt; p&#225;ginas" />
                                                                                                                    <Resizing AllowColumnResize="True" AllowRowResize="True" EnableRealTimeResize="True"
                                                                                                                        ResizeGridOnColumnResize="True" />
                                                                                                                </ClientSettings>
                                                                                                                <FilterMenu EnableTheming="True" Skin="Office2007">
                                                                                                                    <CollapseAnimation Duration="200" Type="OutQuint" />
                                                                                                                </FilterMenu>
                                                                                                                <SortingSettings SortedAscToolTip="El ordenamiento actual es ascendente." SortedDescToolTip="El ordenamiento actual es descendente."
                                                                                                                    SortToolTip="Presione aqu&#237; para organizar." />
                                                                                                                <StatusBarSettings LoadingText="Cargando..." ReadyText="Listo" />
                                                                                                            </telerik:RadGrid>
Dimo
Telerik team
 answered on 15 Apr 2009
5 answers
285 views
I am trying to use Radeditor within a custom new item form. RadEditor works fine inside a list, but on a custom form I get the following error when the Radedtior tries to load:

Script controls may not be registered before PreRender.

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.InvalidOperationException: Script controls may not be registered before PreRender.

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:

 

[InvalidOperationException: Script controls may not be registered before PreRender.]

   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +236

   System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +99

   Telerik.Web.UI.RadWebControl.RegisterScriptControl() +41

   Telerik.Web.UI.RadEditor.RegisterScriptControl() +24

   Telerik.Web.UI.RadEditor.OnPreRender(EventArgs e) +19

   Telerik.SharePoint.MOSSRadEditor.OnPreRender(EventArgs e) +38

   System.Web.UI.Control.PreRenderRecursiveInternal() +86

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +62

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041

Henry
Top achievements
Rank 1
 answered on 15 Apr 2009
1 answer
169 views
I've found that my RadNumericTextbox won't honor the property I set for my NegativeStyle-ForColor when I declaratively set the read only property to true.  Also, in case it matters, I am manipulating the value client side when I update it from positive to negative.

Is this a known issue?
Dimo
Telerik team
 answered on 15 Apr 2009
3 answers
119 views
I have a radGrid with inline editing enabled.  I also have a form decorator control enabled.

When editing, all textboxes within the grid have extra padding on both the right and left sides.  Click here to see a screen shot of what I am seeing.

This occurs only in IE.  FireFox renders the textbox perfectly.

Any help would be appreciated.

Regards,
Jake Rutherford
Dimo
Telerik team
 answered on 15 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?